Re: Passing Camel Message Headers to File Endpoint

2012-05-31 Thread Christian Müller
Add a marshal / converting step. Best, Christian Sent from a mobile device Am 01.06.2012 01:26 schrieb "MichaelAtSAG" : > I understand that using the Message ID is the default behavior for the > filename when routing to a file endpoint. > > What if you wanted to retain the message id but not use

Re: HTTP4 Component and encoding message body

2012-05-31 Thread Andrew Thorburn
@Willem: Fair enough, then. I think it would be good if it was stated explicitly that the body is used as-is with no encoding, as I obviously found it confusing. @Scott: Undecided. Happy to use either POJO or PAYLOAD for CXF, whichever ends up being easier (probably PAYLOAD). And yes, there is a w

Re: Passing Camel Message Headers to File Endpoint

2012-05-31 Thread MichaelAtSAG
I understand that using the Message ID is the default behavior for the filename when routing to a file endpoint. What if you wanted to retain the message id but not use the filename as the id? For example, we want the file output like this: ID-MCMICHAELB03-59827-1338399528529-12-2

Re: Message selector example

2012-05-31 Thread Scott England-Sullivan
K, that helps. :) Try adding after the bean processor and then after the JMS producer endpoint responsible for sending the bean created message on to TestQueue6. Then review your logging output and find the Exchanges that are logged from "test.post.bean" and "test.post.producer". When you do,

Re: Message selector example

2012-05-31 Thread Deepthi
In my bean I am setting the header as follows: exchange.getIn().setHeader("country", "US"); i am trying to filter the message using selector in following manner: I do not receive any message at all. Where am i going wrong here? -- View this message in context: http://camel.465427.n5.nabble.c

Re: Message selector example

2012-05-31 Thread Scott England-Sullivan
An example of how to use Java JMS message selectors? Start here: http://docs.oracle.com/javaee/5/tutorial/doc/bnceh.html#bncer On Thu, May 31, 2012 at 4:10 PM, Deepthi wrote: > Hi Sully, > > I did go through the link. > Can I find an example somewhere which I can refer to how i use selectors >

Re: Difference Between ActiveMQ and Camel

2012-05-31 Thread Donald Whytock
On Thu, May 31, 2012 at 4:49 PM, prasun.sultania wrote: > 4. Apart from JMS,Camel can handle other type of messages as well - FTP, > XMPP Chat, text messages and files via FTP. Plus a lot more. A more complete list is at: http://camel.apache.org/components.html

Re: Message selector example

2012-05-31 Thread Deepthi
Hi Sully, I did go through the link. Can I find an example somewhere which I can refer to how i use selectors and how do i compare the values etc. Thanks, Deepthi -- View this message in context: http://camel.465427.n5.nabble.com/Message-selector-example-tp5713805p5713808.html Sent from the Cam

Re: Difference Between ActiveMQ and Camel

2012-05-31 Thread prasun.sultania
@Sully and @Donald, thanks a lot guys for the great help :) Summarizing the discussion: 1. Camel provides an integration with message producer/consumer Application(JMS Client) and the JMS Broker ActiveMQ. 2. Camel acts as a bridge between the two, while providing Integration services defined in EI

Re: Message selector example

2012-05-31 Thread Scott England-Sullivan
Full details can be found here: http://camel.apache.org/jms.html. Review the section labeled Message Header Mapping. WRT how to name the message headers you have to follow standard JMS rules or Java naming conventions meaning: no dots or hyphens in the header name. Then set the header on the prod

Message selector example

2012-05-31 Thread Deepthi
Hi, Can somebody please provide me with message selector example? Also can somebody provide an example how to name the headers while publishing the message on the queue and how to read that message using selector and header while consuming asap. Thanks, Deepthi -- View this message in context:

Re: Difference Between ActiveMQ and Camel

2012-05-31 Thread Scott England-Sullivan
Exactly! On Thu, May 31, 2012 at 1:42 PM, prasun.sultania wrote: > @Sully You mean to say is that, Camel provides an integration with message > producer Application and the JMS Broker ActiveMQ? It acts as a bridge > between the two, while providing Integration services defined in EIP and > hiding

Re: Input directory with multiple file consumers

2012-05-31 Thread Henryk Konsek
Hi Raf, > In enterprise applications it is common to have 2 nodes running the same > application for load balancing and failover. And since camel does enterprise > integration I just assumed the file component would have this functionality > built in. It certainly does. :) If I find some time tom

