Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Accessing ejb 2.0 entity bean from within implementation class

3 views
Skip to first unread message

Dave Klein

unread,
Feb 22, 2007, 7:50:23 PM2/22/07
to
Is there a way to access the enitity bean interface say, MyEntity from with
the code of the MyEntityBean class? My first inclination was to use "this"
but that obviously failed since MyEntityBean does not implement the MyEntity
interface. Any suggestions would be appreciated.

Thanks,
Dave


Kevin Dean [TeamB]

unread,
Feb 23, 2007, 8:30:23 AM2/23/07
to
Dave Klein wrote:

The context object passed into setEntityContext() contains methods
getEJBLocalObject() and getEJBObject(). Choose the appropriate one for
your bean and use the narrow() method to narrow the return value to your
interface type.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

0 new messages