tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Nour El-Din" <nour.moham...@gmail.com>
Subject Re: problems creating ejb-link between 2 stateless session bean
Date Wed, 08 Nov 2006 12:06:29 GMT
HI Prasad...

You didn't say what is going wrong with you ? you can't access the
AccountBean or there is an exception thrown while deploying your AppEar ?



On 11/8/06, Iyer, Prasad C <prasad.c.iyer@capgemini.com> wrote:

>
> Hi,
> I have 2 stateless session bean. CustomerBean and AccountBean
> This 2 beans have their respective jar files cust.jar and account.jar
> which are bundled into a app.ear file.
> My problem is while creating a link between CustomerBean and
> AccountBean(My CustomerBean wants to access the AccountBean)
>
> Following is the ejb-jar file for cust.jar
>
> <ejb-jar>
>    <enterprise-beans>
>        <session>
>            <ejb-name>Cust</ejb-name>
>            <home>org.presci.ejb.cust.CustHome</home>
>            <remote>org.presci.ejb.cust.Cust</remote>
>            <ejb-class>org.presci.ejb.cust.CustBean</ejb-class>
>            <session-type>Stateless</session-type>
>            <transaction-type>Container</transaction-type>
>            <ejb-ref>
>
> <ejb-ref-name>ejb/org.presci.ejb.account.Account</ejb-ref-name>
>                <ejb-ref-type>Session</ejb-ref-type>
>                <home>org.presci.ejb.account.AccountHome</home>
>                <remote>org.presci.ejb.account.Account</remote>
>                <ejb-link>account.jar#Account</ejb-link>
>            </ejb-ref>
>        </session>
>    </enterprise-beans>
>
> </ejb-jar>
>
> Can anyone please help me out what should I put in openejb-jar.xml file?
> Currently my openejb-jar.xml contains following code.
>
> <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
>    <enterprise-beans>
>        <session>
>            <ejb-name>Cust</ejb-name>
>            <jndi-name>org.presci.ejb.cust.Cust</jndi-name>
>        </session>
>    </enterprise-beans>
> </openejb-jar>
>
> Regards
> Prasad chandrasekaran
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,  you
> are not authorized to read, print, retain, copy, disseminate,  distribute,
> or use this message or any part thereof. If you receive this  message in
> error, please notify the sender immediately and delete all  copies of this
> message.
>
>


-- 
Thanks
- Mohammad Nour

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message