Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: calling entity from session in j2ee server


Message #1 by OLN Prasad Reddy <olnpreddy_2000@y...> on Thu, 29 Mar 2001 02:20:09 -0800 (PST)
You need to define the entity bean as an ejb-ref on the session bean in the
ejb-jar.xml file, then to lookup the bean from with your EJBObject simply
get an InitialContext (but you don't need to set the properties on the
context as the sesion bean should already be in the same context space) and
look the bean up as if it were any client.

> hello sir/madam,
> i want to call entity bean from session bean.My server
> is j2ee.my application is a small testing application.
> could u pls let me know how set deploy descriptor in
> j2ee.and also how call entity from session
> in lookup()method.
> thanx
> regards
> prasad
>

  Return to Index