Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @MessageDriven(name = "TestMdb", activationConfig = {
- @ActivationConfigProperty(propertyName="destinationType", propertyValue = "javax.jms.Queue"),
- @ActivationConfigProperty(propertyName="connectionFactoryProperties", propertyValue="jdbc_connect_string=jdbc:oracle:thin:XXXXX@XXX:1521:XXX,host=XXXX,user=XXXX,password=XXXX,port=XXXX,sid=XXXX,driver=XXXX"),
- @ActivationConfigProperty(propertyName="destinationProperties", propertyValue="owner=XXXXX,name=jms_text_que"),
- @ActivationConfigProperty(propertyName="userName", propertyValue="XXXX"),
- @ActivationConfigProperty(propertyName="password", propertyValue="XXXX"),
- @ActivationConfigProperty(propertyName="ConnectionFactoryClassName", propertyValue="oracle.jms.AQjmsConnectionFactory"),
- @ActivationConfigProperty(propertyName="QueueConnectionFactoryClassName", propertyValue="oracle.jms.AQjmsQueueConnectionFactory")
- })
- @ResourceAdapter("XXXXXX-ear.ear#genericjmsra.rar")
- @TransactionManagement(TransactionManagementType.BEAN)
- public class TestMdb implements MessageListener {
- public void onMessage(Message message) {
- ...
- }
- }
Add Comment
Please, Sign In to add comment