Oh, I should add that my service is exposed via Spring. I'll try to load some Spring stuff.
On Wed, Aug 3, 2011 at 5:49 AM, Samuel Cox <[email protected]> wrote: > Thanks for that. I have figured out a few of my problems. > > I am able to run without any errors other than it getting a > NoClassDefFoundError when attempting to lookup my service via > getOsgiService(MyService.class). I am using scanFeatures to select > that service, but it doesn't seem to work even though it gives me no > errors... > > On Tue, Aug 2, 2011 at 2:54 PM, Christian Müller > <[email protected]> wrote: >> Hello Samuel! >> >> I think these both classes are interesting for you [1], [2]. This is the way >> Camel itself tests whether its components are OSGI ready. >> >> I also created/hold a ticket [3] to provide a bundle which customers/users >> can use to test their bundles in OSGI. >> >> [1] >> https://svn.apache.org/repos/asf/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationTestSupport.java >> [2] >> https://svn.apache.org/repos/asf/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/OSGiIntegrationSpringTestSupport.java >> [3] https://issues.apache.org/jira/browse/CAMEL-3777 >> >> Hope this helps. >> >> Best, >> Christian >> >
