Wednesday, January 24, 2007

how can we communicate from struts to ejb?

strut frame work have Action class. This Action class contain execute() method.this method interact with model......your model code maybe in EJB/JDBC/Hibernate.......u can call that methods in execute().

with in the execute() u can call business delegate---> service loactor--->jndi--->to SessionFacade.


In Struts architecture Action class contain execute() method, within execute() method you can access database through jdbc or EJB. You can call the reference of entity bean class by jndi call and easily fetch data from database.


SOURCE : www.referjava.com

No comments: