Last active
November 26, 2015 17:32
-
-
Save abhirockzz/3ca693aaa5b3a22b85d9 to your computer and use it in GitHub Desktop.
Auto Provisioning JMS Connection Factory and Destination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Stateless | |
@JMSConnectionFactoryDefinition(name = "java:comp/env/AutoDeloyedJMSConf") | |
@JMSDestinationDefinition(interfaceName = "javax.jms.Queue", name = "java:comp/env/AutoDeloyedJMSQueue") | |
public class Service { | |
//usage omitted... | |
} | |
@JMSConnectionFactoryDefinitions({ | |
@JMSConnectionFactoryDefinition( | |
name="java:comp/env/AutoDeloyedJMSConf1" | |
), | |
@JMSConnectionFactoryDefinition( | |
name="java:comp/env/AutoDeloyedJMSConf2" | |
) | |
}) | |
@JMSDestinationDefinitions({ | |
@JMSDestinationDefinition( | |
name="java:comp/env/AutoDeloyedJMSQueue1", | |
interfaceName = "javax.jms.Queue", | |
), | |
@JMSDestinationDefinition( | |
name="java:comp/env/AutoDeloyedJMSQueue2", | |
interfaceName = "javax.jms.Queue", | |
) | |
}) | |
@Stateless | |
public class AnotherService { | |
//usage omitted... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment