[jboss-user] [MQ] - Re: PostDeleteEventListener call

aejaz do-not-reply at jboss.com
Wed Nov 18 03:46:08 EST 2009


The class looks like this:

public class MyClass implements PostDeleteEventListener,
PostInsertEventListener, PostUpdateEventListener, Initializable {
	
	
	public void onPostDelete(PostDeleteEvent event) {
		System.out.println("Post delete event");
	}    

	public void onPostInsert(final PostInsertEvent event) {
		System.out.println("Post insert event");
	}

	public void onPostUpdate(final PostUpdateEvent event) {
		System.out.println("Post update event");
	}

	public void initialize(final Configuration config) {
	}

}


persistence.xml values:







Problem is that System.out messages are coming on inserting a row in db and updating a row in db. But on a row deletion System.out message is not coming.

jboss-5.0.0.GA is used.



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

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



More information about the jboss-user mailing list