Bugs item #589393, was opened at 2002-07-31 22:07 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=589393&group_id=22866
Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Qiming He (qiminghe) Assigned to: Nobody/Anonymous (nobody) Summary: BMP update/remove Initial Comment: When do BMP update/remove get error like: "removing bean lock and it has tx set!" I have two posts on this bug on jboss.com's forum http://www.jboss.org/forums/thread.jsp? forum=46&thread=18261 http://www.jboss.org/forums/thread.jsp? forum=46&thread=17974 Some one mentioned to use PK-wrapper class instead of Integer class. I try it. The same problem. I generate almost all code by JBuilder 7. Qiming ----------------execute method in session bean------------------- - public void execute() { try{ InitialContext ctx=new InitialContext(); myHome=(MytmpHome)ctx.lookup ("java:comp/env/ejb/Mytmp"); Mytmp s=myHome.findByPrimaryKey(new MytmpPK (new Integer(2))); s.setSesDuration(new Integer(321)); //s.remove(); //does not work either. //myHome.revmove(new MytmpPK(new Integer (2))); //this works }catch(Exception e){ e.printStackTrace(); } ---------------------PK class---------------------------- package bmptest2; import java.io.*; public class MytmpPK implements Serializable { public Integer subid; public MytmpPK() { } public MytmpPK(Integer subid) { this.subid = subid; } public boolean equals(Object obj) { if (obj != null) { if (this.getClass().equals(obj.getClass())) { MytmpPK that = (MytmpPK) obj; return (((this.subid == null) && (that.subid == null)) || (this.subid != null && this.subid.equals(that.subid))); } } return false; } public int hashCode() { return subid.hashCode(); } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=589393&group_id=22866 ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development