Hello,
        I am trying to deploy an EJB jar that has a stateless session bean
that uses EJB references to access other entity beans.  One of these is in a
different jar.  I can' seem to figure out how to specify the JNDI name for
this bean in the openejb-jar.xml file.  I tried treating it as a resource
reference but that didn't work.

How do I make it work?

openejb-jar.xml:
        <ejb-deployment         ejb-name="RelationshipManagerContainer" 
        
deployment-id="InSystems/RM/RelationshipManagerContainer" 
                                                container-id="Default
Stateless Container" >
                <resource-link res-ref-name="jdbc/ListRoles"
res-id="XrmDS"/>
                <resource-link res-ref-name="jdbc/UpdateRolePriorities"
res-id="XrmDS"/>
                <resource-link res-ref-name="jdbc/FindPerson"
res-id="XrmDS"/>
                <resource-link res-ref-name="jdbc/FindUsers"
res-id="XrmDS"/>
                <!--resource-link res-ref-name="ejb/AuditTrail"
res-id="AuditTrail"/-->
        </ejb-deployment>


ejb-jar.xml:

        <session id="Session_41">
            <ejb-name>RelationshipManagerContainer</ejb-name>
 
<home>com.insystems.relation.ejb.RelationshipManagerContainerHome</home>
 
<remote>com.insystems.relation.ejb.RelationshipManagerContainer</remote>
 
<ejb-class>com.insystems.relation.ejb.RelationshipManagerContainerBean</ejb-
class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>
            <ejb-ref id="EjbRef_41_1">
                <description />
 
<ejb-ref-name>ejb/RelationshipManagerContainer</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
 
<home>com.insystems.relation.ejb.RelationshipManagerContainerHome</home>
 
<remote>com.insystems.relation.ejb.RelationshipManagerContainer</remote>
                <ejb-link>RelationshipManagerContainer</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_2">
                <description />
                <ejb-ref-name>ejb/Person</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.party.ejb.PersonHome</home>
                <remote>com.insystems.relation.party.ejb.Person</remote>
                <ejb-link>Person</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_3">
                <description />
                <ejb-ref-name>ejb/User</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.UserHome</home>
                <remote>com.insystems.relation.ejb.User</remote>
                <ejb-link>User</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_4">
                <description />
                <ejb-ref-name>ejb/RoleDefinition</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.RoleDefinitionHome</home>
                <remote>com.insystems.relation.ejb.RoleDefinition</remote>
                <ejb-link>RoleDefinition</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_5">
                <description />
                <ejb-ref-name>ejb/User2Role</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.User2RoleHome</home>
                <remote>com.insystems.relation.ejb.User2Role</remote>
                <ejb-link>User2Role</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_8">
                <description />
                <ejb-ref-name>ejb/ViewEntity</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.ViewEntityHome</home>
                <remote>com.insystems.relation.ejb.ViewEntity</remote>
                <ejb-link>ViewEntityBean</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_9">
                <description />
                <ejb-ref-name>ejb/LnfEntity</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.LnfEntityHome</home>
                <remote>com.insystems.relation.ejb.LnfEntity</remote>
                <ejb-link>LnfEntityBean</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_10">
                <description />
                <ejb-ref-name>ejb/Organization</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.OrganizationHome</home>
                <remote>com.insystems.relation.ejb.Organization</remote>
                <ejb-link>OrganizationBean</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_27">
                <description />
                <ejb-ref-name>ejb/Org2Org</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.Org2OrgHome</home>
                <remote>com.insystems.relation.ejb.Org2Org</remote>
                <ejb-link>Org2Org</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_28">
                <description />
                <ejb-ref-name>ejb/Role2BOC</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.Role2BOCHome</home>
                <remote>com.insystems.relation.ejb.Role2BOC</remote>
                <ejb-link>Role2BOC</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_29">
                <description />
                <ejb-ref-name>ejb/BOCDefinition</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.relation.ejb.BOCDefinitionHome</home>
                <remote>com.insystems.relation.ejb.BOCDefinition</remote>
                <ejb-link>BOCDefinition</ejb-link>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_30">
                <description />
                <ejb-ref-name>ejb/AuditTrail</ejb-ref-name>
                <ejb-ref-type>Entity</ejb-ref-type>
                <home>com.insystems.audit.ejb.AuditTrailHome</home>
                <remote>com.insystems.audit.ejb.AuditTrail</remote>
            </ejb-ref>
            <ejb-ref id="EjbRef_41_31">
                <description />
                <ejb-ref-name>ejb/XrmSession</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                <home>com.insystems.relation.ejb.XrmSessionHome</home>
                <remote>com.insystems.relation.ejb.XrmSession</remote>
                <ejb-link>XrmSession</ejb-link>
            </ejb-ref>
            <resource-ref id="ResourceRef_100_1">
                <res-ref-name>jdbc/ListRoles</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
            </resource-ref>
            <resource-ref id="ResourceRef_100_2">
                <res-ref-name>jdbc/UpdateRolePriorities</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
            </resource-ref>
            <resource-ref id="ResourceRef_100_3">
                <res-ref-name>jdbc/FindPerson</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
            </resource-ref>
            <resource-ref id="ResourceRef_100_4">
                <res-ref-name>jdbc/FindUsers</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
            </resource-ref>
        </session>



Thanks,

Mark Richards >> 
Software Developer
InSystems Corporation 
Voice: (905) 513-1400 ext. 3552 
Fax: (905) 513-1419
<mailto:[EMAIL PROTECTED]> 
http://www.insystems.com 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to