Hi there,
I wrote a SessionBean which is fetching data of an EntityBean. The data is stored in a MySQL database. The problem is from time to time an 'UnmarshalException' is thrown when I run my application which gets the SessionBean that is fetching the data of the EntityBean.
In the JMX Console at the 'ManagedConnectionPool' for MySQL I can see that after the Exception is thrown, the ConnectionCount is 0. When I run the application a second time the ConnectionCount is 1 and I get my data.
What do you guys think is the problem?
<jbosscmp-jdbc> <defaults> <datasource>java:/MysqlDS</datasource> <datasource-mapping>mySQL</datasource-mapping> <create-table>true</create-table> <remove-table>false</remove-table> </defaults> <enterprise-beans> <entity> <ejb-name>Profile</ejb-name> <table-name>Profile</table-name> <cmp-field> <field-name>id</field-name> <column-name>id</column-name> </cmp-field> <cmp-field> <field-name>login</field-name> <column-name>login</column-name> </cmp-field> <cmp-field> <field-name>name</field-name> <column-name>name</column-name> </cmp-field> <cmp-field> <field-name>password</field-name> <column-name>password</column-name> </cmp-field> <cmp-field> <field-name>age</field-name> <column-name>age</column-name> </cmp-field> <cmp-field> <field-name>city</field-name> <column-name>city</column-name> </cmp-field> <cmp-field> <field-name>description</field-name> <column-name>description</column-name> </cmp-field> </entity> </enterprise-beans> </jbosscmp-jdbc>