Scheduling Service Invocations

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

Changes (6)

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 *Miscellaneaous*.
In the *Petals Component* list, select *Quartz // petals-se-quartz*.
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-SE-Quartz that you are using in Petals.

\\
In the scope of this tutorial, we are going to work with the version 1.12 of the Quartz component.
Which gives us:


\\
This page also defines the operation to invoke and the Message Exchange Pattern (MEP).
The Message Exchange Pattern (MEP) defines the interactions between the Quartz component and the invoked service.
With this component, only operations that work with the InOnly MEP can be invoked.

\\
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-SE-Quartz 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).

\\
With this component, only operations that work with the *InOnly* MEP can be invoked.
The wizard only shows these operations.

The meaning of all the CDK parameters for Quartz can be found in the documentation of the [Petals-SE-Quartz|petalscomponents:Petals-SE-Quartz] component.
When the invocation is created, the static XML message is sent with the given MEP, and addressed to the invoked operation of the target service (this service being identified by the triplet service, interface and end-point name).

\\ !petals-studio-tuto-consumes-quartz-6.jpg!

\\
Click *Finish* to complete the wizard.