• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Websphere 4.0 DB connectivity using lookup

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic