Guest User

Untitled

a guest
Jul 17th, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. @MessageDriven(name = "TestMdb", activationConfig = {
  2. @ActivationConfigProperty(propertyName="destinationType", propertyValue = "javax.jms.Queue"),
  3. @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"),
  4. @ActivationConfigProperty(propertyName="destinationProperties", propertyValue="owner=XXXXX,name=jms_text_que"),
  5. @ActivationConfigProperty(propertyName="userName", propertyValue="XXXX"),
  6. @ActivationConfigProperty(propertyName="password", propertyValue="XXXX"),
  7. @ActivationConfigProperty(propertyName="ConnectionFactoryClassName", propertyValue="oracle.jms.AQjmsConnectionFactory"),
  8. @ActivationConfigProperty(propertyName="QueueConnectionFactoryClassName", propertyValue="oracle.jms.AQjmsQueueConnectionFactory")
  9. })
  10. @ResourceAdapter("XXXXXX-ear.ear#genericjmsra.rar")
  11. @TransactionManagement(TransactionManagementType.BEAN)
  12. public class TestMdb implements MessageListener {
  13.  
  14. public void onMessage(Message message) {
  15. ...
  16. }
  17. }
Add Comment
Please, Sign In to add comment