Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Swordfish Documentation: Apache ODE integration"

(How to install the BPEL Editor for Ganymede)
(Deploying ODE and BPEL samples in Swordfish)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==how to deploy ODE+BPEL sample in swordfish==
+
==Deploying ODE and BPEL samples in Swordfish==
By default you have ode samples as jbi component package zip. To be able to deploy it to Swordfish you need to have osgi bundle.
+
By default you have ode samples in the form of a JBI component package zip file. You must have
To do this you need to do following actions:
+
the OSGI bundle to deploy it to Swordfish .
  
* change extension from zip to jar
+
To deploy ODE and BPEL samples:
* change component archive:
+
 
**open archive for editing (on unpack it somewhere) and go to METAINF folder, you should see jbi.xml file here.
+
* Change the extension from <tt>zip</tt> to <tt>jar</tt>
**add MANIFEST.MF file in this folder with following content:
+
* Change the component archive:
 +
**open archive for editing (or unpack it somewhere) and go to METAINF folder, you should see jbi.xml file here.
 +
**Add MANIFEST.MF file in this folder with the following content:
 
<pre>
 
<pre>
 
Manifest-Version: 1.0
 
Manifest-Version: 1.0
Line 20: Line 22:
 
* alternatively you can add bundle statement to  \org.eclipse.swordfish.bundles\config.ini file to automatic install and start on Swordfish startup.
 
* alternatively you can add bundle statement to  \org.eclipse.swordfish.bundles\config.ini file to automatic install and start on Swordfish startup.
  
IMPORTANT: don't foget to add 2 empty lines at the end of MANIFEST.MF file
+
IMPORTANT: Add 2 empty lines at the end of MANIFEST.MF file
  
 
==Proposal for the JAX_WS-BPEL integration sample==
 
==Proposal for the JAX_WS-BPEL integration sample==
Line 53: Line 55:
 
# for additional check Simple Client invoke reservationStorage.find() service directly on SWORDFISH 2.
 
# for additional check Simple Client invoke reservationStorage.find() service directly on SWORDFISH 2.
  
== How to install the BPEL Editor for Ganymede==
 
 
* download and install Eclipse for RCP/Plug-in Developers eclipse-rcp-ganymede-SR2 from 02/09
 
* via Help/Software Updates/Ganymede Update Site download and install
 
** Web and Java EE Development/Java EE Developer Tools
 
** Web and Java EE Development/Web Developer Tools
 
 
* switch to the CVS perspective by clicking Window/Open Perspective/Other/CVS Repository Exploring
 
* right-click in the CVS Repositories View to add a new Repository Location.
 
* fill the dialog with the following values and click Finish
 
** Host: dev.eclipse.org
 
** Repository path: /cvsroot/technology
 
** User and Password: anonymous
 
** Connection type: pserver
 
  
* expand org.eclipse.bpel/plugins under HEAD
+
[[Swordfish_Documentation:_Installing_BPEL_Editor_in_Ganymede| Installing BPEL Editor in Ganymede]]
* check out the following plugins:
+
** org.eclipse.bpel.apache.ode.deploy.model
+
** org.eclipse.bpel.apache.ode.deploy.ui
+
** org.eclipse.bpel.apache.ode.runtime
+
** org.eclipse.bpel.common.model
+
** org.eclipse.bpel.common.ui
+
** org.eclipse.bpel.model
+
** org.eclipse.bpel.runtimes
+
** org.eclipse.bpel.ui
+
** org.eclipse.bpel.validator
+
** org.eclipse.bpel.wsil.model
+
** org.eclipse.bpel.xpath10
+
  
* export all these projects as "Deployable plug-ins and fragments into an empty directory
+
-----------------
* copy the exported plugin-jars into your eclipse/plugins folder
+
return to [[Swordfish_Documentation |Swordfish Documentation Home]] <br/>
* restart eclipse
+
go to [[Swordfish | Swordfish Wiki Home]] <br/>
* checkout the BPEL sample projects under "org.eclipse.bpel/examples"
+
* test the BPEL editor by opening a BPEL file from the examples
+

Latest revision as of 10:14, 26 May 2009

Deploying ODE and BPEL samples in Swordfish

By default you have ode samples in the form of a JBI component package zip file. You must have the OSGI bundle to deploy it to Swordfish .

To deploy ODE and BPEL samples:

  • Change the extension from zip to jar
  • Change the component archive:
    • open archive for editing (or unpack it somewhere) and go to METAINF folder, you should see jbi.xml file here.
    • Add MANIFEST.MF file in this folder with the following content:
Manifest-Version: 1.0
Bundle-SymbolicName: !!!!YOUR BUNDLE NAME!!!!!
Bundle-Version: 0.0.0
DynamicImport-Package: javax.*,org.xml.*,org.w3c.*


  • repack archive and you are ready to install bundle
  • run swordfish and install bundle manually with osgi> install file:///c:/you-bundle-location
  • start bundle with command osgi> start BUNDLE_ID (you can check bundle ID with osgi> ss command)
  • alternatively you can add bundle statement to \org.eclipse.swordfish.bundles\config.ini file to automatic install and start on Swordfish startup.

IMPORTANT: Add 2 empty lines at the end of MANIFEST.MF file

Proposal for the JAX_WS-BPEL integration sample

The sample will cover both scenarios:

  • calling a BPEL process from JAX-WS (BPEL as service provider)
  • calling a JAX-WS service from BPEL (BPEL as service consumer)

The sample realizes the same flight reservation functionality as our standard JAX-WS sample, but uses a reservation storage, which instead implemented as internal hash table is implemented as a separate JAX-WS web service.

We realize the createReservation function as BPEL process calling a JAX-WS implemented reservationStorage.

So the java createReservation implemetation will call an ODE web service implementing this function. BPEL would construct a reservation from the input data and then call a reservationStorage.put web service function.

This way we cover both scenarios in one example, but will provide separate test cases for both scenarios (using a mock BPEL service and calling BPEL directly).

JAX_WS-BPEL demo implementation proposal

JAX-WS-BPEL-integration-sample.png

Participants:

  • simple java based web service client
  • SWORDFISH instance with demo BPEL process deployed
  • second SWORDFISH instance with JAX-WS services deployed (using separate SWORDFISH instance need for clear demonstation that we really invoke JAX-WS services from BPEL process)

The scenario is:

  1. Simple Client execute createReservation request to SWORDFISH 1, BPEL process start executing.
  2. After prepare needed info createReservation BPEL process invoke reservationStorage.put() deployed on SWORDFISH 2 and returns success confirmation and reservation ID to simple client.
  3. for additional check Simple Client invoke reservationStorage.find() service directly on SWORDFISH 2.


Installing BPEL Editor in Ganymede


return to Swordfish Documentation Home
go to Swordfish Wiki Home

Back to the top