Re: Camel Spring XML working with variables from xml message

2014-12-16 Thread Claus Ibsen
Hi If you have all the data in headers, then you can use the simple language to build a message body http://camel.apache.org/simple I guess this is what you attempted with . But constant is what is says a constant. "<2> DateValue Hostname Message" So try with "<2> ${header. DateValue} ${head

Re: Intermittent error: No content to map due to end-of-input

2014-12-16 Thread Willem Jiang
Did you try to reset the StreamCache before try to read something from it? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On December 16, 2014 at 3:04:45 PM, shanal

Camel Spring XML working with variables from xml message

2014-12-16 Thread mtod09
I'm developing a route that will read the incoming xml message and create a new message to pass to an outbound route. I need to extract some data via xpath then concat the data elements to send to a new route. Example My home var1 = data1 var2 = data2 var3 = var1 + " " + var2 var3 =

Re: How to avoid cxfrs:rserver adding extra header params (accept-encoding) -

2014-12-16 Thread Kumaran
Thanks Sergey it works and removes the unwanted header information. Sergey Beryozkin-3 wrote > Hi, AFAIK one needs to activate a header filter strategy that would > block copying the input headers > > Cheers, Sergey > On 15/12/14 23:33, Kumaran wrote: >> Hi >> >> we are using camel cxfrs server

How to Maintain Session with CXF?

