tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet" <>
Subject Re: OpenEJB in an OSGi container
Date Thu, 09 Oct 2008 19:47:01 GMT
It's been a long time since I work on that and I still have not found
the time to continue this integration work.
Anyway, the code I used is available at:
It uses a spring-powered bundle to set up OpenEJB:
and the related java classes are available at:

Unfortunately, this may be a bit outdated :-(

Anyway, the idea was to be able to listen to newly installed bundles
and discover EJB inside those so that they are automatically
configured as plain EJB or web services.
Though, this was in the context of ServiceMix, where the EJBs were to
be exposed on the JBI bus and eventually through HTTP/SOAP too.

On Thu, Oct 9, 2008 at 9:26 PM, David Blevins <> wrote:
> Guillaume is the one who's done most the work in this area in regards to his
> use of OpenEJB in the OSGi-based ServiceMix 4.
> What boot technique did you use in ServieMix?
> -David
> On Oct 9, 2008, at 2:08 PM, Zog wrote:
>> Hi
>> So, I managed to get my EJB app running just fine in Tomcat/OpeneEJB. Now
>> that it validates the J2EE support I need from OpenEJB, I'd like to move
>> all
>> this
>> to an OSGi container.
>> Any hints on where I should look for information ?
>> I scanned through the web and although it's stated everywhere that OpenEJB
>> is packaged as OSGi bundled, I couldn't find information on how to start
>> openejb
>> in osgi.
>> I tried a simple approach where I load everything in openejb/lib from the
>> system classpath,
>> but got a mysterious exception:
>> Caused by: org.apache.openejb.core.ivm.naming.NamingException: Cannot
>> initailize
>> OpenEJB: null
>>       at
>> org.apache.openejb.core.ivm.naming.InitContextFactory.initializeOpenE
>> JB(
>>       at
>> org.apache.openejb.core.ivm.naming.InitContextFactory.getInitialConte
>> xt(
>>       at
>> org.apache.openejb.client.LocalInitialContextFactory.getIntraVmContex
>> t(
>> That's most probably related to the way OSGi does classloading, and I'm
>> investigating.
>> Should I look at the way you embedded OpenEJB for Tomcat ? Or should I
>> look
>> elsewhere ?
>> Any clue welcomed :)
>>     /Zog
>> PS: Btw, finding is not very easy on the
>> openejb site -
>> I had to scan through the forums to find that one.
>> --
>> View this message in context:
>> Sent from the OpenEJB User mailing list archive at

Guillaume Nodet
Open Source SOA

View raw message