You can try using JMS (colas),

JMS puede participar en la transaccion, si la
transaccion es rolledback, entonces el mensaje no se
envia.

Dependiendo de la lana que tengas... puedes comprar
SonicMQ, el cual es muy caro y bueno, o puedes usar un
open source.  Algunos son spyderMQ (www.jboss.org) o
OpenJMS (www.exolab.org).

En la siguiente version de EJB, ya existe un
message-driven Bean que tambien puede ser util.  Por
cierto, jboss ya lo tiene implementado.

Saludos y espero que esto te ayude, JC :-)

--- [EMAIL PROTECTED] wrote:
> We would like our entity beans to propagate events
> in the same
> fashion than regular java beans.
> Therefore we must, for example, send events
> notifying of property
> changes inside the bean.  The problem with this is
> that we don't know
> if this method was called inside a transaction that
> might be
> rolled back later on, and hence the property change
> event
> should not have been sent at all.
> Clearly, we want to propagate the events only when
> the transactions
> are commited.
> Is there a standard "pattern" to manage this sort of
> thing ?
> TIA
> 
> Ramiro Diaz Trepat
> Opetra
> 
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Reply via email to