Invoking a Service on a JMS Event

compared with
Current by Vincent Zurczak
on Feb 12, 2012 19:17.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View Page History

Start Petals Studio.
In the menu, select *File > New > Service-Unit Project*. Petals Service Consumer*.
If you do not see it, go into *File > New > Other...* Then, select *Service-Unit Project* *Petals Service Consumer* under the *Petals* category.

\\
In the *Use Case* list, select *Communication*.
In the *Petals Component* list, select *JMS // petals-bc-jms*.
In the *Component Usage* list, select *Consume a Petals service (or Expose it outside the bus)*.
In the *Component Version* list, select the version of the Petals-BC-JMS that you are using in Petals.


\\
This page also defines the operation to invoke and the Message Exchange Pattern (MEP).
The Message Exchange Pattern (MEP) defines the interactions between the JMS component and the invoked service.

\\
You can obviously fill-in these fields by hand.
However, the most efficient way is to use the [Petals Services explorer|Getting familiar with the Petals Services view] (provided it was populated).

\\
Click *Next*.


h2. Specifying the CDK parameters

The CDK is the Petals framework to develop JBI components.
The Petals-BC-JMS component was developed with this framework.

This page requires information related to the CDK.
If the service to consume is described by a WSDL, then there is a list of the possible operations that can be invoked.
Otherwise, you have three parameters to complete here (others are optional or have default values):
* The name space of the invoked operation's name (WSDL operations are QNames).
* The local part of the invoked operation's name (WSDL operations are QNames).
* The Message Exchange Pattern (MEP).

The meaning of all the CDK parameters for JMS can be found in the documentation of the [Petals-BC-JMS|petalscomponents:Petals-BC-JMS] component.

\\ !petals-studio-tuto-consume-jms-6.jpg!

\\
Click *Finish* to complete the wizard.