Re: Camel JMS Request/Reply with Websphere

2012-03-14 Thread TheJBoss
S00, JMSType=null, JMSExpiration=1331685348768, JMSXGroupID=null, JMS_IBM_PutTime=00352903, JMSPriority=0, JMS_IBM_Encoding=785, JMS_IBM_Character_Set=IBM037, JMS_IBM_PutDate=20120314, JMSReplyTo=null, JMSCorrelationID=ID:414d51204d51545f44564a3130202020bfb2494f252ba34c, JMSMess

Re: Camel idempotent for Polling Consumer...

2012-03-14 Thread Claus Ibsen
On Tue, Mar 13, 2012 at 10:08 PM, Craig Taylor wrote: > Within the file2 component, noop=true specifies that idempotent=true will > be set automatically.   However, based upon a user initiated action I need > to poll a directory endpoint and obtain a list of files present.   The > auto-set of idem

Re: Camel JMS Request/Reply with Websphere

2012-03-14 Thread Claus Ibsen
ype="java.lang.String" /> >                                 >                         > >                         >                         pattern="InOut" /> >                         >                         >        

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-14 Thread hefiso
Hi I have created a small example showing the error: http://camel.465427.n5.nabble.com/file/n5564327/hefiso-test.zip hefiso-test.zip If I change the camel version to 2.9.0 (in the pom.xml), then the test works as expected... but not with 2.9.1. The InterceptSendToEndpoint comes from mocking al

simple language in http endpoint?

2012-03-14 Thread asd09
how can i do something like this https://somehost/index.php?$header.params222 /> i try many combinations, but i not found worked version. any suggestions? -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564380.html Sent from the Came

Re: simple language in http endpoint?

2012-03-14 Thread asd09
i started to find this because of update to apache-servicemix-4.4.1-fuse-02-05 . In older versions fuse this url worked fine https://somehost/report.php?df_start_day=12&df_start_month=3&df_start_year=2012&df_start_hour=0&df_start_minute=0&df_end_day=13&df_end_month=3&df_end_year=2012&df_end_hour=23

Re: simple language in http endpoint?

2012-03-14 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Wed, Mar 14, 2012 at 12:53 PM, asd09 wrote: > how can i do something like this >  https://somehost/index.php?$header.params222 /> > i try many combinations, but i not found worked version. > any suggestions? > > --

How to create a Camel route which takes XML and bind some data to JPA annotated POJO?

2012-03-14 Thread Borut Bolčina
Hello list, I am starting to use the Camel, but due to lack of experience I have some questions which are originally posted here: http://stackoverflow.com/questions/9702158/how-to-create-a-camel-route-which-takes-xml-and-bind-some-data-to-jpa-annotated Boils down to how to split the XML, bind s

Re: Camel JMS Request/Reply with Websphere

2012-03-14 Thread Babak Vahdat
Hi If you see Logs like: CWSJY0003W: ActivationSpec '' reconnected successfully. Right afterwards, then you can safely ignore [1] these error logs. Otherwise look at [2] to see how to resolve this. My assumption is that your case is most likely [2] and not necessarily [1] because you get the

choose action based on Number range ....

2012-03-14 Thread Omar Atia
Dear All, I have XML contains subscriber number : 123 We are having number ranges to send http request to one of three servers. 100-->200 Loadbalancer A. 200-->300 Loadbalancer B. 300-->400 Loadbalancer C. How to implement that in simple language ? I need to decide based on the subno coming

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-14 Thread Claus Ibsen
On Wed, Mar 14, 2012 at 12:25 PM, hefiso wrote: > Hi > > I have created a small example showing the error: > http://camel.465427.n5.nabble.com/file/n5564327/hefiso-test.zip > hefiso-test.zip > > If I change the camel version to 2.9.0 (in the pom.xml), then the test works > as expected... but not w

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-14 Thread hefiso
Thanks. JIRA created: https://issues.apache.org/jira/browse/CAMEL-5084 https://issues.apache.org/jira/browse/CAMEL-5084 -- View this message in context: http://camel.465427.n5.nabble.com/Error-using-apache-cxf-w-Camel-2-9-1-tp5560906p5564943.html Sent from the Camel - Users mailing list archive

