Re: camel-web contexts

2011-09-27 Thread Jim Talbut
On 27/09/2011 01:26, aedwards wrote: I know this is late on this post... but This would be a nice feature. Curious if there has been any progress? Also, another really great feature would be if the camel-web application could use the jmx endpoints to communicate with camel-contexts so that the w

RE: load files from multiple directors using single camel file endpoint

2011-09-27 Thread Daniel Crompton
Hi, if they are in subdirectories they can be consumed resursivly. from("file://inbox?consumer.recursive=true") D. > -Original Message- > From: Shayanthan Kanaganayagham [mailto:sha...@gmail.com] > Sent: Tuesday, September 27, 2011 5:59 AM > To: users@camel.apache.org > S

Re: load files from multiple directors using single camel file endpoint

2011-09-27 Thread Shayanthan Kanaganayagham
Thank you Daniel, Its working.. :-) On Tue, Sep 27, 2011 at 3:02 PM, Daniel Crompton < d.cromp...@detelefoongids.nl> wrote: > > Hi, > >if they are in subdirectories they can be consumed resursivly. > > from("file://inbox?consumer.recursive=true") > > D. > > > > -Original Message--

Re: load files from multiple directors using single camel file endpoint

2011-09-27 Thread Claus Ibsen
On Tue, Sep 27, 2011 at 9:02 AM, Daniel Crompton wrote: > > Hi, > >        if they are in subdirectories they can be consumed resursivly. > > from("file://inbox?consumer.recursive=true") > For more advantage scenarios, you can use the ANT Path like filter, to setup which directories to recurs

Re: how does camel handle runtime exceptions?

2011-09-27 Thread Claus Ibsen
Hi You can read about error handling here http://camel.apache.org/error-handling-in-camel.html The exception will by default be propagated back to the consumer. So in this case the JMS consumer. And it will by default log the exception. You can enable JMS transaction and thus have the JMS consum

Re: How do I access the message class name from Simple?

2011-09-27 Thread Claus Ibsen
Hi Ah the Simple language omits methods on java.lang.Object. We should likely permit to access the class to get the details from it, or introduce a function that can grab the type. Fell free to create a JIRA ticket. On Mon, Sep 26, 2011 at 7:53 PM, djakubiec wrote: > Hi, > > I have JMS topic wh

Re: How do I access the message class name from Simple?

2011-09-27 Thread David Karlsen
I created https://issues.apache.org/jira/browse/CAMEL-4492 for it. 2011/9/27 Claus Ibsen > Hi > > Ah the Simple language omits methods on java.lang.Object. > We should likely permit to access the class to get the details from > it, or introduce a function that can grab the type. > > Fell free to

Camel Netty Producer creating new connection on every message?

2011-09-27 Thread maccamlc
Hi I am very new to Camel, and trying to implement some simple messaging to get a feel for the basics. Currently I have a simple Server using Camel Netty to listen for messages in Request Only mode. It then sends the message it received via ActiveMQ, also in Request Only mode. This seems to be wo

TypeConversion with JAXB when calling "remote" EJB

2011-09-27 Thread smythewin
Hi, I'am running a route wich perfoms JAXB unmarshalling before calling an EJB: The camel route and the EJB reside in two different web archives, both deployt on the same application container. This results in: The EJB method expects an object of the same type that was unmarshalled: When dep

Re: Activemq dynamic endpoint configuration

2011-09-27 Thread Claus Ibsen
On Mon, Sep 26, 2011 at 6:05 PM, kal2420 wrote: > Thanks Claus, > >     I got busy with work, and I am just getting back to camel. I did try > looking into event-driven-consusmer, What i really want is to configure > dynamic selector on activemq queue. Here is how I am trying to configure > dynami

Re: Activemq dynamic endpoint configuration

2011-09-27 Thread Claus Ibsen
Hi I created an unit test which you can take a look at. It uses the IN selector http://svn.apache.org/viewvc?rev=1176348&view=rev On Tue, Sep 27, 2011 at 1:58 PM, Claus Ibsen wrote: > On Mon, Sep 26, 2011 at 6:05 PM, kal2420 wrote: >> Thanks Claus, >> >>     I got busy with work, and I am just

Re: TypeConversion with JAXB when calling "remote" EJB

2011-09-27 Thread Claus Ibsen
Hi You may have to ensure the classes is compatible. For example add a fixed serialVersionUID in the classes. On Tue, Sep 27, 2011 at 1:51 PM, smythewin wrote: > Hi, > > I'am running a route wich perfoms JAXB unmarshalling before calling an EJB: > > > > The camel route and the EJB reside in tw

Re: Unmarshal csv

2011-09-27 Thread Claus Ibsen
Hi I think its how the Apache Commons CSV library work. The code in camel-csv is small. You are of course welcome to debug and see what happens. The Apache Commons CSV project is not active maintained much. On Mon, Sep 26, 2011 at 9:54 AM, livensn wrote: > Hi all, > > This is our route, eve

