Subject | Datasources and JNDI |
---|---|
Author | Rick DeBay |
Post date | 2004-07-12T18:04:56Z |
Since JBoss doesn't reveal datasources to clients, I need to place a
datasource in JNDI myself. While the Jaybird FAQ mentions a
FBDataSourceObjectFactory class, I can't find it in the rc3 full JAR.
What I do is create a FBWrappingDataSource and set the database URL,
username, and password, call getDefaultReference(), and bind that to a
name in JNDI. When I need a connection I lookup that reference, create
a new FBWrappingDataSource, and call setReference().
The problem is that I can't get a connection from this datasource, and
when I examine its properties they are all null.
What is the correct way to create a datasource and make it available
through JNDI?
Rick DeBay
Senior Software Developer
RxStrategies.net
561-650-8195 x-215
datasource in JNDI myself. While the Jaybird FAQ mentions a
FBDataSourceObjectFactory class, I can't find it in the rc3 full JAR.
What I do is create a FBWrappingDataSource and set the database URL,
username, and password, call getDefaultReference(), and bind that to a
name in JNDI. When I need a connection I lookup that reference, create
a new FBWrappingDataSource, and call setReference().
The problem is that I can't get a connection from this datasource, and
when I examine its properties they are all null.
What is the correct way to create a datasource and make it available
through JNDI?
Rick DeBay
Senior Software Developer
RxStrategies.net
561-650-8195 x-215