Re: simple language in http endpoint?

2012-03-14 Thread asd09
thank, but i couldn't make what you said. i solve my question by set CamelHttpQuery header earlier I tried to set HTTP_QUERY, but it didn't work. -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564955.html Sent from the Camel - Use

Re: Camel idempotent for Polling Consumer...

2012-03-14 Thread Craig Taylor
Once I deep-dived in the code I realized that ... However.. that still blocks the ability to have a noop consumer that is non idempotent for this use case. I'll attempt to use an always false filter and gather the file list there. On Wed, Mar 14, 2012 at 4:36 AM, Claus Ibsen wrote: > On Tue, M

Re: Camel idempotent for Polling Consumer...

2012-03-14 Thread Claus Ibsen
On Wed, Mar 14, 2012 at 3:57 PM, Craig Taylor wrote: > Once I deep-dived in the code I realized that ... > > However.. that still blocks the ability to have a noop consumer that is non > idempotent for this use case. > > I'll attempt to use an always false filter and gather the file list there. >

Re: Camel JMS Request/Reply with Websphere

2012-03-14 Thread TheJBoss
I am still working on option [2] . When I attempt to register the exception listener[3], I get the exception below. Is there a special way of registering the listener for a WAS7 MQ ConnectionFactory? [3/14/12 10:04:28:329 CDT] 0024 Cont

Re: How to create a Camel route which takes XML and bind some data to JPA annotated POJO?

2012-03-14 Thread Babak Vahdat
Hi First of all welcome to Apache Camel! As you don't own a XSD you can't make use of JDK-XJC compiler tool to create your JAXB-POJOs. However having a proper XSD had made your use case much easier. As then JAXB would have taken over the job of "Unmarshalling" from XML to POJO. Nevertheless I us

Sample of Camel XML route for

2012-03-14 Thread MichaelAtSAG
I am trying to create a Camel XML route that sends to a APNS endpoint. This Camel documentation for APN only shows three of the four options: http://camel.apache.org/apns.html Options shown : 1. Camel XML route - from apns 2. Camel Java route - from apns 3. Camel Java route - to apns I would li

File endpoint getting actual filename ${file:nameonly}

