Bugs item #769139, was opened at 2003-07-10 17: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=769139&group_id=22866

Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexei Yudichev (sflexus)
Assigned to: Nobody/Anonymous (nobody)
Summary: entityCtx.getEJBLocalObject() returns wrong instance

Initial Comment:
I am using Jboss 3.2.1
Sometimes entityContext.getEJBLocalObject() returns 
local interface of another instance of the same entity 
bean.

I have a superclass for all my entities in application which 
implements EntityBean's setEntityContext() method and 
saves entityContext in a field.
Inside one of business methods of one of entity beans I 
check if a primary key constructed from key CMP field(s) 
matches a primary key obtained from entityContext.
getEJBLocalObject().getPrimaryKey(). Sometimes they do 
not match: entityContext.getEJBLocalObject().
getPrimaryKey() returns primary key of another instance 
of the same entity bean.

I have sometimes situations when user is logged in as one 
customer and enjoys privileges of another...

This happens ~20 times a day with a particular single 
object for me... I could install some kind of bug trap 
logging some debug info to help fix the bug.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=769139&group_id=22866


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to