Hey,

Did you read this document?
http://www.jboss.org/newsite/documentation/HTML/ch06s03.html
It gives you step by step directions.

Make sure that if your ref name is for example:
<ejb-ref-name>ejb/myBean</ejb-ref-name>
that you are looking up
...... = (SomeHome)ctx.lookup("java:comp/env/ejb/myBean");

double check everthing and post stacktrace + relevant ejb-ref entries if it
still doesn't work.

Vladimir

Prince Mathew Samuel wrote:

> Hi,
> I am trying to call a method of an entity bean from a session bean. During
> look-up, a RemoteException is generated. Is it necessary to have a "ejb-ref"
> section in the deployment descriptor of the session bean for this? I tried
> to add this section but got the error that the entity bean does not exist in
> the application. I tried to deploy the session and entity beans in one jar
> file but got the same error. Can somebody throw some light on this?
> Regards,
> Prince
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to