On Mon, Mar 5, 2012 at 8:27 AM, Pradeep Fernando <[email protected]> wrote:
> Hi, > > I was looking in to the $subject for last couple of days. Right now > transaction manager is tightly couples to the servlet container (tomcat). > Atomikos get initialized through a tomcat listener. And the Transaction > Factory get initialized by the tomcat itself. After that within the > dataservices-core we get the UserTransaction manager via a JNDI lookup. > > The complication is, the JNDI does not work in OSGi environment at the > moment. (Note that it is working for web-apps). The reason is, JNDI try to > resolve the context through context classLoader. If the context classLoader > is web-app ClassLoader it is working. But if the context classLoader is > bundle/context-finder it is not working. > I guess, we had this discussion sometime back. At the moment the thread context classloader (TCCL) is the bundle classloader of the Tomcat. But we need to set to the ContextFinder provided by Equinox. This is the behavior of the previous Carbon versions. Thanks, Sameera. > > OSGi enterprise spec has a separate section for JNDI. There they are using > a service based model to overcome the above problems. While searching for > the reading materials i came across, OSGi JTA spec as well. Apache aries[1] > has a OSGi JNDI + JTA modules. > > [1] http://aries.apache.org/downloads/currentrelease.html > > -- > Pradeep Fernando > Software Engineer > Member, Management Committee - Platform & Cloud Technologies > WSO2 Inc; http://wso2.com/ > > blog: http://pradeepfernando.blogspot.com/ > m: +94776603662 > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Sameera Jayasoma Technical Lead and Product Manager, WSO2 Carbon WSO2, Inc. (http://wso2.com) email: [email protected] blog: http://tech.jayasoma.org Lean . Enterprise . Middleware
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
