Link to home
Start Free TrialLog in
Avatar of kevorkgt
kevorkgt

asked on

EJB Alternatives

Are there any alternatives to EJB in the Java world?
Avatar of Ajay-Singh
Ajay-Singh

spring (http://www.springframework.org) is often used alternative to EJB
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.
ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.