2012-03-14 Thread chrislovecnm
How do I access the file name? I have tried accessing the headers which gets me ${file:nameonly} but not the file name itself. How do I evaluate this? Here is my route: from("file:///u01/www/images/nonprofits-test?move=.done&preMove=.processing&filter=#nonpFileFilter&minDepth=2&recursive=true"

Re: choose action based on Number range ....

2012-03-14 Thread Claus Ibsen
Hi You can most likely do this with some xpath expression, but xpath can be a bit tricky to get working. The simple language have operator support, but you would need to extract the 123 number from the xpath first and set it in a temporary header .setHeader("subno").xpath("/API/Subno/text()") .c

Re: choose action based on Number range ....

2012-03-14 Thread chrislovecnm
Take a look at http://camel.apache.org/message-router.html ... you could do a content based router to different endpoints. -- View this message in context: http://camel.465427.n5.nabble.com/choose-action-based-on-Number-range-tp5564787p5565348.html Sent from the Camel - Users mailing list archive

Re: Apache Camel >> Netty

2012-03-14 Thread sambardar
Thanks. I have it working now. It was just a mismatch of encoders/decoders. -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Netty-tp5545678p5565388.html Sent from the Camel - Users mailing list archive at Nabble.com.

Using Camel as a Fast Back-end Bus with REST services?

2012-03-14 Thread unludo
I posted my question on stackoverflow: http://stackoverflow.com/questions/9704526/using-camel-as-a-fast-back-end-bus-with-rest-services http://stackoverflow.com/questions/9704526/using-camel-as-a-fast-back-end-bus-with-rest-services Please let me know if it's not ok to proceed this way. I beli

Re: File endpoint getting actual filename ${file:nameonly}

2012-03-14 Thread Claus Ibsen
Hi All the file name from the simple language is headers on the message. So they are already there. The only name is the header with this key: Exchange.FILE_NAME_ONLY So you can copy it to a foo header as follows: .setHeader("foo", header(Exchange.FILE_NAME_ONLY)) On Wed, Mar 14, 2012 at 5:24

Re: File endpoint getting actual filename ${file:nameonly}

2012-03-14 Thread Christopher Love
.setHeader("foo", header(Exchange.FILE_NAME_ONLY)) gives me a header with value of ${file:onlyname} ... arg ... I am wondering if this is groovy not playing nice. I kinda doubt it, but next step is to write a java unit test and recreate. Here is the logs 2012-03-14 11:08:15,707 INFO Camel (cam

Re: Camel JMS Request/Reply with Websphere

2012-03-14 Thread Babak Vahdat
Am 14.03.12 16:07 schrieb "TheJBoss" unter : >I am still working on option [2] . > >When I attempt to register the exception listener[3], I get the exception >below. Is there a special way of registering the listener for a WAS7 MQ >ConnectionFactory? > > >class="org.springframework.jms.listener

Camel CXF Transport

2012-03-14 Thread Chris Odom
I was attempting to use the cxf-codegen-plugin in eclipse and when I execute the goals I get this error. [DEBUG] java.lang.NoClassDefFoundError: Could not initialize class org.apache.camel.component.cxf.common.header.CxfHeaderFilterStrategy at org.apache.camel.component.cxf.transport.Came

QuickFIXJ Filtering

2012-03-14 Thread Gershaw, Geoffrey
Hello, I would like to filter out a message if the FIX field 9101=N. I am able to do this by creating a bean that does this and calling the bean from the simple tag using the bean reference. See example below. I wondered if it would be possible to do this without the java class. ${bean:S

Re: Camel and Spring 3.1

2012-03-14 Thread Christian Müller
I like this enhancement in camel-test-spring, but it makes it impossible or too complicated (from my point of view) to support Spring 3.0 and Spring 3.1. And I guess for our user Spring 3.1 support is more important than an enhances test kit. Again, if we/David cannot find a way to get it simply wo

exception in the wireTap EIP

2012-03-14 Thread jmh
Hello, suppose you have these routes and you have JMS transactions configured in a spring context definition file : /from("file:{{inputDir}}").wireTap("activemq:log").to("file:{{outputDir}}"); from("activemq:log").beanRef("logger", "log");/ Now, suppose you have an exception in the wireTap whe

Re: Camel CXF Transport

2012-03-14 Thread Chris Odom
Figured it out my-self...thanks to anyone looking at this. Use this in the plugin org.apache.camel camel-cxf-transport 2.8.0-fuse-03-06 On Wed, 14 Mar 2012 15:02:21 -0500, Chris Odom wrote: > I was attempting to use the cxf-codegen-plugin in eclipse and when I > execute the goals I get thi

Error: cannot run camel-servlet version 2.9.1 in Tomcat

2012-03-14 Thread gsilverman
I changed the camel version in the camel-example-servlet-tomcat pom.xml from the apache-camel-2.8.1 package, and got the following error trying to run *mvn package tomcat:run*; java.lang.ClassCastException: org.apache.camel.component.servlet.CamelHttpTransportServlet cannot be cast to javax.servl

Re: Camel CXF Transport

2012-03-14 Thread Willem Jiang
cxf-codegen-plugin doesn't need to load the CamelTransportFactory normally. I guess there are some camel-cxf related dependencies in your pom. BTW, do you use m2eclipse to call the cxf-codegen-plugin ? On 3/15/12 4:02 AM, Chris Odom wrote: I was attempting to use the cxf-codegen-plugin in ecli