Re: TypeConversion with JAXB when calling "remote" EJB

2011-09-27 Thread smythewin
Hi, I already did that (ensured types are compatible making the types Serializable and setting a proper serialVersionUID). Using the same type reference on a single deployment works fine as stated out before. Additionaly, I wrote a TypeConverter that was just casting the inExchange to the same ty

SMPP to SMPP using camel

2011-09-27 Thread Moore
Hello Completely new to Camel, so would appreciate any expert input. I would like to establish if Camel is a fit for SMPP to SMPP routing. Based on initial reading of the Camel Web site, I'm thinking I would require the following. So basically I will have a ESME -> CAMEL SMPP consumer -> CAMEL SMP

Re: Appending index number in file name written in error folder by File component

2011-09-27 Thread Stefan Eder
Hi, I have a similar problem with the generated output files. Tried the bean way: public String generateFileName(final File file) and public String generateFileName(final File file, final Exchange exchange) and public String generateFileName(final GenericFile genericFile, final Exchange exchang

Re: How do I access the message class name from Simple?

2011-09-27 Thread djakubiec
Ah, thanks for the explanation! I see a JIRA ticket was opened as well, thanks. For those seeking an interim workaround, I added a getType() function to the base class shared by all my JMS messages: public String getType() { return this.getClass().getSimpleName();

How specify which ActiveMQComponent to use for ProducerTemplate when connecting to two brokers

2011-09-27 Thread KaiLa
Hi, I have a requirement where I need to connect to two brokers. I am consuming messages from one broker and will process those messages and publish new messages to another broker. I went through a number of Camel and ActiveMQ documentations but didn't see an example on how I can inject a specifi

Re: SMPP to SMPP using camel

2011-09-27 Thread Ioannis Canellos
I think that this is not possible. While it will be able to connect to the SMSC for sending MTs and receiving MOs I don't think that it is possible to talk back to an ESME using SMPP. Camel will be suitable for playing to role of ESME or talk to an ESME through an other protocol, but not SMPP. I a

Re: SMPP to SMPP using camel

2011-09-27 Thread Moore
Thanks for info. Unless I'm mistaken, I have read here on the forum that the deliver sm receipt flow is possible. That is an example of typical return path. If that works then it should not be too far off the mark although I think I also read that transceiver mode is not supported by camel which is

Re: Camel Netty Producer creating new connection on every message?

2011-09-27 Thread maccamlc
Today I have used a Request Reply approach with no JMS, Netty only. I just sends a response and expects a reply. Again everything works great for the first 10 messages then stops. Is someone able to explain what I might be doing wrong? Thanks Matt -- View this message in context: http://camel.

RE: Camel Netty Producer creating new connection on every message?

2011-09-27 Thread maccamlc
OK, when I use the option "disconnect=true" on the Client (NettyProducer) it works, ie. does not stop routing after 10 messages. But I don't understand why it is necessary to open a channel, write data, get a response and then close the channel for every individual message. I feel that I must b

Re: Camel Netty Producer creating new connection on every message?

2011-09-27 Thread maccamlc
OK, when I use the option "disconnect=true" on the Client (NettyProducer) it works, ie. does not stop routing after 10 messages. But I don't understand why it is necessary to open a channel, write data, get a response and then close the channel for every individual message. I feel that I must be

Re: Activemq dynamic endpoint configuration

2011-09-27 Thread kal2420
Thanks Claus, This example is very helpful, I am still running into a bit of an issues. Here is my createRouteBuilder() method ( combined JmsSelectorTest and JmsSelectorInTest ) : @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuild

Re: Appending index number in file name written in error folder by File component

2011-09-27 Thread Claus Ibsen
The file producer appends a header with the actual name of the file produced. The header has the key Exchange.FILE_NAME_PRODUCED On Tue, Sep 27, 2011 at 7:14 PM, Stefan Eder wrote: >  Hi, > > I have a similar problem with the generated output files. > Tried the bean way: > public String generate

Re: Activemq dynamic endpoint configuration

2011-09-27 Thread Claus Ibsen
Hi Yes you would need to stop the route. Adjust the endpoint. And start the route again to have the JMS selector dynamic updated. CamelContext has API to start/stop rotues by the route id. On Wed, Sep 28, 2011 at 5:10 AM, kal2420 wrote: > Thanks Claus, > >    This example is very helpful, I am

Re: How specify which ActiveMQComponent to use for ProducerTemplate when connecting to two brokers

2011-09-27 Thread Claus Ibsen
Hi Just refer to the name of the component. template.sendBody("internalActivemq:queue:foo", "Hello Internal"); template.sendBody("externalActivemq:queue:bar", "Hello External"); On Tue, Sep 27, 2011 at 9:53 PM, KaiLa wrote: > Hi, > > I have a requirement where I need to connect to two broker