[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - EJB create after find Problem

2006-04-10 Thread richard.li
I have come across a problem that generates a create after find race condition 
in a multi user enviornment:

  I have an Entity Bean whose pk is an self generated integer, but there is a 
field named 'refNo' which should be unique as well.
  When using this entity, there is a use case that need to synchronize the 
information of this entity from 2 servers.
  To sync the entity, a simple logic is used: find the entity using refNo, if 
not found -> create the entity; otherwise update the entity.
  This does not work when multiple thread is doing the same job, multiple 
Entities with same refNo is created sometimes.

Has anybody meet this problem?  Any workaround on this?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Re: Exception Deploying the Struts application in Jboss 3.2.

2004-12-08 Thread richard.li
JBoss-4.0.0 do not have this problem, but JBoss 4.0.1-RC2 produces same 
problem.  I suspect this is an old problem of tomcat that the common libraries 
used crashes with the common libraries used in struts applications.

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

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


---
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://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user