[ http://jira.jboss.com/jira/browse/JBAS-794?page=history ]

Scott M Stark reassigned JBAS-794:
----------------------------------

    Assign To: Alexey Loubyansky  (was: Scott M Stark)

> regeneration of EntityBean cache after RemoveException
> ------------------------------------------------------
>
>          Key: JBAS-794
>          URL: http://jira.jboss.com/jira/browse/JBAS-794
>      Project: JBoss Application Server
>         Type: Bug
>   Components: CMP service
>     Versions: JBossAS-3.2.6 Final
>     Reporter: SourceForge User
>     Assignee: Alexey Loubyansky

>
>
> SourceForge Submitter: tokobayashi .
> JBoss3.2.2/Win2k,JDK1.4.1
> 1) call EJBHome.remove via a SLSB to remove an 
> EntityBean.
> 2) call EJBHome.findByPrimaryKey via the SLSB by the 
> same PK.
>  (ObjectNotFoundException is thrown)
> 3) call EJBHome.remove via the SLSB by the same PK 
> again.
>  (RemoveException is thrown)
> 4) call EJBHome.findByPrimaryKey via the SLSB by the 
> same PK.
> A bean reference is returned(Exception isn't thrown).
> The DB record related to the EntityBean has been 
> deleted since 1).
> So, the EntityBean cache seems to be regenerated 
> through 3).
> condition:
> commit-option A on the EntityBean
> transaction: Required
> workaround:
> use EJBObject.remove instead of EJBHome.remove.
> use setRollbackOnly in the SLSB.
> throw EJBException when RemoveException is thrown.
> use findByPrimaryKey before remove(not to call 
> EJBHome.remove twice).
> an attatched archive is to reproduce the problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
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-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to