This content has been marked as final.
Show 4 replies
-
1. Re: Calling EJB 3 Session Bean from EJB 2 Session Bean???
gcoleman Apr 24, 2008 4:58 AM (in response to sheadington)I haven't tried this, but you should be able to add EJB 2.1 client home with the @RemoteHome annotation.
-
2. Re: Calling EJB 3 Session Bean from EJB 2 Session Bean???
sheadington Apr 24, 2008 11:35 AM (in response to sheadington)Cool, thanks for the help. Appreciate it
-
3. Re: Calling EJB 3 Session Bean from EJB 2 Session Bean???
aisrael Apr 25, 2008 1:43 AM (in response to sheadington)"sheadington" wrote:
Just thinking about it, it seems to me that EJB3 calling EJB2 should be no problem, but EJB2 calling EJB3 wont work
Has anyone tried this yet?
I haven't tried it yet, either, but why shouldn't the following:import com.foo.RemoteEjb3Interface; public class StandaloneEjbClient { public static vaid main(String[] args) throws Exception { InitialContext ic = new InitialContext(); RemoteEjb3Interface remote = (RemoteEjb3Interface) ic.lookup("java:comp/env/remoteEjb"); remoteEjb.doSomething(); } }
work whether in a standalone app, a web servlet, or an EJB 2.1 bean? -
4. Re: Calling EJB 3 Session Bean from EJB 2 Session Bean???
aisrael Apr 25, 2008 1:44 AM (in response to sheadington)I mean:
remote.doSomething();
but I hope you got the general idea.