views:

657

answers:

2

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.

+3  A: 

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
Thank you. It is much more clear for me now.
Shervin
A: 

A good summarising answer is here: http://onjava.com/pub/a/onjava/2004/11/03/localremote.html

Eugene