Hi,

I have an important piece of middle-ware that depends on native libraries.
I have a requirement to support multiple implementation of this middle-ware
simultaneously.  To accomplish this I want to start child karaf instances
from my main process.

I'm using an extender pattern to detect when a bundle is installed that
provides the middle-ware.  When detected, it extracts the required native
libs from the bundle to the instance lib directory (e.g.
$KARAF_HOME/instances/foo-01/lib).

I've found an issue, however, with the way LD_LIBRARY_PATH is being set
when the instance is started using the instance's start script--the
KARAF_BASE variable isn't set to the instance's directory and
consequentially LD_LIBRARY_PATH doesn't include the instance's lib
directory when ran.  This isn't a problem, however, when started with the
instance's karaf script.

Does anyone have any ideas or guidance on how to handle this?

Reply via email to