jdbc/mypool webserver 7

G

gert

This is how my sun-web.xml looks like

{code}<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD
Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/
appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app error-url="">
<context-root>/warTest</context-root>
<resource-ref>
<res-ref-name>jdbc/mypool</res-ref-name>
<jndi-name>jdbc/mysql</jndi-name>
</resource-ref>
</sun-web-app>{code}

and this is how my code looks like

http://appwsgi.googlecode.com/svn/trunk/sun/classes/Query.java

Now how do i actually make a mysql pool on a webserver 7 :)
 
G

gert

This is how my sun-web.xml looks like

{code}<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD
Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/
appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-web-app error-url="">
<context-root>/warTest</context-root>
<resource-ref>
<res-ref-name>jdbc/mypool</res-ref-name>
<jndi-name>jdbc/mysql</jndi-name>
</resource-ref>
</sun-web-app>{code}

and this is how my code looks like

http://appwsgi.googlecode.com/svn/trunk/sun/classes/Query.java

Now how do i actually make a mysql pool on a webserver 7 :)

wait a minute i found something, i get back to you if it doesn't
work :)

http://blogs.sun.com/jyrivirkki/entry/using_mysql_with_web_server
 
G

gert

http://forum.java.sun.com/thread.jspa?messageID=9906501&#9906501

Actually I think I am finally getting the picture here what is going
on.

The driver issue was caused by a second driver located inside my web/
lib folder of the web application it self that couldn't be removed
without stopping the service manually. After removing and starting the
service again I got a pool of mysql connections.

But my pool runs out of connections resulting in a "RSR0009: Resource
not available for pool [jdbc/mysql]. Wait-time expired" error

So my servlet code has some issues I think ?

http://appwsgi.googlecode.com/svn/trunk/sun/classes/Query.java

Ps Maybe I also need to put some extra properties that will do some
sort of garbage collection on my connections :) ?
 
G

gert

http://forum.java.sun.com/thread.jspa?messageID=9906501

Actually I think I am finally getting the picture here what is going
on.

The driver issue was caused by a second driver located inside my web/
lib folder of the web application it self that couldn't be removed
without stopping the service manually. After removing and starting the
service again I got a pool of mysql connections.

But my pool runs out of connections resulting in a "RSR0009: Resource
not available for pool [jdbc/mysql]. Wait-time expired" error

So my servlet code has some issues I think ?

http://appwsgi.googlecode.com/svn/trunk/sun/classes/Query.java

Ps Maybe I also need to put some extra properties that will do some
sort of garbage collection on my connections :) ?

works now i think :)

http://forum.java.sun.com/thread.jspa?threadID=5222730
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top