Implementing JMS Integration Solutions with WSO2 ESB

1,363 views

Published on

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,363
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
65
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Implementing JMS Integration Solutions with WSO2 ESB

  1. 1. ๏ ๏
  2. 2. ๏ ๏ ๏ ๏ ๏ ๏ ๏ ๏
  3. 3. ๏ ๏ ๏ ๏ ๏ ๏
  4. 4. Introducing WSO2 ESB ๏ ๏ ๏ ๏ ๏ ๏ ๏
  5. 5. ๏ ๏
  6. 6. ๏ ๏ ๏ ๏ ๏
  7. 7. dest = (Destination) jndiContext.lookup(destName); queue = (Queue) jndiContext.lookup(queueName); MessageProducer producer = session.createProducer(dest); TextMessage message = session.createTextMessage(); message.setText(“Hello”); producer.send(message); Message Producer Message Consumer Message Broker dest = (Destination) jndiContext.lookup(destName); queue = (Queue) jndiContext.lookup(queueName); MessageConsumer consumer = session.createConsumer(dest); Message m = consumer.receive();
  8. 8. ๏ ๏ ๏ ๏
  9. 9. ๏ ๏
  10. 10. ๏ ๏ ๏ ๏ ๏
  11. 11. ๏ ๏ ๏ <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener"> <parameter name="myTopicConnectionFactory" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter> <parameter name="java.naming.provider.url" locked="false">repository/conf/jndi.properties</parameter> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">TopicConnectionFactory</parameter> <parameter name="transport.jms.ConnectionFactoryType" locked="false">topic</parameter> </parameter> <parameter name="myQueueConnectionFactory" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter> <parameter name="java.naming.provider.url" locked="false">repository/conf/jndi.properties</parameter> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter> <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter> </parameter> <parameter name="default" locked="false"> <parameter name="java.naming.factory.initial" locked="false">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</parameter> <parameter name="java.naming.provider.url" locked="false">repository/conf/jndi.properties</parameter> <parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter> <parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter> </parameter> </transportReceiver>
  12. 12. ๏ ๏ ๏ ๏
  13. 13. ๏ ๏ ๏ ๏
  14. 14. ๏ ๏
  15. 15. ๏ ๏ ๏ ๏
  16. 16. ๏ ๏ ๏
  17. 17. ๏ ๏
  18. 18. ๏ ๏ ๏ ๏ Client ESB Topic Subscriber Subscriber Subscriber
  19. 19. ๏ ๏ ๏ ๏ ๏ ๏ ๏ ๏ ๏
  20. 20. ๏ ๏ ๏
  21. 21.
  22. 22. ๏ (3) Send/Retry on failure
  23. 23.
  24. 24. ๏ JMS Client WSO2 Message Broker ESB Proxy Service
  25. 25. ๏ HTTP Client ESB Proxy Service WSO2 Message Broker Data Service
  26. 26. ๏ ๏ 6

×