Hi,

In a small test application, I have a client, a remote session bean and an 
entity. In the client I have the following code:

Employee e = manager.getByName("Jennifer Wirth");
  | manager.fire(e);

(Where manager is the Remote Session Bean).

The implementation of the fire method is:

 // em is the entity manager
  | em.remove(emp);


According to the EJB spec 3.2.2 3rd option this should this not result in a 
IllegalArgumentException?

The code above comes from an earlier Hibernate example. I know in hibernate the 
state transition from detached to transient is allowed.

Is this a left ofer, feature or insight that this will change in the next draft 
(or am i just reading it wrong?)

Cheers,

Raphael



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928181#3928181

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928181


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to