[jboss-as7-dev] Issue with access to java:comp/UserTransaction from non EE threads

Lincoln Baxter, III lincolnbaxter at gmail.com
Thu Jun 2 23:18:23 EDT 2011


>
> AS6 also binds "UserTransaction" to the global jndi
> namespace outside of java:comp and that was accessible to every piece of
> code, even non-components.
>

This is probably why it was working. Is there a plan to continue this in
AS7?

~Lincoln

On Thu, Jun 2, 2011 at 10:57 PM, Jaikiran Pai <jpai at redhat.com> wrote:

> On Friday 03 June 2011 02:43 AM, Lincoln Baxter, III wrote:
> > Hi Guys,
> >
> > I've written a little app (using Seam 3, RichFaces, a bunch of our
> > projects, but namely Seam Persistence.) While working with Scott
> > Marlow, we discovered that the reason for this failure:
> > http://pastebin.com/KC7v90YK, is because the thread attempting to
> > access the UserTransaction is outside of the EE threads:
> > http://pastie.org/2010007
> >
> > This works well on JBoss AS6, but does not on AS7.
> I don't know how it worked for you in AS6, because it's not supposed to
> work, for reasons that David explained in his mail :) Are you sure you
> were using java:comp/UserTransaction in AS6 and not just
> "UserTransaction"? AS6 also binds "UserTransaction" to the global jndi
> namespace outside of java:comp and that was accessible to every piece of
> code, even non-components.
>
> -Jaikiran
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>



-- 
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110602/85b93d69/attachment-0001.html 


More information about the jboss-as7-dev mailing list