XMLWordPrintable

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

      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}

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

                Created:
                Updated: