On 03/06/2012 11:17 AM, Wolf-Dieter Fink wrote:
Is it possible to lookup and use UserTransaction from a remote-client as
in AS5?
Or is it planned for further release?
In AS 7, you can have a connection to more than one server at once.
Thus you have to specify which server node you want to talk to. The
method you want is
org.jboss.ejb.client.EJBClient#getUserTransaction(String), where the
argument is the node name. Note that your connection must already be
established at this point.
We do not presently have a way to pull a UserTransaction out of JNDI,
though that could be considered for an enhancement.