4

I guess the topic says it. I have tried googling this, but havent gotten the answer I am looking for.

I have many EJB's with only @Stateless. And sometimes I put @Local on them withouth really knowing why, and the benefits/cons. I also know I can put @Remote, but really dont know the difference.

Hope someone can give a clear description, or point me somewhere that does.

Shervin Asgari
  • 23,901
  • 30
  • 103
  • 143
  • A good summarising answer is here: http://onjava.com/pub/a/onjava/2004/11/03/localremote.html –  Mar 15 '10 at 13:08

1 Answers1

5

Annotations are part of EJB 3.0. For ex. @stateless means it is a stateless session bean. @local is used for local interface and @Remote for remote bean interface. A detailed description of the anotations is given here. To understand the meaning of these terms though, you should refer to a manual or book on EJBs. You can download a good EJB 3.0 book from here. Also checkout EJB 3 in Action from Manning Pub.

Rahul
  • 12,886
  • 13
  • 57
  • 62