The code we use:
   l_query    = "SELECT noticia FROM noticias";
   l_pstmt = l_con.prepareStatement(l_query);
   l_rst   = l_pstmt.executeQuery();

   // which of the next two lines should be here??
a)   l_rst2 =
((org.jboss.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingResultSet(); //
JBOSS
b)   l_rst2 =
((org.opentools.minerva.jdbc.ResultSetInPool)l_rst).getUnderlyingResultSet()
; // JBOSS

   while (l_rst2.next())

the easiest way to find out is to add this line

System.out.println( l_rst2.getClass().getName() );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

before line a) and b)

I couldn't tell you on top of my head which one it is, but this will tell
you

Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of danch
> Sent: Thursday, April 19, 2001 11:17 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] ResultSet or minerva.ResultSetInPool
>
>
> He's casting what was returned from executeQuery so that he can call
> getUnderLyingResultSet.
>
> Filip Hanik wrote:
> >
> > getUnderLyingResultSet returns a java.sql.ResultSet, and if you
> are using
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to