Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to lookup datasource from j2ee application client?

120 views
Skip to first unread message

baij...@cn.ibm.com

unread,
Apr 30, 2004, 7:51:28 AM4/30/04
to
how to lookup datasource from j2ee application client?
I using WSAD5.1,got errors like below:
"com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.reflect.InvocationTargetException
Caused by: com.ibm.ws.exception.WsException: DSRA0023E: The DataSource implementation class "com.ibm.db2.jcc.DB2ConnectionPoolDataSource" could not be found."
But I can lookup succcesfully from serverside sessionbean the same JNDI name datasource.I added a resource reference to the datasource on
on j2ee client project deployment descriptor.but it dosen't work!

Who has experience on this,give me a hand!
Thanks in advance!

Paul Ilechko

unread,
Apr 30, 2004, 9:13:10 AM4/30/04
to
baij...@cn.ibm.com wrote:

> how to lookup datasource from j2ee application client?

Don't do it. What's the point having an application server if you're
going to access the database from the client? This is one of the worst
of bad practices, if you need to get data to your client, call an EJB to
do it. Otherwise go back to Visual Basic.

Philip Tom

unread,
Apr 30, 2004, 1:10:54 PM4/30/04
to
Are the db2 JDBC drivers in the class path of your client? Sounds like
it can't find "com.ibm.db2.jcc.DB2ConnectionPoolDataSource" to create
the data source object from the JNDI lookup.

Phil.

0 new messages