Hi,

maybe somebody can help me: As it is mentioned in the EJB3 Trailblazers 
[http://trailblazer.demo.jboss.com/EJB3Trail/persistence/entitylifecycle/index.html],
you can annotate an entity method with @Remove so it would be removed from 
EntityContext when called. But the EJB3 persistence specs does not mention a 
mechanism like the above and as far as I can see, @Remove annotated methods do 
not remove the entity.

I believe the Trailblazers are incorrect in this point. So is there a solution 
for removing an entity from its EntityContext from the entity itself? I have a 
scenario like 


  | public class Entity {
  |     
  |     public methodXXX() {
  |         remove();
  |     }
  | 
  |     public remove() {
  |         // remove this entity from EntityContext
  |     }
  | }
  | 

Annotating the method remove() with @Remove would have been a very nive 
solution, but it did not work. 

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to