----- Original Message -----
From: "Burkhard Vogel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 9:41 AM
Subject: Re: [JBoss-user] findAll and RowSet
> hi,
> you certainly can do this.
> Both methods would be called retrieveAllTabularData();
> the ejb prefix is reserved for finders (FindBy...) create, remove,
activate,
> passivate...
> BUT I would strongly recommend NOT to pass an ResultSet as a return value.
> You cann't be sure that a ResultSet won't lose its DB-connection!
> Either use a Hashtable or suns CachedRowSet as return value!
> Burkhard
> ----- Original Message -----
> From: "Gregor Rayman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 04, 2001 8:16 PM
> Subject: [JBoss-user] findAll and RowSet
>
>
> > Hi all.
> >
> > In my application I want to display a table with my objets. To make
> > it more performat I wanted to use RowSet instead of findAll and then
> > fatching the data for each object separately. (I use BMP, since the
> > data are already stored in an RDBMS and used by legacy applications).
> >
> > This aproach works fine with a separate stateless session bean, which
> > contains the method:
> >
> > ResultSet retrieveAllTabularData(void) throws RemoteException;
> >
> >
> > I wonder, if I can throw the additional stateless session bean away
> > and declare the method retrieveAllTabularData into the home interface
> > of my entity bean.
> >
> > Is this allowed by the EJB spec? If yes, how can I do it? I tried
> > to implement it in my bean under the name retrieveAllTabularData as
> > well as ejbRetrieveAllTabularData, but JBoss always complained it
> > cold not resolve the method.
> >
> > Is the Home interface at all the place for "static" methods of EJBs?
> > Or is it necessary to create a stateless session bean?
> >
> > Thanks for any patterns.
> >
> > --
> > gR
> >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user