Hi James, The features which will be loaded at startup time are defined in <servicemix_dir>/etc/org.apache.karaf.features.cfg. It is possible to alter this list to add the necessary features.
As far as I know there is no direct way to load jar's at startup but you can make your own features file and use it to load them (http://karaf.apache.org/manual/latest-2.2.x/users-guide/provisioning.html). To add the features file to the list of features at startup time, you also add it to the <servicemix_dir>/etc/org.apache.karaf.features.cfg file and append it to the "featuresRepositories" property. For features/bundles embedded into the release, servicemix uses an embedded maven repository located in the <servicemix_dir>/system/ folder. You can consider adding yours to this repo. I hope this solves your issue and do not hesitate to contact us if you need any further assistance. Sincerely Wim On 10 Sep 2013, at 16:32, James Olin Oden <[email protected]> wrote: > Hi All, > > I'm trying to create servicemix SRPM that will build a servicemix RPM > that has certain services pre-enabled, and has some jars that are not > part of the servicemix distribution pre-installed as part o the > archive. > > The configuration I'm talking about amounts to do the following from > the servicemix client at runtime: > > features:install camel-jdbc > features:install camel-sql > features:install camel-jaxb > features:install camel-jms > features:install camel-cxf > features:install woodstox > osgi:install -s > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.2.2_6 > osgi:install -s wrap:mvn:mysql/mysql-connector-java/5.1.6 > > I have an RPM that will do this but the methodology used is not > reliable. What I did was essentially start servicemix at build time, > run the client and send those commands above to it, and then stop > servicemix. This ends up with several timing issues and does not > support two people on the same build system building this RPM at the > same time. > > What I want to do is alter some files to enable these services and > drop in the jars in a particular directory and then package up that > directory tree as an RPM (i.e. all of servicemix with these changes). > Is there a way to do this? Is there documentation I'm missing > somehow? > > Thanks...James
