Shervin Asgari
Shervin Asgari

Reputation: 24499

Can someone explain the difference between @Remote / @Local or only @Stateless in ejb?

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.

Upvotes: 4

Views: 5496

Answers (1)

Rahul
Rahul

Reputation: 13056

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.

Upvotes: 5

Related Questions