Re: OT: help with concurrency issue

2011-08-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 8/21/2011 10:16 AM, alexis wrote: > public class Queue { > > private static org.apache.log4j.Logger log = > Logger.getLogger(Queue.class); private Command command; private > boolean valueSet = false; So, a single-item queue? I think that

Re: OT: help with concurrency issue

2011-08-21 Thread alexis
i just did :) ill be using these on the new version of my app thanks again On Aug 21, 2011, at 12:34 PM, Felix Schumacher wrote: > Am Sonntag, den 21.08.2011, 12:13 -0300 schrieb Alexis Fidalgo > [voiceovernetinc]: >> forget it, fixed. thanks again > Even though. Have you had a look at the pac

Re: OT: help with concurrency issue

2011-08-21 Thread Felix Schumacher
Am Sonntag, den 21.08.2011, 12:13 -0300 schrieb Alexis Fidalgo [voiceovernetinc]: > forget it, fixed. thanks again Even though. Have you had a look at the package java.util.concurrent? In there are blocking queues and executor services, like the one you are trying to write :) Regards Felix > >

Re: OT: help with concurrency issue

2011-08-21 Thread Alexis Fidalgo [voiceovernetinc]
forget it, fixed. thanks again On Aug 21, 2011, at 12:06 PM, alexis wrote: > better, concurrency issue is gone, facing a new one, i cannot stop the > Consumer thread, i have this > > > @Override >public void run() { > >dao = (DAO) sc.getAttribute("dao"); >try { >

Re: OT: help with concurrency issue

2011-08-21 Thread alexis
better, concurrency issue is gone, facing a new one, i cannot stop the Consumer thread, i have this @Override public void run() { dao = (DAO) sc.getAttribute("dao"); try { q = (Queue) sc.getAttribute("Queue"); while (keepRunning) { C

Re: OT: help with concurrency issue

2011-08-21 Thread Felix Schumacher
alexis schrieb: >I marked this issue OT because i think is a conceptual issue and not >related to any application per se. > >I have 2 main issues with concurrency, one class is a queue > >public class Queue { > >private static org.apache.log4j.Logger log = >Logger.getLogger(Queue.class); >

Re: OT: help with concurrency issue

2011-08-21 Thread Felix Schumacher
alexis schrieb: >I marked this issue OT because i think is a conceptual issue and not >related to any application per se. > >I have 2 main issues with concurrency, one class is a queue > >public class Queue { > >private static org.apache.log4j.Logger log = >Logger.getLogger(Queue.class); >

OT: help with concurrency issue

2011-08-21 Thread alexis
I marked this issue OT because i think is a conceptual issue and not related to any application per se. I have 2 main issues with concurrency, one class is a queue public class Queue { private static org.apache.log4j.Logger log = Logger.getLogger(Queue.class); private Command command;