Bugs item #845543, was opened at 2003-11-20 12:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=845543&group_id=22866
Category: JBossCMP Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Toshiya_Kobayashi (tokobayashi) Assigned to: Nobody/Anonymous (nobody) Summary: regeneration of EntityBean cache after RemoveException Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=845543&group_id=22866 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
