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. /** A <CODE>Destination</CODE> object encapsulates a provider-specific
  7. * address.
  8. * The JMS API does not define a standard address syntax. Although a standard
  9. * address syntax was considered, it was decided that the differences in
  10. * address semantics between existing message-oriented middleware (MOM)
  11. * products were too wide to bridge with a single syntax.
  12. *
  13. * <P>Since <CODE>Destination</CODE> is an administered object, it may
  14. * contain
  15. * provider-specific configuration information in addition to its address.
  16. *
  17. * <P>The JMS API also supports a client's use of provider-specific address
  18. * names.
  19. *
  20. * <P><CODE>Destination</CODE> objects support concurrent use.
  21. *
  22. * <P>A <CODE>Destination</CODE> object is a JMS administered object.
  23. *
  24. * <P>JMS administered objects are objects containing configuration
  25. * information that are created by an administrator and later used by
  26. * JMS clients. They make it practical to administer the JMS API in the
  27. * enterprise.
  28. *
  29. * <P>Although the interfaces for administered objects do not explicitly
  30. * depend on the Java Naming and Directory Interface (JNDI) API, the JMS API
  31. * establishes the convention that JMS clients find administered objects by
  32. * looking them up in a JNDI namespace.
  33. *
  34. * <P>An administrator can place an administered object anywhere in a
  35. * namespace. The JMS API does not define a naming policy.
  36. *
  37. * <P>It is expected that JMS providers will provide the tools an
  38. * administrator needs to create and configure administered objects in a
  39. * JNDI namespace. JMS provider implementations of administered objects
  40. * should implement the <CODE>javax.naming.Referenceable</CODE> and
  41. * <CODE>java.io.Serializable</CODE> interfaces so that they can be stored in
  42. * all JNDI naming contexts. In addition, it is recommended that these
  43. * implementations follow the JavaBeans<SUP><FONT SIZE="-2">TM</FONT></SUP>
  44. * design patterns.
  45. *
  46. * <P>This strategy provides several benefits:
  47. *
  48. * <UL>
  49. * <LI>It hides provider-specific details from JMS clients.
  50. * <LI>It abstracts JMS administrative information into objects in the Java
  51. * programming language ("Java objects")
  52. * that are easily organized and administered from a common
  53. * management console.
  54. * <LI>Since there will be JNDI providers for all popular naming
  55. * services, JMS providers can deliver one implementation
  56. * of administered objects that will run everywhere.
  57. * </UL>
  58. *
  59. * <P>An administered object should not hold on to any remote resources.
  60. * Its lookup should not use remote resources other than those used by the
  61. * JNDI API itself.
  62. *
  63. * <P>Clients should think of administered objects as local Java objects.
  64. * Looking them up should not have any hidden side effects or use surprising
  65. * amounts of local resources.
  66. *
  67. * @version 1.0 - 3 August 1998
  68. * @author Mark Hapner
  69. * @author Rich Burridge
  70. *
  71. * @see javax.jms.Queue
  72. * @see javax.jms.Topic
  73. */
  74. public interface Destination {
  75. }