1 Reply Latest reply: Aug 26, 2011 1:54 AM by behrangsa RSS

    WebLogic 10.3.0, web-service-enabled session beans, and CMT transactions

      Cross post from the Enterprise JavaBeans forum.

      Does WebLogic 10.3.0 support CMT for JAX-WS Web-Service enabled EJB 3.0 session beans?

      When a client invokes the following Web service:
      @TransactionManagement( TransactionManagementType.CONTAINER )
      public class TestService        
          public String echo( @WebParam( name = "param" ) final String param)
              Context context = new InitialContext();
              TransactionSynchronizationRegisttry registry = 
                  context.lookup( "java:comp/TransactionSynchronizationRegistry" ); 
              registry.putResource("foo", "bar");
              return param;
      WebLogic throws this exception:
      SEVERE: Transaction does not exist
      java.lang.IllegalStateException: Transaction does not exist
           at weblogic.transaction.internal.TransactionManagerImpl.putResource(TransactionManagerImpl.java:2033)
           at weblogic.transaction.internal.TransactionManagerImpl.putResource(TransactionManagerImpl.java:2029)
      Is this a bug in WL 10.3.0?

      Thanks in advance.

      Edited by: user572625 on Aug 18, 2011 12:29 AM