When I perform ut.begain() after UserTransaction ut = initialContext.lookup("java:comp/UserTransaction");
I got the following information:
javax.transaction.SystemException: UserTransaction not supported in application
client.
at com.sun.enterprise.distributedtx.UserTransactionImpl.checkUserTransac
tionMethodAccess(UserTransactionImpl.java:99)
at com.sun.enterprise.distributedtx.UserTransactionImpl.begin(UserTransa
ctionImpl.java:114)
at converter.ConverterClient.main(ConverterClient.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:28
5)
at com.sun.enterprise.appclient.Main.<init>(Main.java:420)
at com.sun.enterprise.appclient.Main.main(Main.java:92)
The same code was performed well with WebSphere.
Is Sun one not supported UserTransaction for application server.
Please give me information about UserTransaction within Sun one for
J2EE Application Client or Standalone Application Client.
Thanks!