camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Edstrom <seij...@gmail.com>
Subject Re: Camel / Exec
Date Fri, 27 Aug 2010 19:35:54 GMT
The form: implies that you already have read the message.
To read it again, you'd have to avoid acknowledgement or simply pass the message as a cmd
line option to the exe program.

If the EXE program 'speaks' JMS (Does it?) then I don't see why you need the extra hop.
On Aug 27, 2010, at 1:26 PM, falvarez wrote:

> 
> johan,
> 
> I tell you:
> 
> In the ActiveMQ applicationContext.xml file I configure the following:
> 
>      <route>
>            <from uri="activemq:queue:COLA_PRUEBA_TEST"/>
>            <to
> uri="exec:C:/LogsTestTrigger/PruebaTrigger_20100826/ActiveMQ_ReciboAutomatico.exe"/>
>      </route>
> 
> 
> So that when a message arrives in the queue "COLA_PRUEBA_TEST" run the
> following program: "ActiveMQ_ReciboAutomatico.exe"
> 
> The program does the following: Read the same queue, the "COLA_PRUEBA_TEST"
> and record the content of the message in a database through a webservice
> that is posted on a server.
> 
> The problem is: When you run the program no longer exists message in the
> queue. Therefore, no records in my database.
> 
> So I can do so that the message can be read by the program?
> 
> Note:
> 
> with this configuration will work properly:
> <route>
>         <from uri="activemq:queue:COLA_PRUEBA"/>
> 	<multicast>
> 	    <to uri="activemq:queue:COLA_PRUEBA_TEST"/>
>                 <to
> uri="exec:C:/LogsTestTrigger/PruebaTrigger_20100826/ActiveMQ_ReciboAutomatico.exe"/>
>             </multicast>
> </route>
> 
> 
> 
> 
> -----
> Todos somos muy ignorantes. Lo que ocurre es que no todos ignoramos las
> mismas cosas.
> -- 
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Exec-tp2267073p2740463.html
> Sent from the Camel Development mailing list archive at Nabble.com.

Johan Edstrom

joed@opennms.org

They that can give up essential liberty to purchase a little temporary safety, deserve neither
liberty nor safety.

Benjamin Franklin, Historical Review of Pennsylvania, 1759






Mime
View raw message