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>

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841339#3841339

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841339


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to