Re: VM component behaviour

2010-03-04 Thread Claus Ibsen
Hi On Fri, Mar 5, 2010 at 12:12 AM, Alexandros Karypidis wrote: > Hello, > > I have some questions regarding the VM (http://camel.apache.org/vm) > component. So, just to make sure I understand the docs correctly: > > 1) Even though VM channels live at the "JVM level", they still need to be > ass

Re: Polling Consumer question

2010-03-04 Thread Claus Ibsen
Hi John says at this thread http://old.nabble.com/Activemq-component-und-Delayer-ts27784918.html That this questions is answered. On Thu, Mar 4, 2010 at 8:59 PM, John Landahl wrote: > Hi all, a quick question about writing a polling consumer. Is it > possible to write a polling consumer with th

Re: Using custom processor with JMX and JConsole

2010-03-04 Thread Claus Ibsen
On Thu, Mar 4, 2010 at 9:31 PM, camel-fan wrote: > > Thanks for the tip... but I had looked at the FAQ at the bottom and all it > said was to implement Service, i.e. org.apache.camel.Service . I actually > did this on my processor. > > Any other ideas? :) Ah you did. You can enable DEBUG logging

VM component behaviour

2010-03-04 Thread Alexandros Karypidis
Hello, I have some questions regarding the VM (http://camel.apache.org/vm) component. So, just to make sure I understand the docs correctly: 1) Even though VM channels live at the "JVM level", they still need to be associated with a CamelContext. So, if no CamelContext referencing the channe

Re: Using custom processor with JMX and JConsole

2010-03-04 Thread camel-fan
Thanks for the tip... but I had looked at the FAQ at the bottom and all it said was to implement Service, i.e. org.apache.camel.Service . I actually did this on my processor. Any other ideas? :) Claus Ibsen-2 wrote: > > Hi > > At the very bottom of the JMX wiki page is a section about proces

Re: Activemq component und Delayer

2010-03-04 Thread Norman Maurer
Thx Claus, now I just need to wait for activemq 5.4 to get released Bye Norman 2010/3/4, John Landahl : > On Thu, Mar 4, 2010 at 11:46 AM, Claus Ibsen wrote: >> For example it appears as you can ask the producers to schedule delivery >> http://activemq.apache.org/delay-and-schedule-message-deli

Re: Activemq component und Delayer

2010-03-04 Thread John Landahl
On Thu, Mar 4, 2010 at 11:46 AM, Claus Ibsen wrote: > For example it appears as you can ask the producers to schedule delivery > http://activemq.apache.org/delay-and-schedule-message-delivery.html Claus, you may have answered the question on polling consumers that I just posted a minute ago. Thos

Polling Consumer question

2010-03-04 Thread John Landahl
Hi all, a quick question about writing a polling consumer. Is it possible to write a polling consumer with the Java DSL which polls a, queue periodically? Ideally I'd like to have the "delay" and "initialDelay" parameters of the File component, something like this: from("activemq:deferred?ini

Re: Activemq component und Delayer

2010-03-04 Thread Claus Ibsen
Hi On Thu, Mar 4, 2010 at 7:45 PM, Norman Maurer wrote: > Hi all, > >  I'm currently lookin to migrate the remote delivery of mails in JAMES > to use camel and activemq. I thought about using the Delayer for delay > the execution of the retry to deliver a message when needed. > > But after lookin

Activemq component und Delayer

2010-03-04 Thread Norman Maurer
Hi all, I'm currently lookin to migrate the remote delivery of mails in JAMES to use camel and activemq. I thought about using the Delayer for delay the execution of the retry to deliver a message when needed. But after lookin into the DelayProcessorSupport code I see it use Thread.sleep(...) fo

Re: Batch Transactions

2010-03-04 Thread Charles Moulliard
Hi Norman, This feature is not part of ActiveMq product but you can using java language design something like that to process several messages in one transaction : public void sendTransacted() throws JMSException { //create a default connection - we'll assume a broker is running //with i

Batch Transactions

2010-03-04 Thread Norman Maurer
Hi all, is it somehow possible to batch transactions when using activemq component ? So for example use one transaction for 10 messages. Thx, Norman

Re: Blocked endpoints: What EIP 'd be most appropriate?

2010-03-04 Thread Claus Ibsen
Hi Try to do it in pure Camel, eg using seda, direct, vm etc and not the NMR or SMX. On Thu, Mar 4, 2010 at 2:38 PM, lekkie wrote: > > I saw this and I completely understand it. > my problem is not that router1 is waiting for initial request to complete > (I'd like it to wait as my request is a

Re: Blocked endpoints: What EIP 'd be most appropriate?

2010-03-04 Thread lekkie
I saw this and I completely understand it. my problem is not that router1 is waiting for initial request to complete (I'd like it to wait as my request is an InOut), but, I will like it to accept another request and respond to the appropriate endpoint (the one that initiated the request). That doe

Re: Blocked endpoints: What EIP 'd be most appropriate?

2010-03-04 Thread Claus Ibsen
Well if you take your time to read the VM wiki page, you will notice it extends the SEDA which offers options to configure the blocking http://camel.apache.org/vm http://camel.apache.org/seda.html You can use waitForTaskToComplete to control the blocking behavior On Thu, Mar 4, 2010 at 2:17 PM,

Re: Blocked endpoints: What EIP 'd be most appropriate?

2010-03-04 Thread lekkie
Are you saying that you route to "route1" 2 times? eg kinda like in a circle? You are right. The idea is to make router1 (which is a dynamic recipient EIP) to take messages and route to whichever endpoint. It is suppose to be a central endpoint. Collect msges route to the nxt endpoint and wait to

Re: Blocked endpoints: What EIP 'd be most appropriate?

2010-03-04 Thread Claus Ibsen
On Thu, Mar 4, 2010 at 8:50 AM, lekkie wrote: > > I have a use case that requires a certain endpoint to be re-used. Lets say > the re-usable endpoint is called router1. > > The flow below causes a blockage on my route and leads to camel throwing > exception. > > consumerEndPoint -> router1 -> some

Re: Blocked endpoints: What EIP 'd be most appropriate?

2010-03-04 Thread lekkie
I tried that too. Same difference. willem.jiang wrote: > > Did you try to use failover[1] ? > > [1] http://camel.apache.org/load-balancer.html#LoadBalancer-Failover > > Willem > > lekkie wrote: >> I have a use case that requires a certain endpoint to be re-used. Lets >> say >> the re-usable

Re: Mina async route not working

2010-03-04 Thread Ashwin Karpe
Hi, Is it not possible for you to decouple request-response communication with your server using one way invocations and use a correlationId to correlate the server responses at a later point i.e. 1> Client sends a one way invocation to the server on a port XXX and optionally (sends a replyTo so

Re: Blocked endpoints: What EIP 'd be most appropriate?

2010-03-04 Thread Willem Jiang
Did you try to use failover[1] ? [1] http://camel.apache.org/load-balancer.html#LoadBalancer-Failover Willem lekkie wrote: I have a use case that requires a certain endpoint to be re-used. Lets say the re-usable endpoint is called router1. The flow below causes a blockage on my route and lead