cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcel_011 <buss...@dplanet.ch>
Subject Re: jdbc access to domino
Date Tue, 31 Oct 2006 16:41:03 GMT

how why?!
if I use it outside cocoon with a server.xml enty 
<Resource name="jdbc/MedLib" auth="Container" type="javax.sql.DataSource"/>
					<ResourceParams name="jdbc/MedLib">
						<parameter>
							<name>username</name>
							<value>memyself</value>
						</parameter>
						<parameter>
							<name>password</name>
							<value>habrakahabra</value>
						</parameter>
						<parameter>
							<name>driverClassName</name>
							<value>lotus.jdbc.domino.DominoDriver</value>
						</parameter>
						<parameter>
							<name>url</name>
							<value>jdbc:domino:/MedLib.nsf</value>
						</parameter>
						<parameter>
							<name>maxActive</name>
							<value>100</value>
						</parameter>
						<parameter>
							<name>maxIdle</name>
							<value>10</value>
						</parameter>
					</ResourceParams>
and have a handler
NotesHandler(){
	    init();
	    // System.out.println("NotesHandler init in NotesHandler");
}

protected void init() {
        	try{
			Class.forName("lotus.jdbc.domino.DominoDriver").newInstance();
		    Context initCtx = new InitialContext();
		    Context envCtx = (Context) initCtx.lookup("java:comp/env");
		    _dsn = (DataSource)envCtx.lookup("jdbc/MedLib");
ebverything works fine??
-- 
View this message in context: http://www.nabble.com/jdbc-access-to-domino-tf2546193.html#a7097461
Sent from the Cocoon - Dev mailing list archive at Nabble.com.


Mime
View raw message