EJB and Struts Discussions.Java Programmers.

@raghwagh (1527)
India
December 11, 2006 12:42pm CST
Any one expert of have information on EJB and Struts please exchange information in this discussion as i think it will help many programmers.As now a days Struts and EJB is hot in programming.
1 response
@sumit057 (227)
• India
5 Jul 10
EJB and Struts are COMPLETELY complementary technologies and I don't see how they "compete" with eachother at all. Struts is a web-application framework based on MVC, EJB is really a "server side component architecture". If you are faced with the task of delivering web-based access to an EJB backend, then Struts is a perfect fit. Note, its not the only choice -- but IMHO it is one of the best choices from a framework standpoint. In general, your Struts Action classes ("the contoller") will acquire references to EJB objects (session/entity beans) and use them to implement business logic. When using Struts in conjunction with EJB, Struts is really just concerned with the presentation logic and not so much with the business logic. That should be handled by your EJB's. In my development I routinely code pure-java (application) client to test out my EJB backend. Once that works building the Web presentation stuff with JSP's and Action classes is pretty straight-forward.