Hi,
I'm new to JRun. We are developing an application under JRun. We are
planning to use JTS and connection pooling with oracle 8i as database.
Currently I am using the developer version.
I have configured the datasource properties using JMC. and I am trying
to do lookup with the datasource name defined in JMC. I get message
saying the datasource not found.
In JMC the test is successfull.
I am using oracle thin jdbc driver. We are not using any EJBs.
Can somebody please give me an idea what driver should I use to support
JRun
connection pooling and JTS and are there any other setting s I need to
set.
I need to make it work by the end of the day.
Here is the code I am using to get the datasource.
////////////////////////////
public Connection getConnection()
{
Context ctx = null;
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"allaire.ejipt.ContextFactory");
ctx = new InitialContext(env);
DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/sgdb");
//sgdb is the datsource name defined in JMC
return ds.getConnection();
}
Thanks in advance.
Surya
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists