Re: [infinispan-dev] Event handling behaviour

2013-10-21 Thread Galder Zamarreño
On Oct 17, 2013, at 2:10 PM, Sanne Grinovero wrote: > It looks like that this discussion is based on what's more convenient > for you all to code, but the decision should be made based on what > users need, and frankly I think there are lots of good reasons to > expect the event to happen in the

Re: [infinispan-dev] Event handling behaviour

2013-10-17 Thread Mircea Markus
On Oct 17, 2013, at 4:09 PM, Mircea Markus wrote: > > On Oct 17, 2013, at 2:10 PM, Sanne Grinovero wrote: > >> For example a strong use case for these events is data validation: I'm >> looking forward for an integration with Bean Validation, and when that >> happens I'm pretty sure we'll want

Re: [infinispan-dev] Event handling behaviour

2013-10-17 Thread Mircea Markus
On Oct 17, 2013, at 2:10 PM, Sanne Grinovero wrote: > For example a strong use case for these events is data validation: I'm > looking forward for an integration with Bean Validation, and when that > happens I'm pretty sure we'll want to rollback the transaction in case > of validation failures.

Re: [infinispan-dev] Event handling behaviour

2013-10-17 Thread Pedro Ruivo
On 10/17/2013 08:36 AM, Galder Zamarreño wrote: > > On Oct 11, 2013, at 11:30 AM, Pedro Ruivo wrote: > >> Hi guys. >> >> Re: https://issues.jboss.org/browse/ISPN-2090 >> >> Summary: in tx caches, when @listener(sync = true), the callback is done >> by the same thread as the transaction. However,

Re: [infinispan-dev] Event handling behaviour

2013-10-17 Thread Sanne Grinovero
It looks like that this discussion is based on what's more convenient for you all to code, but the decision should be made based on what users need, and frankly I think there are lots of good reasons to expect the event to happen in the scope of the same transaction, and even had the capability to

Re: [infinispan-dev] Event handling behaviour

2013-10-17 Thread Radim Vansa
On 10/17/2013 09:36 AM, Galder Zamarreño wrote: > On Oct 11, 2013, at 11:30 AM, Pedro Ruivo wrote: > >> Hi guys. >> >> Re: https://issues.jboss.org/browse/ISPN-2090 >> >> Summary: in tx caches, when @listener(sync = true), the callback is done >> by the same thread as the transaction. However, mos

Re: [infinispan-dev] Event handling behaviour

2013-10-17 Thread Galder Zamarreño
On Oct 11, 2013, at 11:30 AM, Pedro Ruivo wrote: > Hi guys. > > Re: https://issues.jboss.org/browse/ISPN-2090 > > Summary: in tx caches, when @listener(sync = true), the callback is done > by the same thread as the transaction. However, most of the events may > not cause any problem, some of

[infinispan-dev] Event handling behaviour

2013-10-11 Thread Pedro Ruivo
Hi guys. Re: https://issues.jboss.org/browse/ISPN-2090 Summary: in tx caches, when @listener(sync = true), the callback is done by the same thread as the transaction. However, most of the events may not cause any problem, some of them are trigger when the transaction is in the state that canno