• 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

how many ejb classes

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When creating an ejb, is it still 5 classes that are to be created or 3?

Do we still use the localhome and local interfaces, or 1.Bean class 2.Remote interface 3. Home interface would do?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depends on what type of EJB and what version of EJBs and if you use XDoclet to generate some of them for you.

EJB 2.x

Session beans need a Bean, Home and interface, but depending on how you wnat it to be accesses, the interface could be a remote or local or both, so the number changes.

Same really with Entity beans in general

EJB 3.x

One interface that you can mark as either remote, local, or both, or you can seperate and make one plain interface of neither type, then two other interfaces that extend the first and each one get their own @Remote or @Local.



Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic