Version 4

    Why do I get UserTransaction not bound?

     

    The spec says I should lookup

    java:comp/UserTransaction

    , but this does not work!

     

     

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC
       "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
       "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    
    <ejb-jar>
       <description>jBoss CTS application</description>
       <display-name>jBoss CTS</display-name>
       <enterprise-beans>
          <session>
             <description>JUnit Session Bean Test Runner</description>
             <ejb-name>EJBTestRunnerEJB</ejb-name>
             <home>org.jboss.test.util.ejb.EJBTestRunnerHome</home>
             <remote>org.jboss.test.util.ejb.EJBTestRunner</remote>
             <ejb-class>org.jboss.test.util.ejb.EJBTestRunnerBean</ejb-class>
             <session-type>Stateless</session-type>
             <transaction-type>Bean</transaction-type> <!-- !!! HERE !!! -->
          </session>
    

     

     

    Referenced by: