3 Replies Latest reply on Jul 25, 2003 10:28 AM by adrian.brock

    Resource Manager not found for XXXX

    davide

      hi to all..

      I got a "Resource Manager not found for " myDataSource..

      I don't know why it shows this message, but the bean that creates this problem works!

      anyone knows what is happening?

        • 1. Re: Resource Manager not found for XXXX

          Your jboss.xml is incorrect.

          Regards,
          Adrian

          • 2. Re: Resource Manager not found for XXXX
            davide

            i think that if it's incorrect it should not work..
            but it works!

            here's my ejb-jar.xml

            <!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>
            <enterprise-beans>

            Document Manager
            <display-name>DocumentManager</display-name>
            <ejb-name>DocumentManager</ejb-name>
            com.telematicus.apps.proteos.dm.document.DocumentManagerHome
            com.telematicus.apps.proteos.dm.document.DocumentManager
            <ejb-class>com.telematicus.apps.proteos.dm.document.DocumentManagerBean</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Bean</transaction-type>


            <ejb-name>Document</ejb-name>
            com.telematicus.apps.proteos.dm.document.DocumentHome
            com.telematicus.apps.proteos.dm.document.Document
            <ejb-class>com.telematicus.apps.proteos.dm.document.DocumentBean</ejb-class>
            <persistence-type>Bean</persistence-type>
            <prim-key-class>java.lang.String</prim-key-class>
            False
            <resource-ref>
            Oracle connection
            <res-ref-name>java:/OracleDS</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
            </resource-ref>

            </enterprise-beans>
            <assembly-descriptor>
            <container-transaction>

            <ejb-name>DocumentManager</ejb-name>
            <method-name>*</method-name>

            <trans-attribute>Required</trans-attribute>
            </container-transaction>
            </assembly-descriptor>
            </ejb-jar>

            • 3. Re: Resource Manager not found for XXXX

              The <res-ref-name> is a logical name,
              e.g. jdbc/Database is bound at java:comp/env/jdbc/Database

              you need to link to a the real jndi-name using jboss.xml

              Regards,
              Adrian