Re: synchronization Camel and JFrame

2013-07-05 Thread Bovas
It's fine, I found a solution :) - regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/synchronization-Camel-and-JFrame-tp5735155p5735197.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: synchronization Camel and JFrame

2013-07-04 Thread Bovas
thanks it works Gérald I add my text in my JFrame using process(new Processor){... But now I have another problem I would like to call my JFrame in a method bean exemple : .to("bean://mybean?method=log('test',*myjframe*)") but Camel doesn't run the method. - regards, Bovas -- View thi

Re: synchronization Camel and JFrame

2013-07-04 Thread gquintana
Yes. Gérald -- View this message in context: http://camel.465427.n5.nabble.com/synchronization-Camel-and-JFrame-tp5735155p5735178.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: synchronization Camel and JFrame

2013-07-04 Thread Bovas
Thanks for your answer gquintana But I use my JFrame as a GUI and when I click on a JButton I run my Camel Process. So I should : 1. Run my JFrame 2. Run my Camel Process using SEDA on clicking on a JButton 3. Update my JFrame using SwingWorker or SwingUtilities That's it? regards - regar

Re: synchronization Camel and JFrame

2013-07-03 Thread gquintana
You shouldn't execute the Camel processing in Swing's Event DispatchThread. As the EDT is busy with processing it can't repaint the JFrame. Instead run Camel processing in background thread using a SEDA and then update the JFrame using SwingUtilities invokeLater. Or you could use a SwingWorker, rea