<code>
try
{
javax.naming.Context jndiCntx=new javax.naming.InitialContext();
javax.sql.DataSource ds
=(javax.sql.DataSource)jndiCntx.lookup("jdbc/home");
c = ds.getConnection(getUID(),getPassword().trim());
s = c.createStatement();
//}catch(javax.naming.NamingException e){e.printStackTrace();}
}catch(Exception e){Log.print(":Exception = "+e);
</code>
In the above code i am trying to get connected to the DB2. Working with Webspehere 5.0. I am new to Webspehere. Created a
JDBC Provider for DB2. Created a datasource with jndi name 'jdbc/home'.
**The exception i am getting is:
Exception = com.ibm.websphere.ce.cm.ConnectionWaitTimeoutException: Connection not available, Timed out waiting.
Is there anything else to be done to get the connection?
Thank you