• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic