Re: Bindy : CSV Header is incorrect

2012-08-16 Thread Claus Ibsen
I wonder if its related to line terminators on windows vs linux being different. There is an option on bindy to set if its windows, mac or unix. (I think) On Thu, Aug 16, 2012 at 3:17 PM, houssemgaga wrote: > Hello, > > I use the library Bindy for quite some time, and she is great . > However,

Re: Routing the message to dynamic queue

2012-08-16 Thread devgosain
Thanks a lot michal.warecki, receptionList solved my problem . -- View this message in context: http://camel.465427.n5.nabble.com/Routing-the-message-to-dynamic-queue-tp5717563p5717578.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Bindy : CSV Header is incorrect

2012-08-16 Thread Willem jiang
It could be easier for use if you can provide a simple test case to reproduce the error. -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (

Re: jms static broker setup with iptables

2012-08-16 Thread Claus Ibsen
Hi This is the Apache Camel mailing list. Your question is more suited at the ActiveMQ mailing list (assuming you use that as a broker). If not then that corresponding mailing list / forum of the given broker is the better place to go. On Thu, Aug 16, 2012 at 9:24 PM, Sean K wrote: > I have tw

Re: Issue with ApnsServiceFactory

2012-08-16 Thread Claus Ibsen
Hi You may have found a bug in that component. As we love contributions, then feel free to work on a patch and submit it in a JIRA ticket http://camel.apache.org/contributing.html On Fri, Aug 17, 2012 at 3:59 AM, Eli Gelasco wrote: > I found an issue with ApnsServiceFactory class. It will neve

Issue with ApnsServiceFactory

2012-08-16 Thread Eli Gelasco
I found an issue with ApnsServiceFactory class. It will never allow you to create an ApnsService object using "gateway.sandbox.push.apple.com", it always changes to "gateway.push.apple.com", even if you call ApnsServiceFactory.setGatewayHost(). I was wondering if anyone knew of a work around? Th

Re: Camel & Virgo in Eclipse (with Spring)

2012-08-16 Thread shahed100
Ithink this post may explain my issue :- http://gnodet.blogspot.co.uk/2010/03/spring-dm-aries-blueprint-and-custom.html Although its dated 2010, I think the problems still remains unsolved even in Aug 2012 ! I like Spring but would prefer to use blueprint now to see if that would resolve my came

aggregator aggregation completion

2012-08-16 Thread javakurious
I am looking for some tips to correctly use Aggregator component. The scenario is that I am getting a request in xml format, and I process that request and get a response in XML format as well. But the request and response are two completely different format. My goal is to create a new XML docume

Routing the message to dynamic queue

2012-08-16 Thread devgosain
Hi friends, I am a new camel user, I want to write a camel configuration (version 2.0) to achieve the following (1) Receive an xml message from a queue (say "firstqueue") (2)Redirect the xml message to a new queue which will be created dynamically on the basi

Re: Routing the message to dynamic queue

2012-08-16 Thread devgosain
I am using camel version 1.6.2.2-fuse to do this dynamic routing -- View this message in context: http://camel.465427.n5.nabble.com/Routing-the-message-to-dynamic-queue-tp5717563p5717564.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Routing the message to dynamic queue

2012-08-16 Thread michal.warecki
Hi, Take a look at Recipient List EIP (http://camel.apache.org/recipient-list.html) activemq://queue:${header.RedirectDestination} How do I use dynamic URI in To: http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html -- View this message in context: http:/

jms static broker setup with iptables

2012-08-16 Thread Sean K
I have two centos machines up and running. When I disable or turn off iptables, the one broker can establish a transport bridge with the other broker on the other centos machine. I noticed that the port number being used changes -- 53033, 53067, etc.. How can I configure each broker in the stat

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread Preben.Asmussen
Hi all Had a look at the camel-web component, and I think it addresses the need to visualize camel jmx in a web app. for ppl. to view/manage camel via a web gui. Personally I use VisualVM http://visualvm.java.net/ for that kind of need. This gives me also access to all other management beans avail

Re: returning xml file content as response

2012-08-16 Thread javakurious
Thanks for the response. Using enricher seemed lit bit more work for a simple task. The body of the exchange was XML, so I instead used an xslt to generate a static content Where the stylesheet just matches the '/' and outputs the desired xml file. -- View th

Re: exposing same REST service as both GET and POST

2012-08-16 Thread javakurious
Thanks a lot. That worked ! On Wed, Aug 8, 2012 at 4:27 AM, Sergey Beryozkin-3 [via Camel] < ml-node+s465427n5716972...@n5.nabble.com> wrote: > Hi > On 08/08/12 00:36, javakurious wrote: > > > Based on the example in http://camel.apache.org/cxfrs.html cxfrs > example > > with camel , I created a

Re: JAXB Data Format

2012-08-16 Thread Claus Ibsen
On Thu, Aug 16, 2012 at 4:08 PM, Joe San wrote: > Even with the al4j-log4j dependecy added in the libraries, I get this error. > Are you sure they are on the classpath when you run the app form within Eclipse. And you may want to add slf4j-log4j12 or some other logging bridge so you can use log4

Re: Bindy : CSV Header is incorrect

2012-08-16 Thread Charles Moulliard
Hi Can you enable to DEBUG org.apache.camel.dataformat.bindy (log4j, ...) to control which classes (= models) have been loaded by camel on your linux machine ? Regards, Charles On Thu, Aug 16, 2012 at 3:17 PM, houssemgaga wrote: > Hello, > > I use the library Bindy for quite some time, and s

Consumers to ActiveMQ shotdown but not reconnecting, even when failover is used

2012-08-16 Thread ShlomiJ
hi there, Having a machine running an ActiveMQ (5.5.1) broker. Another machine runs our Camel (2.9.0) context. The connection between the 2 is set exactly as described in *Using connection pooling* in http://camel.apache.org/activemq.html http://camel.apache.org/activemq.html , with the followi

Re: JAXB Data Format

2012-08-16 Thread Joe San
Even with the al4j-log4j dependecy added in the libraries, I get this error. Regards, Jothi On Thu, Aug 16, 2012 at 3:59 PM, Claus Ibsen wrote: > Hi > > See this FAQ > http://camel.apache.org/what-jars-do-i-need.html > > > > On Thu, Aug 16, 2012 at 3:50 PM, Joe San wrote: > > Exception in thre

Re: FTP2 - readlock and lastmodified timestamps

2012-08-16 Thread Ralf Steppacher
Thank you very much for both the improvement ticket (and its resolution) and the hint about the read lock interval. I shall try that. -Original Message- From: Claus Ibsen Reply-to: users@camel.apache.org To: users@camel.apache.org Subject: Re: FTP2 - readlock and lastmodified timestamps

Re: xStream Data Format

2012-08-16 Thread Willem jiang
Hi, You can try to modify stream from the message body, and it will effect the result of my.xml. -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.jav

Re: camelwatch login

2012-08-16 Thread Sam (Stephen Samuel)
When I get home from work I'll update camelwatch so that you can configure the user and password. It was a bit stupid of me to hardcode that in :) On 16 August 2012 14:19, Marco Westermann wrote: > ohh.. Ok thank you for your help! > > regards, Marco > > Am 16.08.2012 13:47, schrieb michal.wareck

Re: JAXB Data Format

2012-08-16 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/what-jars-do-i-need.html On Thu, Aug 16, 2012 at 3:50 PM, Joe San wrote: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/slf4j/LoggerFactory > at > org.apache.camel.support.ServiceSupport.(ServiceSupport.java:38) > at > org.exa

Re: Camel usage in Online usecases

2012-08-16 Thread Claus Ibsen
On Thu, Aug 16, 2012 at 8:53 AM, Karthikeyan Muthukumarasamy wrote: > Hi Michael, > Thanks for the reply. Sure, I will look into the page and will also share > my benchmarks with the community. > Meanwhile, can you or someone else, please point me to some material on the > internet which mentions

Re: JAXB Data Format

2012-08-16 Thread Joe San
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.camel.support.ServiceSupport.(ServiceSupport.java:38) at org.example.filexml.CamelWithFileAndXML.main(CamelWithFileAndXML.java:23) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFa

RE: Component vs EndPoint

2012-08-16 Thread Siano, Stephan
Hi, If you look at http://camel.apache.org/component.html you will find: "A Component is essentially a factory of Endpoint instances." Essentially xslt is a Component, whereas you generate an Endpoint in the to-statement of your route. Best regards Stephan -Original Message- From: Joe S

Re: Load balancing-camel in real world

2012-08-16 Thread balkishore
I figured it out. Instead of localhost or 0.0.0.0 in the from if I directly insert the IP address of the local host and remove / after the port number in URI, everything works fine. :) So the code would would be something like this from("jetty://http://192.168.39.204:8080?matchOnUriPrefix=true";)

Re: JAXB Data Format

2012-08-16 Thread Joe San
I just found that out from Chapter 4. I would have expected this hint that "when the bean has only one method, camel invokes it automagically without having to explicitly specifying it" in Chapter 3 itself. Regards, Jothi On Thu, Aug 16, 2012 at 3:32 PM, Claus Ibsen wrote: > On Thu, Aug 16, 201

Re: JAXB Data Format

2012-08-16 Thread Claus Ibsen
On Thu, Aug 16, 2012 at 3:16 PM, Joe San wrote: > Thanks for pointing me to toe documentation. My actual question got > clarified once I had a look into the documentation. > > From the Camel in Action book: > > from("quartz://report?cron=0+0+6+*+*+?") > .to("http://riders.com/orders/cmd=received&d

Re: JAXB Data Format

2012-08-16 Thread Joe San
Thanks for pointing me to toe documentation. My actual question got clarified once I had a look into the documentation. >From the Camel in Action book: from("quartz://report?cron=0+0+6+*+*+?") .to("http://riders.com/orders/cmd=received&date=yesterday";) .bean(new OrderToCsvBean()) .to("file://rid

Re: camelwatch login

2012-08-16 Thread Marco Westermann
ohh.. Ok thank you for your help! regards, Marco Am 16.08.2012 13:47, schrieb michal.warecki: Looking at the code, I think it is hardcoded to "user"/"pass", therefore you can't change it. -- View this message in context: http://camel.465427.n5.nabble.com/camelwatch-login-tp5717510p5717512.h

Bindy : CSV Header is incorrect

2012-08-16 Thread houssemgaga
Hello, I use the library Bindy for quite some time, and she is great . However, I recently found a problem. Let me explain: I'm developing on Windows machine, everything goes well. Once deployed on the target machine (Linux), csv files generated are not correct: the header is not good. In fact, I

JMS Transactions with ActiveMQ

2012-08-16 Thread maherm
Since adding JMS transaction support to our camel / activemq routes I've noticed a lot of "transport interrupted" and "transport resumed" log messages being outputted from our application. Is this change in behavior to be expected? Does the JMS connection handling change once a TransactionManager h

Re: JAXB Data Format

2012-08-16 Thread Babak Vahdat
Check the documentation for this: http://camel.apache.org/bean-binding.html Babak Am 16.08.12 14:32 schrieb "Joe San" unter : >I have decided to use JAXB instead of xStream. My route definition looks >like this: > >final JaxbDataFormat jaxb = new >JaxbDataFormat("com.example.filexml");

Re: DataFormat Example in Camel Documentation

2012-08-16 Thread Babak Vahdat
And as you already have got the "Camel in Action" book then take a look at page 366 to see how to achieve this using maven. Babak Am 16.08.12 14:36 schrieb "Babak Vahdat" unter : > > >Am 16.08.12 14:23 schrieb "Joe San" unter : > >>Which DataFormat is this? Why would it show an error in eclipse?

Re: JAXB Data Format

2012-08-16 Thread Claus Ibsen
On Thu, Aug 16, 2012 at 2:32 PM, Joe San wrote: > I have decided to use JAXB instead of xStream. My route definition looks > like this: > > final JaxbDataFormat jaxb = new > JaxbDataFormat("com.example.filexml"); > context.addRoutes(new RouteBuilder() { > public void co

Re: DataFormat Example in Camel Documentation

2012-08-16 Thread Babak Vahdat
Am 16.08.12 14:23 schrieb "Joe San" unter : >Which DataFormat is this? Why would it show an error in eclipse? You would need to add camel-jaxb 2.9.2 to your classpath as well to make it compile. This can also be done in an automated manner if you do make use of gradle or maven for your build.

Re: JAXB Data Format

2012-08-16 Thread Joe San
I have decided to use JAXB instead of xStream. My route definition looks like this: final JaxbDataFormat jaxb = new JaxbDataFormat("com.example.filexml"); context.addRoutes(new RouteBuilder() { public void configure() { from("file://my.xml").unmarshal(ja

Re: Welcome to my blog mainly about Apache Camel

2012-08-16 Thread Claus Ibsen
On Thu, Aug 16, 2012 at 10:15 AM, Charles Moulliard wrote: > Hi Michal, > > Very interesting blog entry. I will propose that we add the link on the > camsl web site. > I added a link to the blog post on the Camel articles page https://cwiki.apache.org/confluence/display/CAMEL/Articles > Regards,

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread michal.warecki
Yes, all are welcome in the development of the camel-web branch. Link to source: https://github.com/michalwarecki/camel/tree/trunk/components/camel-web I've just stared developmpent so some fragments need improvements but using JMX as a camel-web console looks promising and it is very easy to exte

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread Preben.Asmussen
@Lukasz Good ideer will check the dev list and Michal. /Preben -- View this message in context: http://camel.465427.n5.nabble.com/Proof-of-concept-for-Camel-Web-Interface-tp5717349p5717513.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camelwatch login

2012-08-16 Thread michal.warecki
Looking at the code, I think it is hardcoded to "user"/"pass", therefore you can't change it. -- View this message in context: http://camel.465427.n5.nabble.com/camelwatch-login-tp5717510p5717512.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread Lars-Erik Helander
Hi Claus, I have attached the WAR to this e-mail. It contains all sources. /Lasse 2012/8/16 Claus Ibsen : > Hi Lasse > > The link for the WAR file gave me a file not found error. Do you have > the POC hosted somewhere, or maybe you can post maybe a .zip file with > the source code or something?

camelwatch login

2012-08-16 Thread Marco Westermann
Hi, I'm not sure if this is the correct address for my question. I'm wondering how I would configure the jmx user and password for camelwatch. I try to monitor a camel instance inside smx. All I can configure in camelwatch is the jmx-url but how do I provide the login data for that url? reg

Re: Component vs EndPoint

2012-08-16 Thread Claus Ibsen
On Thu, Aug 16, 2012 at 1:11 PM, Joe San wrote: > As a follow up on the Chapter 3 from Camel in Action: > > from("file://rider/inbox") > .to("xslt://camelinaction/transform.xsl") > .to("activemq:queue:transformed") > > Can I refer the xslt as an EndPoint? or it is better referred as a > Component?

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread Claus Ibsen
Hi Lasse The link for the WAR file gave me a file not found error. Do you have the POC hosted somewhere, or maybe you can post maybe a .zip file with the source code or something? On Tue, Aug 14, 2012 at 10:24 PM, helander wrote: > Hi, > > I would like to share with anyone interested a prototy

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread Łukasz Dywicki
Hey Preben, There is another thread on dev list about camel-web improvements. Maybe you can join forces with Michal and work together? Best regards, Lukasz Wiadomość napisana przez Preben.Asmussen w dniu 15 sie 2012, o godz. 18:06: > Hi Lars > > I had a look at Jolokia last year and was impres

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread Łukasz Dywicki
Hey Preben, There is another thread on dev list about camel-web improvements. Maybe you can join forces with Michal and work together? Best regards, Lukasz Wiadomość napisana przez Preben.Asmussen w dniu 15 sie 2012, o godz. 18:06: > Hi Lars > > I had a look at Jolokia last year and was impres

Re: Splitter + aggregator + dynamic timeout

2012-08-16 Thread Babak Vahdat
Am 16.08.12 11:31 schrieb "Aleksander Pena" unter : >Hi Babak, > >your solution works fine but you removed parallel processing which is >important for me :) Just be aware that if you make use of parallelProcessing option then you've got no guarantee about the *order* of the outcomes. As an examp

Re: Issue with temporary topic

2012-08-16 Thread zuff
Hi Claus , Thanks for the very prompt reply. I guess the header is already in the header, although i may have misinterpret your message. part of my route -> triggered some asynchronized call which when completed will triggered a template.sendBody(

Re: Splitter + aggregator + dynamic timeout

2012-08-16 Thread Aleksander Pena
Hi Babak, your solution works fine but you removed parallel processing which is important for me :) Anyway I found solution for my original problem: 1. before processing is started I'm storing current exchange (from a main thread) as a property (myEx). Then myEx property is propagated to splitter

Re: Welcome to my blog mainly about Apache Camel

2012-08-16 Thread Charles Moulliard
Hi Michal, Very interesting blog entry. I will propose that we add the link on the camsl web site. Regards, On Wed, Aug 15, 2012 at 6:50 PM, michal.warecki wrote: > Hi, > > I've just published new blog post about Monitoring and managing Apache > Camel: > > > http://michalwarecki.blogspot.com/2

Re: FTP2 - readlock and lastmodified timestamps

2012-08-16 Thread Claus Ibsen
Hi I dont think the timestamp and file size is absolutely accurate when using the FTP client. I have seen in the past clients return seconds always as 00. The API in the FTP clients that Camel uses have been improved, and now offers a specific getModificationTime method, we may try to alter the C

Re: Issue with temporary topic

2012-08-16 Thread Claus Ibsen
On Thu, Aug 16, 2012 at 9:22 AM, zuff wrote: > Hi, > > > I need some additional help. I now need to send a reply back without > having access to the original Exchange, as the current scenario happened > after some processing by an external source. > > > how do I send a reply back to the t

Re: Issue with temporary topic

2012-08-16 Thread zuff
Hi, I need some additional help. I now need to send a reply back without having access to the original Exchange, as the current scenario happened after some processing by an external source. how do I send a reply back to the temp-topic if the temp topic name generated is something lik