Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Swordfish Documentation: Launching Service Registry"
(New page: Service Registry JAR files are build together with Swordfish Runtime JAR files. To launch them you need to specify following environment variables: <li>'''org.osgi.service.http.port''' - ...) |
|||
Line 1: | Line 1: | ||
Service Registry JAR files are build together with Swordfish Runtime JAR files. To launch them you need to specify following environment variables: | Service Registry JAR files are build together with Swordfish Runtime JAR files. To launch them you need to specify following environment variables: | ||
− | <li>'''org.osgi.service.http.port''' - port for HTTP interface to SR | + | <li>'''org.osgi.service.http.port''' - port for HTTP interface to SR |
− | <li>'''org.eclipse.swordfish.registry.fileLocation''' - a path to the directory where SR will store WSDL files< | + | <li>'''org.eclipse.swordfish.registry.fileLocation''' - a path to the directory where SR will store WSDL files<br> |
+ | |||
You can specify value for these environment variables using '''-D''' parameters when you are launching equinox. Below you will find an example script to launch it: | You can specify value for these environment variables using '''-D''' parameters when you are launching equinox. Below you will find an example script to launch it: | ||
Line 9: | Line 10: | ||
#!/bin/bash | #!/bin/bash | ||
cd ./target/bundles | cd ./target/bundles | ||
− | java java -Dorg.osgi.service.http.port=8080 -Dorg.eclipse.swordfish.registry.fileLocation=/ | + | java java -Dorg.osgi.service.http.port=8080 \ |
+ | -Dorg.eclipse.swordfish.registry.fileLocation=/tmp/swordfish-sr \ | ||
+ | org.eclipse.osgi_3.5.0.v20090311-1300.jar -console -clean | ||
</pre> | </pre> | ||
Option '''-console''' means that equinox will be started in console mode where you can type commands and '''-clean''' means that equinox will cleanup the caches before startup. | Option '''-console''' means that equinox will be started in console mode where you can type commands and '''-clean''' means that equinox will cleanup the caches before startup. |
Revision as of 06:52, 14 May 2009
Service Registry JAR files are build together with Swordfish Runtime JAR files. To launch them you need to specify following environment variables:
You can specify value for these environment variables using -D parameters when you are launching equinox. Below you will find an example script to launch it:
#!/bin/bash cd ./target/bundles java java -Dorg.osgi.service.http.port=8080 \ -Dorg.eclipse.swordfish.registry.fileLocation=/tmp/swordfish-sr \ org.eclipse.osgi_3.5.0.v20090311-1300.jar -console -cleanOption -console means that equinox will be started in console mode where you can type commands and -clean means that equinox will cleanup the caches before startup.