the pool name is the jndi name
Once you restart jboss it will bind java:MyDB
Now if you want to access it via the bean namespace -> java:comp/env
You must declare it in the ejb-jar.xml as a resource reference.
Then map that resource reference to a name in the global space
d.
-----Original Message-----
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 3:24 PM
To: jboss
Subject: [JBoss-user] jndi and datasources
I've been hunting through docs on setting up Minerva pools and JDBC drivers,
but I have not seen anything that says how to bind a DataSource to a
specific JNDI name. My jboss.jcml
<mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider">
<attribute name="Drivers">org.gjt.mm.mysql.Driver</attribute>
</mbean>
<!-- Add a connection pool for the above JDBC Driver -->
<mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource, name=MyDB">
<attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l</attribute>
<attribute name="PoolName">MyDB</attribute>
<attribute name="URL">jdbc:mysql:///mydatabase</attribute>
<attribute name="JDBCUser">root</attribute>
<attribute name="Password">foobar</attribute>
</mbean>
Is the jndi name the "PoolName" attribute?
Michael R. Thompson
http://www.instanton.com
512.439.3815
_______________________________________________
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