Hey
Sachin Aggarwal wrote:
> How does one get a reference to it's remote interface from within an bean.
>
> This is required if an entity bean needs to pass itself around and the
> method signature receives the remote interface.
>
> I heard there's something like deref in corba - is there something like this
> in EJB ?
> A simple cast doesn't work as the beans don't implement the remote interface
> - only the generated BeanImpl classes do.
>
> There is the issue of re-entrance when passing a bean around - but that's a
> seperate discussion and I'd like to leave that aside for now.
It's in the beans context, i.e. ctx.getEJBObject() will work (if you've
called your context ctx that is).
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".