Can a Web Module call an EJB module which in turns rely on another EJB Modu

Hi Java developers,

I urgently need help on this issue since it has put stop on my development.

FACTS:

1-I'm using Studio Enterprise 8 as IDE.

2- There is a WEB Module and 2 EJB Modules[EJB 1 and EJB2].

3- Web module needs to make a call on EJB1.

4- EJB1 in turn needs to call an entity bean within EJB2.

Before EJB2 comes into play everthing works perfectly but as soon as i reference EJB2 from EJB1 i get jndi exception that object not found.

I tried alternative scenarios , if i use web module with just EJB1 or just EJB2 it works but seems that nested reference does not work.

Any help? any suggestion ? By the way I do not want to mix both EJB1 and 2 into one EJB module.

Thanks

[752 byte] By [OMS] at [2007-11-26 8:54:33]
# 1

Have you checked out the following J2EE tutorial:

http://www.netbeans.org/download/docs/41/j2ee-tutorial/CMP2.html#wp90149

...The Roster module maintains the team rosters for players in sports leagues. The example has five components. The RosterClient component is an application client that accesses the RosterBean session bean through the bean's remote interfaces. RosterBean accesses three entity beans--PlayerBean, TeamBean, and LeagueBean--through their local interfaces....

Also: http://www.netbeans.org/download/docs/41/j2ee-tutorial/Session4.html#wp82980

Passing an Enterprise Bean's Object Reference

KarthikR at 2007-7-6 22:50:40 > top of Java-index,Development Tools,Java Tools...