Oracle JMS(Java Message Service)
Adapter Tutorial
Today we will learn the concept of JMS adapter in SOA Suite.Oracle JCA(J2EE connector Architecture) Adapter for JMS (Oracle JMS Adapter), enables an Oracle BPEL process or an Oracle Mediator component to interact with JMS. While working with JMS adapter we can use either topics or queues.
Messages are exchanged through a queue via point to point interaction wheres as in topics the publish-subscribe model is being used i.e messages are sent to a topic and can be read by many subscribed clients.We will implement one usecase scenario in which our BPEL process will pick message from one jms queue and the same message will be published in another JMS queue.This scenario will demonstrate how to consume and publish messages in jms queue.Ofcourse, our queues would be present on weblogic application server.Also,knowledge about queues and connection factory by viewers is preasumed.
Consume Message : The Consume Message option enables the adapter to consume (receive) inbound messages from a JMS destination.
Produce Message : enables the adapter to produce (send) outbound messages for a JMS destination.
Request/Reply : Oracle JMS Adapter supports both synchronous and asynchronous request reply interaction pattern.It is out of context from our tutorial perspective.
Lets start with the tutorial
JMS (Java Message service)Adapter:
In this example
we will create a BPEL process which will write (enqueue) a message to a JMS
queue using a JMS adapter. The JMS adapter will enqueue the full XML payload to
the queue.
Queue :
Defines a
point-to-point destination type, which are used for asynchronous peer
communications. A message delivered to a queue is distributed to only one
consumer.
Topic :
Defines a
publish/subscribe destination type, which are used for asynchronous peer
communications. A message delivered to a topic is distributed to all topic
consumers.
The Connection Pool will be
created as part of this example.
Object Name
|
Type
|
JNDI Name
|
SubbuCF
|
Connection Factory
|
jms/SubbuCF
|
SubbuQueue
|
JMS Queue
|
jms/SubbuQueue
|
SubbuTopic
|
JMS Topic
|
Jms/SubbuTopic
|
eis/SubbuQueue/Queue
|
Connection Pool
|
eis/SubbuQueue/Queue
|
No comments:
Post a Comment