Forums Register Login

Session Bean calling a Entity Bean

+Pie Number of slices to send: Send
Just checking that if I call want to call a entity bean CheckingBean from a session bean in the same JVM and remote I create two interfaces.

public interface Checking extends EJBObject

public interface CheckingLocal extends EJBLocalObject

Thanks Tony
+Pie Number of slices to send: Send
 

Originally posted by Tony Evans:
Just checking that if I call want to call a entity bean CheckingBean from a session bean in the same JVM and remote I create two interfaces.

public interface Checking extends EJBObject

public interface CheckingLocal extends EJBLocalObject

Thanks Tony



Don't forget the home interfaces for rmi & local. And don't forget the rmi & local jndi names in the deployment descriptor.

Clustering/failover cannot be implemented for local interfaces. Even though the specs require co-localization of the client & ejb at the jvm level, some app servers (for example weblogic 6.x, don't know about 8.x) are more restrictive & define co-localization as "same application", i.e., both the ejb & the ejb client must be in the same ear/jar.
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 583 times.
Similar Threads
local interface vs remoter interface.
Ejb 1.1
Web Services for EJB Session Beans
Confused of Local Interface and Remote Interface
Calling Entity Bean from Sesion bean
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:58:08.