XMLWordPrintable

Details

    • Sub-task
    • Resolution: Unresolved
    • Major
    • 3.x Future
    • 2.17.0.Final
    • Java EE

    Description

      It would be good to have a command to quickly add a new JMSDestinationDefinition to allow sending messages :

      jms-add-destination-definition --named myDestination --interfaceName javax.jms.Topic --destinationName myTopic
      

      This will create a new class called org.myproject.jms.MessageResources if it doesn't exist, and will add a new JMSDestinationDefinition :

      package org.myproject.jms;
      
      @JMSDestinationDefinitions({
            @JMSDestinationDefinition(
                  name = "myDestination",
                  interfaceName = "javax.jms.Topic",
                  destinationName = "myTopic"
                  )
      })
      public class MessageResources {
      } 
      

      Tying the command a second time will add a new JMSDestinationDefinition to the exiting JMSDestinationDefinitions :

      @JMSDestinationDefinitions({
      @JMSDestinationDefinition(
      name = "myDestination",
      interfaceName = "javax.jms.Topic",
      destinationName = "myTopic"
      ),
      @JMSDestinationDefinition(
      ...
      )
      })
      public class MessageResources

      { } {code}

      Attachments

        Activity

          People

            Unassigned Unassigned
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: