Re: [infinispan-dev] [infinispan-internal] Continuous Queries

2013-10-17 Thread Sanne Grinovero
On 17 October 2013 20:19, Mircea Markus wrote: > let's keep this on -dev. +1 > On Oct 17, 2013, at 6:24 PM, Sanne Grinovero wrote: >> - Original Message - >>> >>> On Oct 17, 2013, at 2:28 PM, Sanne Grinovero wrote: >>> - Original Message - > On Oct 17, 2013,

Re: [infinispan-dev] [infinispan-internal] Continuous Queries

2013-10-17 Thread Mircea Markus
let's keep this on -dev. On Oct 17, 2013, at 6:24 PM, Sanne Grinovero wrote: > - Original Message - >> >> On Oct 17, 2013, at 2:28 PM, Sanne Grinovero wrote: >> >>> >>> >>> - Original Message - On Oct 17, 2013, at 1:31 PM, Sanne Grinovero wrote: > With some cu

Re: [infinispan-dev] The windup of 6.0.0

2013-10-17 Thread Bela Ban
On 10/17/13 4:52 PM, Dan Berindei wrote: > Bela, do you really need to rename the thread? You already pass a name > argument to the Thread constructor, why not create the thread with the > "correct" name directly? Correct, I'll change that. I used renameThreads() in the ctor out of convenience,

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] The windup of 6.0.0

2013-10-17 Thread Bela Ban
On 10/17/13 4:48 PM, Dennis Reed wrote: > On 10/17/2013 05:26 AM, Bela Ban wrote: >> The other thing to look at is the apparent cost of Thread.setName(): if >> we cannot avoid thread many creations, we could experiment with *not* >> naming threads, although this is IMO not a good idea. > > I agre

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] The windup of 6.0.0

2013-10-17 Thread Dan Berindei
Bela, do you really need to rename the thread? You already pass a name argument to the Thread constructor, why not create the thread with the "correct" name directly? On Thu, Oct 17, 2013 at 5:48 PM, Dennis Reed wrote: > On 10/17/2013 05:26 AM, Bela Ban wrote: > > The other thing to look at is

Re: [infinispan-dev] The windup of 6.0.0

2013-10-17 Thread Dennis Reed
On 10/17/2013 05:26 AM, Bela Ban wrote: > The other thing to look at is the apparent cost of Thread.setName(): if > we cannot avoid thread many creations, we could experiment with *not* > naming threads, although this is IMO not a good idea. I agree that not naming the threads is a bad idea. The

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] [infinispan-internal] Continuous Queries

2013-10-17 Thread Mircea Markus
This is a general question so moving it to infinispan-dev. On Oct 17, 2013, at 1:13 PM, Divya Mehra wrote: > Continuous Queries is a question we often get from JDG prospects. > > With Querying expected to be fully supported in Library mode and > Events/Listeners already available in Library m

Re: [infinispan-dev] The windup of 6.0.0

2013-10-17 Thread Bela Ban
OK, so the first snapshot shows 18 secs for TP.receive() while the second lists 22 seconds. In both cases, the bulk of the time is taken up by thread creation and naming. Thread.setName() is 90% of the thread creation. This shows that the parsing of the message is insignificant, whereas the pa

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