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

WAS 4.05 AEs pooling error

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Strange problem.. I use the connection pooling on Websphere 4.05 (Windows) and everything is fine BUT when I deploy the app on WAS on Solaris I get a naming exception. The code to access the datasource is as follows:
----------------------------------------
instance.parms.put(Context.INITIAL_CONTEXT_FACTORY,com.ibm.websphere.naming.WsnInitialContextFactory.class.getName());
javax.naming.Context ctx = new InitialContext(parms);
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/superman");
con = ds.getConnection();
return con;
-------
in the WAS admin console, both the jdbc driver and the datasource have the name 'superman'. Also is there a way to test the datasource from the admin console (I know that 4.0 AE has that ability)
Thanks - PJ
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
really did not get ur question..
if u need to test the datasource from the admin console... u go to the datasource.. and where the properties are displayed, there is a button to test the datasource. Is this the test u are referring to? or are u referring to some other test on teh datasource?
reply
    Bookmark Topic Watch Topic
  • New Topic