when a session bean wants to contact an entity bean, it does not use JNDI to do the lookup. What kind of way it should use? Does it depend on type of Server? What if I use Weblogic Server? Could someone show me that piece of code? Please help ASAP! Thanks in advance, Sarah
Joined: Mar 10, 2001
Calling of a entity bean from a session bean is not app server dependent. If a session bean needs to invoke methods of entity bean, it has to do in the same standard way. It does have to use the JNDI lookup too. And you can of course use weblogic server. For example :
The above is session bean. The client invokes the calcBonus() method and this method creates an instance of Entity Bean, the code given as follows.