You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pahaukka <pa...@nsn.com> on 2010/08/16 14:37:35 UTC
Setting environment variables in serviceMix 3.3
We are new to serviceMix 3.3 and wanted to integrate our external classes in
different location to our Binding Component under .../hotdeploy.
Noticed that environment does not get propagated completely to JVM, is there
any special trick beside -DmyVAR=value and updating LD_LIBRARY_PATH in
servicemix shell script? Those are not working for me ...
Help wanted,
PH.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Setting-environment-variables-in-serviceMix-3-3-tp2636633p2636633.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Setting environment variables in serviceMix 3.3
Posted by pahaukka <pa...@nsn.com>.
Thanks for help. Copying the jar files under servicemix lib directory solved
the problem.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Setting-environment-variables-in-serviceMix-3-3-tp2636633p2834507.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Setting environment variables in serviceMix 3.3
Posted by Lars Heinemann <lh...@apache.org>.
Maybe you should consider putting the 3rd party lib and the native lib
together into the "lib" folder of the
servicemix installation folder.
Lars
2010/8/17 pahaukka <pa...@nsn.com>:
>
> We have 3:th party product which is C based executable and it provides Java
> API via JNI for Java based applications. Our BC component uses this Java API
> and the reason for setting LD_LIBRARY_PATH is to get 3:th Java API to get
> shared library loaded.
>
> Using Java API within standalone Java application without Servicemix worked
> fine but making it as BC and deploying it servicemix then it won't. We can
> see from logs that it can load share libraries but it cannot use services.
> According to SW provider the problem is related to environment variables
> (The Java API and C code share same environment variables) that are not seen
> by servicemix.
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Setting-environment-variables-in-serviceMix-3-3-tp2636633p2637963.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
--
http://lhein.blogspot.com
Re: Setting environment variables in serviceMix 3.3
Posted by pahaukka <pa...@nsn.com>.
We have 3:th party product which is C based executable and it provides Java
API via JNI for Java based applications. Our BC component uses this Java API
and the reason for setting LD_LIBRARY_PATH is to get 3:th Java API to get
shared library loaded.
Using Java API within standalone Java application without Servicemix worked
fine but making it as BC and deploying it servicemix then it won't. We can
see from logs that it can load share libraries but it cannot use services.
According to SW provider the problem is related to environment variables
(The Java API and C code share same environment variables) that are not seen
by servicemix.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Setting-environment-variables-in-serviceMix-3-3-tp2636633p2637963.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Setting environment variables in serviceMix 3.3
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
you have to ways to do it:
- you can package your classes in a jar file and put this jar file into
the ServiceMix lib directory. In that case, your classes will be
available in the ServiceMix root class loader.
- another solution is to package your classes into a shared library. The
shared library can be included in your xbean definition using
<classpath/> tag.
I don't understand your update on LD_LIBRARY_PATH as it's for native
libraries and not classes.
Regards
JB
On 08/16/2010 02:37 PM, pahaukka wrote:
>
> We are new to serviceMix 3.3 and wanted to integrate our external classes in
> different location to our Binding Component under .../hotdeploy.
>
> Noticed that environment does not get propagated completely to JVM, is there
> any special trick beside -DmyVAR=value and updating LD_LIBRARY_PATH in
> servicemix shell script? Those are not working for me ...
>
>
> Help wanted,
> PH.