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

    • 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 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}

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

                Created:
                Updated: