Antonio Goncalves created FORGE-2415:
----------------------------------------
Summary: Being able to add a JMS connection factory definition
Key: FORGE-2415
URL:
https://issues.jboss.org/browse/FORGE-2415
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.17.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to have a command to quickly add a new {{JMSConnectionFactoryDefinition}}
to allow sending messages :
{code}
jms-add-connection-factory-definition --named myFactory --resourceAdapter jmsra
{code}
This will create a new class called {{org.myproject.jms.MessageResources}} if it
doesn't exist, and will add a new {{JMSConnectionFactoryDefinition}} :
{code}
package org.myproject.jms;
@JMSConnectionFactoryDefinitions({
@JMSConnectionFactoryDefinition(
name = "myFactory",
interfaceName = "jmsra"
)
})
public class MessageResources {
}
{code}
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}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)