tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregor Kovaè <gregor.ko...@mikropis.si>
Subject DataSource object
Date Mon, 09 Oct 2000 10:43:18 GMT
Hi!

Is there possibility to set tomcat or some other stuff so that I will be 
able to use connection pooling thru DataSource object, something like:
		Hashtable parms = new Hashtable();
		parms.put(Context.INITIAL_CONTEXT_FACTORY, 
"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
		parms.put(Context.PROVIDER_URL, "iiop:///");
		Context context = new InitialContext(parms);
		dataSource = (DataSource) context.lookup("jdbc/iShop");
		conn = dataSource.getConnection("user", "pass");


Mime
View raw message