2014-12-16 Thread billybobbain
The service I'm using requires that we "login" and maintain the session. (Yuck, I know!) I can do this using regular java and CXF, but can't figure out the right way with Camel & CXF. This works with Java / CXF. ((BindingProvider) port).getRequestContext().put(BindingProvider.SESSION_MAINTA

Re: Can't find the BindingOperationInfo with operation name {urn:...}login.

2014-12-16 Thread billybobbain
That was it. Thanks for your help. -- View this message in context: http://camel.465427.n5.nabble.com/Can-t-find-the-BindingOperationInfo-with-operation-name-urn-login-tp5760654p5760783.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Sending to Syslog

2014-12-16 Thread mtod09
Ok I have the solution now. I added sync=false to the uri It was using request / reply model and waiting for a response. Thanks for all the help. Mike -- View this message in context: http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760780.html Sent from the Camel - Users m

Re: Sending to Syslog

2014-12-16 Thread Claus Ibsen
Hi When you get this kind of error it can indicate mixed versions. Can you make sure the version of the Camel JARs are the same version as the version of Camel that was shipped with ActiveMQ. On Tue, Dec 16, 2014 at 7:28 PM, mtod09 wrote: > I have it working I guess I was missing some more Jar

Re: Problem with InOnly exchange pattern using with RestDSL

2014-12-16 Thread gabfssilva
Hello! Thanks for answering. Well, actually it did work! But, I thought that wire tap was not appropriate for this case. Anyway, do you know why the rest return gets messed up when I try to send an inOnly message? -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-

Re: Sending to Syslog

2014-12-16 Thread mtod09
I have it working I guess I was missing some more Jar's. Interesting the 1st message seems to work but the second one times out then works. Error Message: ERROR | Failed delivery for (MessageId: queue_syslogMessages_ID_FM-WLTP082-60537-1418754256058-7_1_1_1_1 on ExchangeId: ID-FM-WLTP082-60535-1

Re: Sending to Syslog

2014-12-16 Thread mtod09
Thanks I have added the Jar's things are looking better. The route is running now when I send it a formatted message I get the following error: *Message:* <2>Jul 10 12:00:00 192.168.1.1 SyslogGen MESSAGE TEXT ERROR | Failed delivery for (MessageId: ID:FM-WLTP082-56545-1418751719052-7:1:1:1:1 on

Camel Quickfix - UserRequest after session logon

2014-12-16 Thread Archis.Kulkarni
Hi, We’re working with an exchange that requires us to follow a 2 step logon process for establishing the connection. The message sequence is shown below. 1. Send session logon request (35=A) 2. Receive session logon response(35=A) and SessionStatus message (35=h) 3. Send Use

Re: AW: camel - xsd

2014-12-16 Thread Aki Yoshida
@Jan, I just missed your previous replies. I just saw you also have provided the JDK info already. thanks. 2014-12-16 14:25 GMT+01:00 Aki Yoshida : > It's good to hear it is working in your environment. > > by the way, I saw your camael doc update regarding the concrete error > example you saw. >

Re: AW: camel - xsd

2014-12-16 Thread Aki Yoshida
It's good to hear it is working in your environment. by the way, I saw your camael doc update regarding the concrete error example you saw. We need to formulate that differently. There is a small sanity check before starting the tokenization (not comparing the impl name itself but trying to infer

Use different aggregation strategy in camel depending on some header

2014-12-16 Thread umang
Hi, What is the correct way to use different aggregation strategy in camel depending on some header? Is the following way fine or is there any other cleaner approach to do this? from("direct:start") .choice() .when(header("foo").equalTo("bar")) .aggregate(header("id"), new B

Re: Testing REST Service

2014-12-16 Thread fabrizio.spataro
Sure... i can use any rest tool but my idea is create a set of regression test to help me on the future. ps. i am moving to maven central. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Testing-REST-Service-tp5760757p5760764.html Sent from the Camel - Users mailing

AW: AW: camel - xsd

2014-12-16 Thread jhm
I also published the demo https://github.com/janmaterne/CamelXtokenizer Jan > -Ursprüngliche Nachricht- > Von: Jan Matèrne (jhm) [mailto:apa...@materne.de] > Gesendet: Dienstag, 16. Dezember 2014 12:45 > An: users@camel.apache.org > Betreff: AW: AW: camel - xsd > > done > > Jan > > > -

Re: missing region property in aws-sns component

2014-12-16 Thread Willem Jiang
I just went through the code we need to setup the endpoint before creating the new topic. Here is the JIRA[1] I just created. [1]https://issues.apache.org/jira/browse/CAMEL-8156 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn

Re: Testing REST Service

2014-12-16 Thread Claus Ibsen
And btw Camel 2.14.1 is now synced in Maven central, so if you use maven you can upgrade. On Tue, Dec 16, 2014 at 11:57 AM, fabrizio.spataro wrote: > Hello, > > i am using camel 2.14.1 (snapshot) to aim use newest camel rest component > (using REST DSL). > > I am writing more rest services and i

Re: Testing REST Service

2014-12-16 Thread Claus Ibsen
Hi Yeah sure you can use any http client, or some of the http client that are native to rest, such as camel-restlet. You can also see the unit tests of the various rest-dsl how we test it itself, eg in camel-jetty, camel-restlet, camel-rest-spark etc. Also you do not need to use a Camel component

AW: AW: camel - xsd

2014-12-16 Thread jhm
done Jan > -Ursprüngliche Nachricht- > Von: Claus Ibsen [mailto:claus.ib...@gmail.com] > Gesendet: Dienstag, 16. Dezember 2014 12:11 > An: users@camel.apache.org > Betreff: Re: AW: camel - xsd > > Hi > > Ya sure its a good idea to update the docs with your findings. > > On Tue, Dec 16,

Testing REST Service

2014-12-16 Thread fabrizio.spataro
Hello, i am using camel 2.14.1 (snapshot) to aim use newest camel rest component (using REST DSL). I am writing more rest services and i would test it using camel test java class. My main idea is write java class extends CamelTestSupport and use http camel component to invoke my REST services.

Re: AW: camel - xsd

2014-12-16 Thread Claus Ibsen
Hi Ya sure its a good idea to update the docs with your findings. On Tue, Dec 16, 2014 at 11:09 AM, Jan Matèrne (jhm) wrote: > I stripped down my own example and did a cross check to yours: > > When running on Java 1.8.0_20-ea-b20 the test failed. > When I add Woodstox 4.4.1 as dependency the te

Re: How to avoid cxfrs:rserver adding extra header params (accept-encoding) -

2014-12-16 Thread Sergey Beryozkin
Hi, AFAIK one needs to activate a header filter strategy that would block copying the input headers Cheers, Sergey On 15/12/14 23:33, Kumaran wrote: Hi we are using camel cxfrs server to expose our proxy services, The service is exposer is working fine but if the response is more that certain

AW: AW: camel - xsd

2014-12-16 Thread jhm
I stripped down my own example and did a cross check to yours: When running on Java 1.8.0_20-ea-b20 the test failed. When I add Woodstox 4.4.1 as dependency the test passed. Same results when using Java 1.9.0-ea-b06. https://camel.apache.org/splitter.html sais "Note that this StAX based tokenize

Re: configuring Camel with XML DSL and Guice in tomcat

2014-12-16 Thread Willem Jiang
I don’t think you need to dependency injection in your XML DSL, as we just look up the instance from the registry. Can you give an example that you need to use Guice to do the DI work? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) htt

Re: camel jetty form data not working

2014-12-16 Thread Willem Jiang
How did you submit the attachments? camel-jetty supports multipart/form out of box. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On December 15, 2014 at 2:48:14 P

Re: AW: AW: camel - xsd

2014-12-16 Thread smilevasu6
Thanks Jan for your prompt response. It will be easy for me if you can provide the java classes. -- View this message in context: http://camel.465427.n5.nabble.com/camel-xsd-tp5760376p5760745.html Sent from the Camel - Users mailing list archive at Nabble.com.

AW: AW: camel - xsd

2014-12-16 Thread jhm
Sorry for my late answer, I was ill :( Thanks for your sample project, I investigated into it now. All tests passed. (Camel 2.14.0) But your test used the XMLTokenExpressionIterator directly I migrated my own test class (using the RouteBuilder) into your project. - added the test class - added th

Re: Junit Test Failing with AdviceWith

2014-12-16 Thread Claus Ibsen
Hi See the javadoc of the start method and class javadoc of CamelContext On Tue, Dec 16, 2014 at 9:54 AM, ManishGupta wrote: > Thanks for the Prompt reply Claus , I know about the mockEndpoint (assertions > and Expectations) , It is very well explained in the book I didn't use them > to make it

Re: Junit Test Failing with AdviceWith

2014-12-16 Thread ManishGupta
Thanks for the Prompt reply Claus , I know about the mockEndpoint (assertions and Expectations) , It is very well explained in the book I didn't use them to make it simpler at first. I didn't get your point on //"You need to run the test for a longer time. The start method is non blocking." Ca

Re: Date format issue in xstream marshalling.

2014-12-16 Thread Claus Ibsen
Hi I suggest to check http://xstream.codehaus.org/ And see how you configure/control dates On Mon, Dec 15, 2014 at 11:36 AM, sayed_india wrote: > Hello, > Can any one please help in retaining the date value instead converting to > GMT? > > Thanks, > Sayed > > > > -- > View this message in conte

Re: Junit Test Failing with AdviceWith

2014-12-16 Thread Claus Ibsen
Hi You need to run the test for a longer time. The start method is non blocking. And for testing you may want to use mocks to set expectations and whatnot. Since you got the book, then read the entire testing chapter to learn more. On Tue, Dec 16, 2014 at 9:24 AM, ManishGupta wrote: > Afterno

Junit Test Failing with AdviceWith

2014-12-16 Thread ManishGupta
Afternoon all, I have created Junit for existing production routes , Requirement was not to change anything from the route and test it with dummy data. From cameInAction and camel.apache.org i found the best approach will be to use adviceWith. I am using camel 2.10. When i run the Junit it starts