私の質問をさらに明確にするために:
キャメルルートを含むSpring xmlファイルがあります。このルートを BundleActivator でブートストラップしたいと考えています。SpringContext を初期化して開始し、OSGI レジストリに登録するための OSGI の世界での手順は何ですか。API を介してこのカスタムを実行したいのですが、Spring DM を使用するのではなく、これを制御する必要があります。OSGI クラスを使用する必要があることを理解しています。従うべき例:
これはルートを開始しません。
ConfigurableApplicationContext ctx = new GenericApplicationContext();
ConfigurableEnvironment environment = ctx.getEnvironment();
//set up the props for the context
XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader((BeanDefinitionRegistry) ctx);
ClassPathResource classPathResource = new ClassPathResource("context.xml",properClassLoader );
xmlReader.loadBeanDefinitions(classPathResource);
ctx.refresh();
ctx.start();
ありがとう。