0 Replies Latest reply on Feb 17, 2005 8:16 AM by mehike

    Jboss 4.0.1 and Entity Bean (MySql db)

    mehike Newbie

      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&amp;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??