On Tue, May 15, 2001 at 03:53:22PM -0700, Dovan Nguyen wrote:
> > > 2) *** CONNECTION CREATION
> > >    InitialContext jndiContext = new InitialContext();
> > >    XAPoolDataSource ds = (XAPoolDataSource)
> > > jndiContext.lookup("java:/OracleDS");
> > >    Connection conn = ds.getConnection();
> >
> > Don't reference Minerva classes in your code.  Just use javax.sql.DataSource.
> 
> If you don't reference to Minerva class, could you tell us what is the alternative to
> cast the objref in PortableRemoteObject.narrow( objref, ? ) method ?

Cast it to whatever you expect.  If you're looking up a DataSource, use
javax.sql.DataSource because that's the interface you want.

Toby.

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

Reply via email to