Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      Currently, the JMS API has no clear way of looking up a Queue or Topic. It's typically assumed to use JNDI, however when you're in Java SE there is no single entry point that allows one to look up a Queue or Topic.

      Typically, permanent Queues/Topics are created via configuration (XML files, metadata, etc). As a result, I think we should add methods to ConnectionFactory/JMSContext/Connection that allows a developer to get a destination.

        Activity

        Hide
        John D. Ament added a comment - - edited

        This may be as simple as clarifying that createQueue/createTopic should/should not be specific to temporary queues/topics. Looking at two open implementations (OpenMQ and HornetQ), one allows this to return temporary destinations, the other does not.

        Show
        John D. Ament added a comment - - edited This may be as simple as clarifying that createQueue/createTopic should/should not be specific to temporary queues/topics. Looking at two open implementations (OpenMQ and HornetQ), one allows this to return temporary destinations, the other does not.
        Hide
        chris.barrow added a comment -

        Methods createTemporaryQueue and createTemporaryTopic are provided for temporary destinations. AFAIK createQueue and createTopic are for non-temporary destinations. Many JMS providers allow these to be used to create new (dynamic) queues and topics. Their function is "get or create", so they can be used instead of doing a JNDI lookup.

        Show
        chris.barrow added a comment - Methods createTemporaryQueue and createTemporaryTopic are provided for temporary destinations. AFAIK createQueue and createTopic are for non-temporary destinations. Many JMS providers allow these to be used to create new (dynamic) queues and topics. Their function is "get or create", so they can be used instead of doing a JNDI lookup.
        Hide
        Nigel Deakin added a comment -

        The methods createQueue and createTopic provide a way for an application to obtain a Queue or Topic object identified by the specified name.

        These methods are not intended to create the underlying queue or topic in the JMS provider but are simply ways of obtaining a Queue or Topic object which refers to an existing queue or topic.

        (I know some JMS providers do support automatic creation of queues and topics but this is not a requirement of these methods.)

        Can you say more about why these methods do not meet your needs? Are you asking for methods to physically create the queue or topic in the JMS provider?

        Show
        Nigel Deakin added a comment - The methods createQueue and createTopic provide a way for an application to obtain a Queue or Topic object identified by the specified name. These methods are not intended to create the underlying queue or topic in the JMS provider but are simply ways of obtaining a Queue or Topic object which refers to an existing queue or topic. (I know some JMS providers do support automatic creation of queues and topics but this is not a requirement of these methods.) Can you say more about why these methods do not meet your needs? Are you asking for methods to physically create the queue or topic in the JMS provider?

          People

          • Assignee:
            Unassigned
            Reporter:
            John D. Ament
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: