Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. WMSG0042I: MDB Listener LoanIQ Payments Inbound started successfully for JMSDestination jms/eid/payments
  2. WTRN0063E: An illegal attempt to commit a one phase capable resource with existing two phase capable resources has occurred.
  3. WTRN0086I: XAException encountered during prepare phase for transaction 00000131...0001. Local resources follow.
  4. WTRN0089I: XATransactionWrapper@ 3fbe3fbe XAResource: com.ibm.ejs.jms.JMSManagedSession$JMSXAResource@3fb83fb8 enlisted: true mcWrapper.hashCode()1038237154: Vote: commit.
  5. WTRN0089I: LocalTransactionWrapper@:4e2e4e2e LocalTransaction:com.ibm.ejs.jms.JMSManagedSession$JMS LocalTransaction@4e5a4e5a enlisted:true registeredForSynctruemcWrapper.hashcode()1032076676: Vote: none.
  6.  
  7. public void onMessage(Message message) {
  8. // ^^ incoming message delivered from EMS queue via WAS MessageListener
  9. TextMessage textMessage = (TextMessage) message;
  10. QueueConnectionFactory factory = (QueueConnectionFactory) context.lookup(factoryName);
  11. Queue queue = (Queue) context.lookup(queueName);
  12. QueueConnection connection = factory.createQueueConnection();
  13. connection.start();
  14. QueueSession session = connection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
  15. QueueSender sender = session.createSender(queue);
  16. TextMessage message = session.createTextMessage("some new payload");
  17. sender.send(message);
  18. // ^^ outgoing message sent to WebSphere MQ queue
  19. }
  20.  
  21. @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
  22. public void onMessage(Message message) {//Logic }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement