Re: config database in Tomcat

2009-11-24 Thread Jens Greven
} public static void close() { if (sessionFactory != null) { sessionFactory.close(); } sessionFactory = null; } } dishmily schrieb: is it possible to define SQL Dialects "org.hibernate.dialect.MySQLDialect" in context.xml in Tomc

Re: config database in Tomcat

2009-11-24 Thread Jens Greven
You can also use c3p0 with Tomcat JNDI, e. g. description="DB Connection" jdbcUrl="jdbc:mysql://server:3306/mysql?autoReconnect=true" driverClass="com.mysql.jdbc.Driver" user="root" password="password"

Re: Writable JNDI Naming Context?

2009-11-19 Thread Jens Greven
Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens, On 11/19/2009 5:22 PM, Jens Greven wrote: Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens, On 11/19/2009 2:59 PM, Jens Greven wrote: is there a way of having a writeable JNDI

Re: Writable JNDI Naming Context?

2009-11-19 Thread Jens Greven
Christopher Schultz schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens, On 11/19/2009 2:59 PM, Jens Greven wrote: is there a way of having a writeable JNDI context in Tomcat? I need one to place dataSources in it, because I have a perfectly running DataSourceFactory that is used

Writable JNDI Naming Context?

2009-11-19 Thread Jens Greven
Hi, is there a way of having a writeable JNDI context in Tomcat? I need one to place dataSources in it, because I have a perfectly running DataSourceFactory that is used in other applications as well, so I'd prefer to use this one above everything else to avoid database configurations in mul