Explain how to communicate from struts to ejb

Explain how to communicate from struts to ejb.

- The struts framework strictly implements MVC pattern. The execute() method of Action class can be invoked to interact with the Model part of MVC.

- An EJB may contain a model. The model methods can be invoked by the execute() method. The reference of entity bean can be invoked by JNDI and easily fetch the data from the database.

How to communicate from struts to ejb.

- The struts and the EJB components are made up of different APIs due to which they need some interface to communicate with each other.

- Some design patterns are needed in between Action class and EJBs. The combinations of the Design Patterns that are used to call EJBs depends on the Application.
Define Struts
What is Struts? Struts are an open framework that is used for development of JAVA web application...
Struts Action Class - What is Action Class?
Struts Action Class - The Action is part of the controller. Action Class is used to translate the HttpServletRequest to the business logic...
What is ActionServlet?
Struts ActionServlet - ActionServlet is a class in org.apache.struts.action. It plays the role of a controller in the Jakarta Struts Framework...
Post your comment