ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  What's Wrong with the EJB 2 Specification?
Subject:   Is ejbRemove really that bad?
Date:   2002-09-05 09:33:44
From:   sbalan
Hi,


I am not an expert at EJBs but I think the basic reason why ejbRemove behaves differently for session beans and entity beans is that session beans and entity beans are fundamentally different. when a client calls remove on a session bean, the session bean can be resued for some other client. it is not a shared entity. however entity beans are shared entities which means remove actually frees it up for access by someother client.


i think since this fundamental difference exists it is reasonable that ejbRemove behaves differently for session and entity beans.


1 to 1 of 1
1 to 1 of 1