Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how many ejb classes  RSS feed

 
Murad Iqbal
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • 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?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!