mattrpav wrote:
Mariana-

This isn't exactly what you are looking for, but it might get you close
enough--

I've setup ServiceMix to run in Eclipse as a plain Java Application and it
works well (debug, too!).  You have to manually copy archives for
deployment, but that is easy enough.  Create a standard Java Project called
"Servicemix" and unzip the ServiceMix runtime in that project so you have a
folder structure that looks like
workspace\ServiceMix\apache-servicemix-$version\.  (In the example below, i
use apache-servicemix-SNAPSHOT, so just replace that with the correct name
for the version you have)

Then you can use these settings to run ServiceMix as an Java Application:

Run -> Open Run Dialog

* Click on the 'New' button (the paper with the plus "+" in the top right
corner)

[(C) Main] Tab
* Select Project 'ServiceMix'
* Main class: org.codehaus.classworlds.Launcher
* Check 'Include system libraries when searching for a main class'

[(x)= Arguments] Tab * VM arguments:
 -server -Xms128M -Xmx512M
-Dderby.system.home=${workspace_loc}/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/var
-Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote
-classpath
.:${workspace_loc}/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/conf:${workspace_loc}/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/lib/classworlds-1.0.1.jar
-Dclassworlds.conf=${workspace_loc}/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT/conf/servicemix.conf
-Dservicemix.home=${workspace_loc}/ServiceMix/apache-servicemix-3.2.2-SNAPSHOT
* Working directory:
 (x) Other: ${workspace}/ServiceMix/apache-servicemix-SNAPSHOT

[v^ Classpath] Tab
* Add 'User entries' for the folder
'ServiceMix/apache-servicemix-SNAPSHOT/conf'
* Add 'User entries' for the jar
'ServiceMix/apache-servicemix-SNAPSHOT/lib/classworlds-1.0.1.jar

[Common] Tab
* Check [x] For Debug and Run favorites
* [x] for Allocate Console
* [x] for Launch in background

Hope this helps.

Matt Pavlovich
Hi matt I wanted to thank you, I really appreciate your help, it is cool to share knowledge with other people. I am going to try this tomorrow since today i can't, but I am really exited about that. By the way if you ever have doubts about nlp, datamining, texmining, AI, and that kind of stuff, do not hesitate in writting to me.

Best Regards
Mariana

Reply via email to