-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
tvrtko stosic wrote:
> 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
Tvrdi,
Use a similar URL in your resource element, but replace the "&"s with
"&" since the ampersand denotes an entity in XML.
-Mark
- --
Mark Matthews
MySQL AB, Software Development Manager - Connectivity
www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFDlzRVtvXNTca6JD8RAqAAAJkBKmqLz5XqtYtYe5U9wKzi7oRs7wCggZf5
MTDb3PmeX1/Tk5QHurYGqD4=
=J6cc
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]