anypoint jms connector with mulesoft

11

Click here to load reader

Upload: jitendra-bafna

Post on 12-Apr-2017

187 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Anypoint JMS Connector With Mulesoft

Anypoint JMS Connector With Mulesoft

Page 2: Anypoint JMS Connector With Mulesoft

JMS Connector

JMS (Java Messaging Service) is mostly used API enabling the application

to communicate through the exchange of message. JMS connector is

capable of sending and receiving message to and from Topics/Queues.

JMS supports two models for messaging

Queue (Point to Point)

Topic (Publish-Subscribe)

Page 3: Anypoint JMS Connector With Mulesoft

Queue

It enables One to One communication. It is also called as a Point To

Point communication.

Sender will delivers message to queue and single receivers will pick the

message from queue.

Receiver doesn't needs to listen to queue at the time when message is

sent to queue.

Page 4: Anypoint JMS Connector With Mulesoft

Topic

It enables One to Many communicaton. It is also called as a Publish

Subscribe communication.

Publisher will deliver message to topic and it will be received by all

subscribers who are actively listening to topic.

Subscriber will miss the published message if it is not actively listening to

the topic unless message are made durable.

Page 5: Anypoint JMS Connector With Mulesoft

JMS Connector for Publishing Message to

Topic

Place a JMS connector at Message Source section in Mule Flow.

Configure the connector properties like Display Name, Topic and click on

Add Connector Configuration, it will open another window then select

JMS of your choice. In this case we will select ActiveMQ and press OK.

Page 6: Anypoint JMS Connector With Mulesoft

JMS Connector for Publishing Message to

Topic

After clicking OK, it will open another window where you need to provide your

Broker Url and Username/Password if any.

Page 7: Anypoint JMS Connector With Mulesoft

JMS Connector for Publishing Message to

Topic

Now you need to add ActiveMQ jar file in your project. Drag and Drop the jar

file (e.g. activemq-all-5.6.0.jar) into your project and go to Package Explorer

pane of your application and right click then select Build Path < Add to Build

Path.

Page 8: Anypoint JMS Connector With Mulesoft

JMS Connector for Publishing Message to

Topic

Page 9: Anypoint JMS Connector With Mulesoft

JMS Connector for Subscribing Message to

Topic

Place the JMS connector at the middle or end of the flow (basically in the

Message Processor region).

Configure JMS connector in same way as we have done for Publishing the

message to topic. You need to add Active MQ jar file for subscribing the

message to topic as it has been explained in this presentation in previous

slides.

Page 10: Anypoint JMS Connector With Mulesoft

Supported JMS Providers

Out-Of-Box support for ActiveMQ, WebLogic JMS, Generic or any custom

JMS.

HornetMQ, Open MQ, Solace JMS, Tibco EMS.

WebSphere MQ.

Page 11: Anypoint JMS Connector With Mulesoft

Thank You