Re: Difference Between ActiveMQ and Camel

2012-05-31 Thread Donald Whytock
Actually I more often hear of Camel being used as a JMS consumer than a producer, but it's built to work both ways. Camel is a repository of producers and consumers for various forms of messages. It can handle, among others, email, XMPP chat, text messages, files via FTP and, yes, JMS. It can be

Re: Difference Between ActiveMQ and Camel

2012-05-31 Thread prasun.sultania
@Sully You mean to say is that, Camel provides an integration with message producer Application and the JMS Broker ActiveMQ? It acts as a bridge between the two, while providing Integration services defined in EIP and hiding the complexity of writing a JMS Client from scratch? @Donald you mean tha

Re: Difference Between ActiveMQ and Camel

2012-05-31 Thread Scott England-Sullivan
My short summary, ActiveMQ is an open source, enterprise messaging provider that conforms to the JMS 1.1 specification. Camel is an open source integration framework. At its core it is an implementation of Enterprise Integration Patterns(EIP) by Gre

Re: Difference Between ActiveMQ and Camel

2012-05-31 Thread Donald Whytock
My understanding is that ActiveMQ can serve as a host for JMS message queues, supporting applications that use them. Camel isn't meant as a host for JMS queueing as much as a listener to a JMS queue. Don On Thu, May 31, 2012 at 1:34 PM, prasun.sultania wrote: > > I am a beginner. I have a very

Re: Input directory with multiple file consumers

2012-05-31 Thread Raf
Hi Henryk, hekonsek wrote > You share the directory using distributed file system, don't you? :) During testing I was just running multiple instances on my local machine on a local directory, but in production you are right about the distributed file system :) Local filesystems are fixed in size

Re: HTTP4 Component and encoding message body

2012-05-31 Thread Scott England-Sullivan
Hi Andrew, Regarding the second part of your question, do you use CXF to deserialize the request Object? Also, is there a web service response expected after the HTTP4 POST is processed? On Thu, May 31, 2012 at 4:54 AM, Willem Jiang wrote: > Camel-HTTP4 components just takes the message body as

Re: Dynamically read messages from Active Mq

2012-05-31 Thread Henryk Konsek
> For example, I have a queue named testqueue1 on server1. > I have messages msg1,msg2,msg3,msg4,msg5 on testqueue1. > > I have multiple camel instances running on different servers, say server2, > server3,server4 which will be listening to testqueue1. > I want server2 instance to pick only msg1 an

Re: Input directory with multiple file consumers

2012-05-31 Thread Henryk Konsek
Hi Raf, > it doesn't make sense to loadbalance within the camel > context. Rather I want to deploy the application on multiple machines. You share the directory using distributed file system, don't you? :) Reading from the shared file system may generate problems. It is highly dependent on the p

Input directory with multiple file consumers

2012-05-31 Thread Raf
Hello, Is there a way to monitor the same input folder from camel applications on different machines? I am wondering what the best practice is on handling this situation. I have a working camel (2.7.1) application that processes zip files placed in an input folder. The application runs on a sing

Re: Passing Camel Message Headers to File Endpoint

2012-05-31 Thread Björn Bength
Or, of course, encode the header value in the filename :-) /björn On Thu, May 31, 2012 at 12:57 PM, RadoslavStoyanov wrote: > Hi Guys, > > Thanks a lot for the info and the advices! > > Regards, > Radoslav > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Passing-Camel-

Re: Passing Camel Message Headers to File Endpoint

2012-05-31 Thread RadoslavStoyanov
Hi Guys, Thanks a lot for the info and the advices! Regards, Radoslav -- View this message in context: http://camel.465427.n5.nabble.com/Passing-Camel-Message-Headers-to-File-Endpoint-tp5713737p5713780.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP4 Component and encoding message body

2012-05-31 Thread Willem Jiang
Camel-HTTP4 components just takes the message body as an input stream, if you want to do the encoding you can add a processor or dataformat to do this kind of work. Willem On Thu, May 31, 2012 at 4:34 PM, Andrew Thorburn wrote: > When sending a message to an HTTP4 Endpoint, will the content of

HTTP4 Component and encoding message body

2012-05-31 Thread Andrew Thorburn
When sending a message to an HTTP4 Endpoint, will the content of the message body be automatically encoded? e.g. The spaces replaced with %20 and whatever else is necessary to ensure that the POST request isn't mangled on the other side. I can't see anything in the documentation to tell me whether