title: Query regarding EJBLocalObject remove() working for JBoss AS
body: <p>I am currently using JBoss 5.1.0 GA build for deploying my enterprise application. Am facing a strange issue w.r.t the working of EJBLocalHome remove() API. I have an Entity Bean say"Emp". I needs to delete an entity bean say 'emp1'. Hence i will call the  EJBLocalObject remove() which will call the "Emp" EntityBean#ejbRemove() API to remove the bean from my database.
  remove() -> ejbRemove()</p>
  
  <p>In case of Jboss AS, i observerd that when i call the remove() API, the ejbStore() API is being called first and then ejbRemove() API in the same transaction. During remove() API the Entity Bean is not being modified. Hence ejbStore() should not be called. But it does. Hence the sequence is:-
  remove() -> ejbStore() -> ejbRemove()</p>
  
  <p>I deplyed my application on Websphere AS, and when i called the remove() the call sequence was:-
  remove() -> ejbRemove() . ejbStore() was not being called in this case.</p>
  
  <p>Can anybody tell why such beahviour occurs in case of JBoss AS ? I feel ejbStore() should not be called as nothing has been updated and working should be similar to Webspehere.</p>
  
  <p>-Ajit</p>