1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.jms;
  6. /** An <CODE>XAQueueConnection</CODE> provides the same create options as
  7. * <CODE>QueueConnection</CODE> (optional).
  8. * The only difference is that an <CODE>XAConnection</CODE> is by definition
  9. * transacted.
  10. *
  11. * @version 1.0 - 13 March 1998
  12. * @author Mark Hapner
  13. * @author Rich Burridge
  14. *
  15. * @see javax.jms.XAConnection
  16. */
  17. public interface XAQueueConnection
  18. extends XAConnection, QueueConnection {
  19. /** Creates an <CODE>XAQueueSession</CODE> object.
  20. *
  21. * @return a newly created <CODE>XAQueueSession</CODE>
  22. *
  23. * @exception JMSException if the <CODE>XAQueueConnection</CODE> object
  24. * fails to create an XA queue session due to some
  25. * internal error.
  26. */
  27. XAQueueSession
  28. createXAQueueSession() throws JMSException;
  29. /** Creates an <CODE>XAQueueSession</CODE> object.
  30. *
  31. * @param transacted usage undefined
  32. * @param acknowledgeMode usage undefined
  33. *
  34. * @return a newly created <CODE>XAQueueSession</CODE>
  35. *
  36. * @exception JMSException if the <CODE>XAQueueConnection</CODE> object
  37. * fails to create an XA queue session due to some
  38. * internal error.
  39. */
  40. QueueSession
  41. createQueueSession(boolean transacted,
  42. int acknowledgeMode) throws JMSException;
  43. }