I use connection pooling with Tomcat 5.5.4. Corresponding entry in server.xml
looks like this:
<Context path="/myApp" docBase="myApp" debug="5" reloadable="true"
crossContext="true">
<Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000" username="user" password="java"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/instrukcije?autoReconnect=true" />
</Context>
Everything works fine, just I don't know how to specify which character set is
to be used for retriving data
When connecting to database from application without connection poll, character
set can be specified in database url somehow like this:
url =
jdbc:mysql://localhost:3306/instrukcije?username=user&password=java&useCharset=cp1250....
How to do the similar thing in this case?
Thanks in advance.
tvrdi
---------------------------------
Yahoo! Shopping
Find Great Deals on Gifts at Yahoo! Shopping