You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Violeta Georgieva <vi...@apache.org> on 2017/08/21 15:20:36 UTC
Accessing TransactionManager
Hi,
Currently I can access the TransactionManager using:
- ctx.lookup("java:comp/TransactionManager")
- org.apache.openejb.OpenEJB.getTransactionManager()
Unfortunately I have third party component that needs to access the
TransactionManager by invoking ctx.lookup("java:/TransactionManager").
Is there a configuration way of achieving this (java:/TransactionManager)?
Thanks a lot,
Violeta
Re: Accessing TransactionManager
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Violeta,
not a clean and reliable one. The JBoss app can't have this name
configurable or even just try both?
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2017-08-21 17:20 GMT+02:00 Violeta Georgieva <vi...@apache.org>:
> Hi,
>
> Currently I can access the TransactionManager using:
> - ctx.lookup("java:comp/TransactionManager")
> - org.apache.openejb.OpenEJB.getTransactionManager()
>
> Unfortunately I have third party component that needs to access the
> TransactionManager by invoking ctx.lookup("java:/TransactionManager").
>
> Is there a configuration way of achieving this (java:/TransactionManager)?
>
> Thanks a lot,
> Violeta
>