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"

Line 2: Line 2:
 
To do this you need 2 actions:
 
To do this you need 2 actions:
  
# change extension from zip to jar
+
* change extension from zip to jar
# change component archive:
+
* change component archive:
##open archive for editing (on unpack it somewhere) and go to METAINF folder, you should see jbi.xml file here.
+
**open archive for editing (on unpack it somewhere) and go to METAINF folder, you should see jbi.xml file here.
##add MANIFEST.MF file in this folder with following content:
+
**add MANIFEST.MF file in this folder with following content:
 
<pre>
 
<pre>
 
Manifest-Version: 1.0
 
Manifest-Version: 1.0
Line 14: Line 14:
  
 
</pre>
 
</pre>
# repack archive and you are ready to install bundle
+
* repack archive and you are ready to install bundle
# run swordfish and install bundle manually with osgi> install file:///c:/you-bundle-location
+
* 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)
+
* 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.
+
* 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: don't foget to add 2 empty lines at the end of MANIFEST.MF file

Revision as of 08:01, 10 March 2009

By default you have ode samples as jbi component package zip. To be able to deploy it to Swordfish you need to have bundle not jbi component. To do this you need 2 actions:

  • change extension from zip to jar
  • change component archive:
    • open archive for editing (on unpack it somewhere) and go to METAINF folder, you should see jbi.xml file here.
    • add MANIFEST.MF file in this folder with 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: don't foget to add 2 empty lines at the end of MANIFEST.MF file

Back to the top