[jboss-user] [EJB/JBoss] - Re: Get and send notification when entities get updated or d

jvojtek do-not-reply at jboss.com
Fri Apr 25 03:24:39 EDT 2008


I am using postUpdate, postPersist and postRemove callback methods on each entity bean that informs neighbours about its change. 
. Callback method of entity sends message to one (constant name) topic about the performed change. 
. There is MessageBean listening on constant topic that catches messages. 
. Message bean loops over all registered listeners to listen to entity change (might be filtered using registered key) and if there is any listener registered (from client) message bean resends message to its own (created only for one specific listener) topic. 
. So each client listener has its own (listening) topic (created in runtime) and there is also one constant overall topic for any change on any entity.

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

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



More information about the jboss-user mailing list