Register / Login
Win a copy of
Design for the Mind
this week in the
EJB and other Java EE Technologies
Invoking Local Interface from Remote EJBHome
posted 6 years ago
I am using
I have 2 session beans, RemoteSessionBean with remote interface and LocalSessionBean with local interface. I am making use of Websphere server.
I have a Main Class which is a client to RemoteSessionBean. I do a look up on Remote EJBHome in Main class. After getting the Remote EJBHome I am looking up RemoteSessionBean.
Then in the RemoteSessionBean, I am looking up LocaEJBHome. Here I am getting
Is there any problem in the above approach?
Any help is much appreciated.
Why client-->home-->remote in EJB
One EJB should have only one class which implements bean class?
Remote /Local mode
ClassCast Exception on EJB remote object lookup
Doubt in JNDI binding