javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-171

Add info on JMS resource-definition annotations and use in some examples

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.0.2
    • Component/s: doc
    • Labels:
      None

      Description

      Nigel Deakin (JMS spec lead) pointed out that Java EE 7 supports two new annotations that need to be documented. These allow resources to be configured by the developer rather than the administrator. They should also be used in some of the JMS examples.

      Examples:

      @JMSDestinationDefinition(
      name = "java:global/jms/tutorialQueue",
      description = "Queue to use in tutorial",
      interfaceName = "javax.jms.Queue"
      destinationName = "MyQueueForTutorial"
      )

      @JMSConnectionFactoryDefinition(
      name="java:global/jms/tutorialConnectionFactory",
      description="ConnectionFactory to use in tutorial"
      )

        Activity

        Hide
        Kim Haase added a comment -

        After some experimentation (the namespace seems to be java:app rather than java:global), I was able to use @JMSDestinationDefinition in two examples and to describe the annotation feature in the tutorial.

        Show
        Kim Haase added a comment - After some experimentation (the namespace seems to be java:app rather than java:global), I was able to use @JMSDestinationDefinition in two examples and to describe the annotation feature in the tutorial.
        Hide
        Kim Haase added a comment -

        Committed doc and example fixes.

        Show
        Kim Haase added a comment - Committed doc and example fixes.
        Hide
        Kim Haase added a comment -

        There's still more work to do, based on comments from Nigel on the fixed examples.

        Show
        Kim Haase added a comment - There's still more work to do, based on comments from Nigel on the fixed examples.
        Hide
        Kim Haase added a comment -

        Committed fixes for both docs and examples.

        Show
        Kim Haase added a comment - Committed fixes for both docs and examples.

          People

          • Assignee:
            Kim Haase
            Reporter:
            Kim Haase
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: