Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Websphere 4.0 DB connectivity using lookup

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating a DataSource in the Web sphere 4.0 and trying to do the lookup for the datasource by doing (javax.sql.DataSource) ContextFactory.lookup("jdbc/PoolName").But at the runtime while trying to access the DataSource it is giving ClassCastException.
In the Log it is showing the object as "" error. We even went to the extent of exploring the IBM Classes of Websphere 4.0 but without any success.We followed the documentation of Websphere 4.0 for creating the DataSource and specifying the Connection String.
What could be the problem? Is there any different way to create the DataSource in IBM Websphere 4.0 than it is done in Websphere 3.5 and is there any different way to do the lookup of the Connection Pool.
Please help.
Adesh Dhar.
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!