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.
|