I have mysql datasource declared in Jboss 4.0.1:
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/fotki?useUnicode=true&characterEncoding=UTF-8</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
tsauki248
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
And it's work fine with this character set, if I make connection:
org.jboss.resource.adapter.jdbc.WrapperDataSource datasource =
(WrapperDataSource)context.lookup("java:/MySqlDS");
Connection conn = datasource.getConnection();
All my estonian chars I can print fine.
but if I make Entity bean and use xdoclet... I'ts chars not estonian chars....
What I must do??
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866913#3866913
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866913
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user