0 Replies Latest reply on Sep 25, 2002 12:05 PM by Marc Mielke

    Trouble with UserTransaction

    Marc Mielke Newbie

      When trying to use UserTransaction in client code I keep getting the following exception:

      javax.transaction.SystemException: java.lang.RuntimeException: UT factory lookup failed: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
      at org.jboss.tm.usertx.client.ClientUserTransaction.begin(ClientUserTransaction.java:107)
      client's code follows:

      UserTransaction utx = (UserTransaction)CMObjectLocator.getInstance().getInitialContext("sushi.private").lookup("java:/UserTransaction");

      utx.begin(); // throws said exception

      What's possibly wrong?

      Thx for any help,

      CMObjectLocator is just a wrapper and actually gives me the server's initialContext.