Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1926 Adding more commands to Forge and improve existing ones
  3. FORGE-2415

Being able to add a JMS connection factory definition

    XMLWordPrintable

Details

    Description

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

      jms-add-connection-factory-definition --named myFactory --resourceAdapter jmsra
      

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

      package org.myproject.jms;
      
      @JMSConnectionFactoryDefinitions({
            @JMSConnectionFactoryDefinition(
                  name = "myFactory",
                  interfaceName = "jmsra"
                  )
      })
      public class MessageResources {
      } 
      

      Tying the command a second time will add a new JMSConnectionFactoryDefinition to the exiting JMSConnectionFactoryDefinitions :

      @JMSConnectionFactoryDefinitions({
      @JMSConnectionFactoryDefinition(
      name = "myFactory",
      interfaceName = "jmsra"
      ),
      @JMSConnectionFactoryDefinition(
      ...
      )
      })
      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: