You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by nvijayak <nv...@cs.indiana.edu> on 2008/03/05 05:25:29 UTC
Re: How to embed ServiceMix
The steps to embed servicemix in Tomcat are as follows:
cd fuse-esb-3.3.0.6\examples\servicemix-web
mvn package
copy target\servicemix-web-3.3.0.6-fuse.war to tomcat\webapps
Start tomcat
You can see Servicemix is running by going to
http://localhost:8080/servicemix-web-3.3.0.6-fuse/examples. This is a simple
example that tests that Servicemix is running
The Servicemix JMX console can be viewed at
http://localhost:8080/servicemix-web-3.3.0.6-fuse
The list of applications deployed can be viewed at
http://localhost:8080/servicemix-web-3.3.0.6-fuse/jbi;
To deploy a jsr181 webservice application developed in Servicemix,
First copy servicemix-shared components from fuse\hotdeploy to
tomcat\webapps\servicemix-web-3.3.0.6\deploy
Then copy the servicemix-jsr181 components from fuse\hotdeploy folder to
tomcat\webapps\servicemix-web-3.3.0.6\deploy
In the tomcat console, we can see that the components is being unzipped and
installed. The jmx console shows the status of the installation.
(Please note that these components need to be installed only if they are not
already running. Check by looking at 'Component' in JMX console)
Now copy the service-assembly.jar file from the corresponding directory in
fuse to tomcat\webapps\servicemix-web\deploy
Servicemix can be embedded in Jetty. The steps are as follows:
>From the servicemix.war file created from mvn package in the
examples\servicemix-web folder, remove these jars: mx4j*.jar and
jetty-management-*.jar. These jars are used to start the MBeanServer and are
already part of Jetty. Deploying Servicemix with these jars will throw an
exception and halt the deployment.
Jetty by default extracts the war files in the system temp folder (ex:
C:\Documents and Settings\username\Local Settings\Temp). If we copy the
deployable jars into the servicemix folder in the temp directory, this gets
deleted when jetty or system restarts. To avoid this first create a folder
called work in Jetty_home. Then start Jetty. This expands the war files in
the work folder. The jars can then be copied to
Jetty_Home\work\Jetty_**_servicemix**\webapps\deploy
kumar k wrote:
>
> What are the steps required for embeding ServiceMix in my application?
>
> ---------------------------------
> Looking for a deal? Find great prices on flights and hotels with Yahoo!
> FareChase.
>
--
View this message in context: http://www.nabble.com/How-to-embed-ServiceMix-tp12385455s12049p15843002.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.