have you used spring and EJB together in a project? It it’s good or not. And how, what you used spring and EJB for?
thanks
have you used spring and EJB together in a project? It it’s good or
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Spring manual has a comprehensive chapter on EJB integration:
The value lies mainly in accessing stateless session beans, since they conform more closely to Spring’s service-oriented model of doing things. You also get some value from stateful session beans and entity beans, but only to a limited degree. EJB2 entity beans are so badly designed that no amount of Spring polishing can hide the nastiness beneath.
The question remains as to why you would want to do this. Spring’s own capabilities are at least a match for EJB. The most common reason for mixing the two is if you have an existing codebase that uses EJB, and you need to integrate a Spring application with it. If there’s no existing EJB, there isn’t really any point, you may as well stick with Spring all the way through.