Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top