EJB programming & troubleshooting: RowSet as the return Type for EJB methods
- Posted by: siva kumar
- Posted on: February 15 2002 05:37 EST
Some of my SessionBean methods which quries the database,
i am directly returing the rowset created by the method.
public RowSet A()throws SQLException,Exception
RowSet rows = st.executeQuery("some query");
So my JSP will use the RowSet to display the records.
Is this statergy is correct.
Yes, your strategy is fine. You can read more about in EJB Design Patterns (Floyd marinescu). The chapter two talks about inter-tier data transfer.