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. import java.util.Enumeration;
  7. /** A <CODE>ConnectionMetaData</CODE> object provides information describing the
  8. * <CODE>Connection</CODE> object.
  9. *
  10. * @version 1.0 - 13 March 1998
  11. * @author Mark Hapner
  12. * @author Rich Burridge
  13. */
  14. public interface ConnectionMetaData {
  15. /** Gets the JMS API version.
  16. *
  17. * @return the JMS API version
  18. *
  19. * @exception JMSException if the JMS provider fails to retrieve the
  20. * metadata due to some internal error.
  21. */
  22. String
  23. getJMSVersion() throws JMSException;
  24. /** Gets the JMS major version number.
  25. *
  26. * @return the JMS API major version number
  27. *
  28. * @exception JMSException if the JMS provider fails to retrieve the
  29. * metadata due to some internal error.
  30. */
  31. int
  32. getJMSMajorVersion() throws JMSException;
  33. /** Gets the JMS minor version number.
  34. *
  35. * @return the JMS API minor version number
  36. *
  37. * @exception JMSException if the JMS provider fails to retrieve the
  38. * metadata due to some internal error.
  39. */
  40. int
  41. getJMSMinorVersion() throws JMSException;
  42. /** Gets the JMS provider name.
  43. *
  44. * @return the JMS provider name
  45. *
  46. * @exception JMSException if the JMS provider fails to retrieve the
  47. * metadata due to some internal error.
  48. */
  49. String
  50. getJMSProviderName() throws JMSException;
  51. /** Gets the JMS provider version.
  52. *
  53. * @return the JMS provider version
  54. *
  55. * @exception JMSException if the JMS provider fails to retrieve the
  56. * metadata due to some internal error.
  57. */
  58. String
  59. getProviderVersion() throws JMSException;
  60. /** Gets the JMS provider major version number.
  61. *
  62. * @return the JMS provider major version number
  63. *
  64. * @exception JMSException if the JMS provider fails to retrieve the
  65. * metadata due to some internal error.
  66. */
  67. int
  68. getProviderMajorVersion() throws JMSException;
  69. /** Gets the JMS provider minor version number.
  70. *
  71. * @return the JMS provider minor version number
  72. *
  73. * @exception JMSException if the JMS provider fails to retrieve the
  74. * metadata due to some internal error.
  75. */
  76. int
  77. getProviderMinorVersion() throws JMSException;
  78. /** Gets an enumeration of the JMSX property names.
  79. *
  80. * @return an Enumeration of JMSX property names
  81. *
  82. * @exception JMSException if the JMS provider fails to retrieve the
  83. * metadata due to some internal error.
  84. */
  85. Enumeration
  86. getJMSXPropertyNames() throws JMSException;
  87. }