Create Spring context in OSGI through the API -


to clarify question further:

i have spring xml file camel routes. want bootstrap route in bundleactivator. steps in osgi world initialize , start springcontext , register osgi registry. want custom through api – need control rather use spring dm. under stand need use osgi classes. examples follow:

this not start routes:

configurableapplicationcontext  ctx = new genericapplicationcontext(); configurableenvironment environment = ctx.getenvironment(); //set props context xmlbeandefinitionreader xmlreader = new xmlbeandefinitionreader((beandefinitionregistry) ctx); classpathresource classpathresource = new classpathresource("context.xml",properclassloader ); xmlreader.loadbeandefinitions(classpathresource); ctx.refresh(); ctx.start(); 

thanks.

what looking called managed service factories. take @ description @ eclipse gemini project.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -