• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Bean calling a Entity Bean

 
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 382
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic