Accessing TransactionManager

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessing TransactionManager

Violeta Georgieva
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
Reply | Threaded
Open this post in threaded view
|

Re: Accessing TransactionManager

Romain Manni-Bucau
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 <[hidden email]>:

> 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
>