When I try to access the DataSource using jndi:
Context naming = new InitialContext();
DataSource dataSource =
(DataSource)naming.lookup("java:comp/env/InetSQLServer");
I get the following exception:
javax.naming.NameNotFoundException: comp not bound
But the name does APPEAR to be bound (from jBoss output):
[XADataSource] XA Connection pool InetSQLServer bound to InetSQLServer
[XADataSource] Started
When I try looking up just "InetSQLServer" I get a datatype of
javax.naming.reference (or something like that)
What's up with this?
Bill Pfeiffer
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard Oberg
> Sent: Friday, October 20, 2000 9:59 AM
> To: jBoss
> Subject: Re: [jBoss-User] servlet access to cached db connections
>
>
> Hey
>
> > I have a web app in tomcat 3.2b? that has been working fine. When I
> created
> > the web app, I had an eye on integrating it with jBoss. As such, I used
> the
> > Minerva classes for my db connection caching. As stated, this
> works fine.
> >
> > I am now to the point of integrating the my web app into jBoss. When I
> try
> > to load my web app (via the MBean admin page), I get the
> following error:
> >
> > java.lang.reflect.InvocationTargetException: [EmbededTomcat]
> > java.lang.NoClassDefFoundError:
> > org/jboss/minerva/datasource/JDBCPoolDataSource
> > at
> >
> com.bpcs.jdbc.MinervaConnPoolFactory.createOasisConnectionPool(Min
> ervaConnPo
> > olFactory.java:28)
> >
> > It appears that the Minerva classes cannot be found. Am I missing a
> config
> > item somwhere? TIA, for any help here!
>
> Connection pools are managed outside of apps in jBoss. All you
> have to do is
> look them up from the java:comp/env namespace.
>
> /Rickard
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]