• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Websphere 4.0 DB connectivity using lookup

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 "com.ibm.ejs.cm.JDBC1PhaseRF" 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.
Regards,
Adesh Dhar.
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic