Hi!
Steven Haines wrote:
> I have a database connection that I successfully setup
> for CMP but I need to access the database directly in
> one of my session beans.
So, you want to use connection pools?
> When I try to lookup the JNDI
> name, I get an error message that the context is not
> bound..
>
> Following are some excerpts from my configuration
> files:
>
> JAWS.XML:
> <jaws>
>
> <datasource>java:/SqlSvrConnectionPool</datasource>
> ...
> </jaws>
>
> JBOSS.JCML:
> <server>
> <mbean
> name="DefaultDomain:service=XADataSource,name=SqlSvrConnectionPool">
> ...
> </server>
>
> JBOSS.PROPERTIES:
>
>jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.inet.tds.TdsDriver
>
> CMP works fine, but I just need to know the JNDI name
> to lookup to start my own database connections..
You should add a resource-ref to ejb-jar.xml. If you only have one
datasource I recommend that you name it "DefaultDS" instead of
"SqlSvrConnectionPool". Then you only have to change ejb-jar.xml.
Otherwise you need to add stuff to jboss.xml too.
regards,
Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]