EJB Alternatives

Are there any alternatives to EJB in the Java world?
Who is Participating?
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
In a word - no. There is no complete alternative to EJBs. You will need to look at different frameworks or products depending on which features of an EJB you need. But some of these frameworks like Spring are not yet Java EE standards/ specifications, and might not cover everything that different EJBs can do, e.g., MDBs (Message Driven Beans).
spring (http://www.springframework.org) is often used alternative to EJB
Gibu GeorgeChief Technology OfficerCommented:
If you are looking for an alternative to Entity Beans you can use any of the OR mapping frameworks eg. Hibernate, Toplink, iBatis, OJB etc.
Yes, there are alternatives to EJB, but you'll find that it's best to go with a hybrid approach. For a web app, go with Struts, or better yet, JavaServer Faces. Your business logic can be regular Java objects. You can optionally use stateless session beans for your business logic. You should look at hibernate for your persistence. It is a good lightweight persistence framework. If you need messaging, MDBs are a good choice.
Mayank SAssociate Director - Product EngineeringCommented:
There is no one alternative which provides you everything that different types of EJBs do. One alternative could act as an alternate for only one type of EJB (say session or entity or MDB) but not an alternative for all of them at once.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.