Re: dbcp with embedded tomcat7

2011-02-07 Thread Konstantin Kolinko
2011/2/7 Holger Veltrup : >  InitialContext ic = new InitialContext(); In short: 1) InitialContext depends on classloader: the context you created here and the one that your webapp will create with "new InitialContext()" are different. 2) Usually binding a pool after tomcat.start() will be too la

dbcp with embedded tomcat7

2011-02-07 Thread Holger Veltrup
Hey, how can i use dbcp with embedded tomcat7 this example doesn't work: public static void main(String[] args) throws Exception { String appBase = args[0]; Integer port = Integer.valueOf(args[1]); Tomcat tomcat = new Tomcat(); tomcat.setPort(port); tomcat.setBa