-
1. Re: How do I publish an OSGi Service on ESB 4.2?
gertv Apr 6, 2010 11:16 AM (in response to thygesen)Peter,
You could use any kind of OSGi technology to publish the service: Spring DM, iPojo, Blueprint, ... all of them should work fine with ESB 4.2.0.
We usually recommend people to use Blueprint because it circumvents some common pitfalls with Spring DM but it is still very recognizable for people with a Spring background. We also use it internally to glue everything together.
What kind of problems were you experiencing with the Blueprint example you mentioned in your post? Just looked at the page and I didn't see anything problematic in there at first glance. Anyway, we want to get this example working (either by fixing the issue or fixing the docs)...
Regards,
Gert
-
2. Re: How do I publish an OSGi Service on ESB 4.2?
thygesen Apr 7, 2010 10:11 AM (in response to gertv)I wrote about it in this post, but nobody seemed to care..
http://fusesource.com/forums/thread.jspa?threadID=1752&tstart=15
-
3. Re: How do I publish an OSGi Service on ESB 4.2?
fusetester Apr 8, 2010 5:12 AM (in response to thygesen)Peter,
im using BND Tool it works fine
http://www.aqute.biz/repo/biz/aQute/bnd/0.0.384/bnd-0.0.384.jar
just export your project as jar and use the folowing command
java -jar bnd.jar wrap yourproject.jar
hope that helps
,,,Hisham,,,
-
4. Re: How do I publish an OSGi Service on ESB 4.2?
thygesen Apr 11, 2010 11:14 AM (in response to fusetester)yes maybe you can do like you say... but that is not want i wanted. I want to use the way described in chap.8 with blueprints. But it doesn't work.
17:09:29,829 | ERROR | pool-2-thread-2 | BlueprintContainerImpl | container.BlueprintContainerImpl 337 | Unable to start blueprint container for bundle null
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.checkDirectives(BlueprintContainerImpl.java:180)
at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:232)
at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)