Dear All
Some of my SessionBean methods which quries the database,
i am directly returing the rowset created by the method.
e.g
public RowSet A()throws SQLException,Exception
{
RowSet rows = st.executeQuery("some query");
return rows
}
So my JSP will use the RowSet to display the records.
Is this statergy is correct.
with rgds
shiva
-
RowSet as the return Type for EJB methods (1 messages)
- Posted by: siva kumar
- Posted on: February 15 2002 05:37 EST
Threaded Messages (1)
- RowSet as the return Type for EJB methods by Mauricio Pazos on April 01 2005 04:08 EST
-
RowSet as the return Type for EJB methods[ Go to top ]
- Posted by: Mauricio Pazos
- Posted on: April 01 2005 04:08 EST
- in response to siva kumar
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.
good luck!