Define an array in simple

2015-08-12 Thread ablevine1
I have found lots of documentation on how to manipulate an array in simple but none on how to create one. Is this possible? I have a bean with method whose first parameter is an object second parameter is an array of strings. My method signature is like so: myMethod(MyObjectType o, String ...

Re: Is there any way to unschedule the Camel quartz job

2015-08-12 Thread Akram
Thanks for your replies. I am able to manage it by using mbeans in jmx. Programatically getting mbeanserverconnection and stopping the cron route. -- View this message in context: http://camel.465427.n5.nabble.com/Is-there-any-way-to-unschedule-the-Camel-quartz-job-tp5767916p5770635.html Sent f

camel exchange body with html, css and javascript

2015-08-12 Thread Akram
I am setting the exchange body with set of html lines. But when i execute the program, it is showing only static html but not the javascript and css.. Here is my sample code String htmlString= " Hello world "; exchange.getOut().setHeader(Exchange.CONTENT_TYPE, "text/html ; charset=ISO-8859-1"); ex

Is there any way to limit the size of the FTP listing each poll of FTPConsumer?

2015-08-12 Thread Claudio R
Hi, I'm using the FTPConsumer. In FTP, each xml file has the name nMMddHHmm.xml, where is the year, MM is the month, dd is the day, HH is the hour and mm is the minute.The processing of the file uses the file name sorting in descending order. For a list of files: n201508110801.xml, n20

Re: org.apache.camel.FailedToCreateRouteException: Failed to create route with SNMP component

2015-08-12 Thread jspyeatt
It's actually weirder than first appeared. I do have camel-snmp included in the pom.xml file. I should have mentioned that in my original post. I'm beginning to think it's a classloader issue... Oh joy.. Because everything works fine when I run the application within IntelliJ. But when I make it

Re: Apache Camel CXF Transport - Adding interceptors to JaxWs Client

2015-08-12 Thread Daniel Kulp
Isn’t it “ and not “ ? Dan > On Aug 12, 2015, at 2:16 AM, Resmis wrote: > > Hi, > > We are invoking a soap service through RabbitMQ using Camel transport JaxWS > client as given below (Ref: > http://camel.apache.org/better-jms-transport-for-cxf-webservice-using-apache-camel.html > , and used

Getting query parameters from jetty and put then in restlet endpoint

2015-08-12 Thread arnaud
Hello, I try to get parameters from jetty endpoint to the restlet but it seems that this is not the right way : from("jetty:http://localhost:8081/myapp/myservice?param1={param1}¶m2={param2}";) .to("restlet:http://localhost:20010/services/getInfos?param1=${in.headers.param1}¶m2=${in.headers.param

Re: Getting both Original Message Body & Modified Message Body on Any error/Exception in Routes

2015-08-12 Thread Claus Ibsen
You can flip it around and turn off that option on error handler. Then from the exchange unit of work you can get access to the original message. There is Java API for that. On Wed, Aug 12, 2015 at 10:20 AM, Felix Thomas wrote: > Hello, > > I have configured my DeadLetterchannel as below .

Getting both Original Message Body & Modified Message Body on Any error/Exception in Routes

2015-08-12 Thread Felix Thomas
Hello, I have configured my DeadLetterchannel as below . I am getting the Oriiginal Body in the ErrorHandler , But i want to have the original and the modified body which I need to log in a DB at a Global Level. Is it Possible to get Both in the Message Object.?? Below the config.

Re: Camel mail component to get email notification(Instead of polling)

2015-08-12 Thread Claus Ibsen
Hi No its polling based. But I think there is a JIRA about a event based but that would require the mail server to support this, and also to implement the needed code to do so. Not sure if the java mail api supports this. On Wed, Aug 12, 2015 at 8:55 AM, NewCamelDev wrote: > Hi All, I am new to

RE: Camel XmlJson Question

2015-08-12 Thread srinit
Hi, Yes. I want to apply namespaces on some element inside soap body. I have {"arg0":"srinivas"} as input and want to get output like below http://service.ws.test.x.com/";> Srinivas I did something like this XmlJsonDataFormat xmlJsonFormat = new Xml

Re: Camel XmlJson Question

2015-08-12 Thread srinit
Hi, Yes. I want to apply namespaces on some element inside soap body. I have {"arg0":"srinivas"} as input and want to get output like below http://service.ws.test.x.com/";> Srinivas I did something like this XmlJsonDataFormat xmlJsonFormat = new

Re: REST service Camel Avro component

2015-08-12 Thread jainmcs03
Hi How do I validate incoming JSON data inside a REST service using AVRO?. IS this feature available in camel-avro component? Best regards Jayendran -- View this message in context: http://camel.465427.n5.nabble.com/REST-service-Camel-Avro-component-tp5770398p5770594.html Sent from the Camel

Camel mail component to get email notification(Instead of polling)

2015-08-12 Thread NewCamelDev
Hi All, I am new to camel and we are using the camel mail component to read some emails on some fixed delay of 30 seconds. However our customer complaints on receiving these emails in our application and I believe decreasing the polling interval may increase the load on the server. Would there be