• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

One EJB should have only one class which implements bean class?

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One EJB should have only one class which implements bean class like SessionBean/EntityBean/MessageDrivenBean?

One EJB should have only one Home interface and one Component Interface which implements EjbHome and EjbObject respectively?

commonly I found word like ejb-jar as synonym of EJB. is it correct?.
According to my idea ejb-jar.xml is Data Discriptor.

how to use one EJB for both local and remote?. one way which I know is declare it as remote even for local usage also. What are the other ways?
Can one EJB have both local and remote interface implementation classes?

Thanks in advance,
Yamini.
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A single bean can have both a remote and local interface set (although it's usually rare to do this), but the client code is different, of course...but the bean itself should not ever know whether it's being accessed through a Remote component interface or a local component interface, since the actual *bean implementation* methods are always local.

cheers,
Kathy
 
No more fooling around. Read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic