Re: @XPath evaluation

2012-08-27 Thread Taariq Levack
Hi In what version of camel is this method setFileNameHeader? Or did you define it? BTW the filename should already be in the headers, check CamelFileName and CamelFileNameOnly Taariq On Tue, Aug 28, 2012 at 4:56 AM, Willem jiang wrote: > setHeader() should be able to take the XPath expression

Re: How to use Apache Camel to develop a CXF webservice in the application which is already using Axis1

2012-08-27 Thread Willem jiang
The key issue that CXF and Axis1 cannot work together is CXF doesn't support JAXRPC which is replaced by JAXWS and is supported by Axis1. If you are using Camel you can bridge these two stacks together by using POJO data format with camel-cxf component. As there is no Axis component provides in

Re: Error loading Quickfixj 1.5.2-all component sporatically

2012-08-27 Thread Willem jiang
First, we didn't release Camel 3.1, you may need to check your camel version again. Second, I saw there are some complier threads, did you ran the Application from IDE? Can you just run it directly from JVM ? -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.co

Re: @XPath evaluation

2012-08-27 Thread Willem jiang
setHeader() should be able to take the XPath expression. I just add unit test in the camel trunk to show it. setHeader("foo").xpath("/personFile/text()"). -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://wil

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread nico
Well, there is some little progress... with your suggestion I ran that command and I've able to run the test from the command line "sucessfully" (I think it reaches further), but on the FuseIDE the error remains the same. I try running it with "Run As-> JUnit Test" and "Run As -> Maven test" but no

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread nico
I just changed the spring dependency version to spring but 2.5.6 instead of 2.5.4 and everything works!!! Thank you Babak and Claud for the clues. 2012/8/27 Matias Nicolas Sommi > Well, there is some little progress... with your suggestion I ran that > command and I've able to run the test fro

Re: Camel CXF Transport?

2012-08-27 Thread Willem jiang
Hi Scott, Actually it is not a camel component, it's a CXF transport component, you can't use it directly with camel unless you put it into a CXF endpoint. -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://will

RE: Dynamically configuring FTP component from Exchange input msg?

2012-08-27 Thread Graham Little
Hi Charles, yes exactly in spring dsl you can refer to producer templates as follows:http://camel.apache.org/schema/spring";> myHeader Consumer Templates just incase: There is some useful documentation here, especially for implementing s

Re: Write Apache POI Workbook to the Exchange

2012-08-27 Thread santoshjoshi
you can use Producer template http://camel.apache.org/producertemplate.html http://camel.apache.org/producertemplate.html to send it to any Endpoint. -- View this message in context: http://camel.465427.n5.nabble.com/Write-Apache-POI-Workbook-to-the-Exchange-tp5718138p5718152.html Sent from t

Re: Dynamically configuring FTP component from Exchange input msg?

2012-08-27 Thread Charles
Graham, Thanks a lot for the suggestion.  If I wanted to express this flow in Spring DSL, I assume I would need to create a custom producer template ans refer to that via a tag, yes?   Thanks again, Charles - Original Message - From: Graham Little To: "users@camel.apache.org" Cc:

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread Babak Vahdat
Am 27.08.12 17:49 schrieb "nico" unter : >Babak, >Since it's a Maven based project, I looked at the dependencies, and I've >found this suspicious one: > >org.springframework >spring >2.5.4 > > >In the rest of the pom file, I have references to spring 3.0.7.RELEASE

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread Babak Vahdat
Am 27.08.12 17:49 schrieb "nico" unter : >Babak, >Since it's a Maven based project, I looked at the dependencies, and I've >found this suspicious one: > >org.springframework >spring >2.5.4 > > >In the rest of the pom file, I have references to spring 3.0.7.RELEASE

Error loading Quickfixj 1.5.2-all component sporatically

2012-08-27 Thread Gershaw, Geoffrey
Hello All, We are using camel 3.1 for trading over a FIX connection. Every once in a while, the app stalls on startup.. We are not seeing any OutOfMemoryExceptions. We dropped a thread dump and I'm not seeing anything obvious. BTW Dropping the thread dump causes the app to wakeup and have no fu

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread nico
Babak, Since it's a Maven based project, I looked at the dependencies, and I've found this suspicious one: org.springframework spring 2.5.4 In the rest of the pom file, I have references to spring 3.0.7.RELEASE for: spring-context, spring-beans, spring-aop, spring-

Re: shutting down Camel, in-flight messages gone

2012-08-27 Thread Claus Ibsen
Hi The log file cannot be downloaded from that link. On Mon, Aug 27, 2012 at 11:41 AM, towe wrote: > I get an "onMessage START" and an "onMessage END" on each properly consumed > message. > > For a message throwing an exception I get the "START" first, then no trace > from the EndpointMessageL

Write Apache POI Workbook to the Exchange

2012-08-27 Thread Joe San
Guys, I have an Apache POI workbook and I would like to write that workbook to the Camel Exchange. How could I do that? // Outputting to Excel spreadsheet FileOutputStream output = null; try { output = new FileOutputStream(new File(FILE_NAME + FILE_TYPE_XLS));

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread Babak Vahdat
Hi as Claus has already suspected you've got more than one version of Spring on your classpath inside Fuse IDE. For example you've got a version other than spring-beans-3.0.7.RELEASE.jar on your classpath as well, because given your stacktrace, the following line corresponds to a Javadoc line by t

Re: Camel OSGi Blueprint Question

2012-08-27 Thread Joe San
Ok. A maven clean install made it all available in the Manifest.MF file. Regards, Jothi On Mon, Aug 27, 2012 at 2:35 PM, Joe San wrote: > With the maven archetype for Camel blueprint, I created my project. I can > see from the generated pom.xml file the following comment: > > > > What I did a

Camel OSGi Blueprint Question

2012-08-27 Thread Joe San
With the maven archetype for Camel blueprint, I created my project. I can see from the generated pom.xml file the following comment: What I did after generating my project is added additional dependencies. Now I want to make those dependencies be defined in the above generated pom.xml file. I d

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread nico
Sure, I get this by removing the runwith and contextconfiguration annotations: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-1': Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Cannot get BeanInfo for

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread Claus Ibsen
Hi You got other pieces of stacktrace etc with that type missmatch. I couldn't see that from the pasted stacktrace On Mon, Aug 27, 2012 at 1:55 PM, nico wrote: > Yes sure, > > Spring jar versions: 3.0.7.RELEASE > Camel jar versions: 2.9.0.fuse-7-061 > > Stacktrace: > java.lang.IllegalStateExcept

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread nico
Yes sure, Spring jar versions: 3.0.7.RELEASE Camel jar versions: 2.9.0.fuse-7-061 Stacktrace: java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)[spring-test-3.0.7.RELEASE.jar:3.0.7.

Re: @XPath evaluation

2012-08-27 Thread Joe San
I managed to get that working. I have another question on the route configuration: Assuming the following xml snippet: 098765432.txt xyz Frankfurt joe 32 Germany sam 32 Germany The tas

Re: shutting down Camel, in-flight messages gone

2012-08-27 Thread towe
I get an "onMessage START" and an "onMessage END" on each properly consumed message. For a message throwing an exception I get the "START" first, then no trace from the EndpointMessageListener as long as Camel tries to redeliver and finally the "END" when graceful shutdown has kicked in. Another

Re: shutting down Camel, in-flight messages gone

2012-08-27 Thread Claus Ibsen
If you enable TRACE logging on org.apache.camel.component.jms.EndpointMessageListener Then the onMessage method (which is invoked when a msg is consumed) has TRACE logging. Can you see if you get a begin + end logs for each message. It may be that the broker does not get any rollback commands for

Re: shutting down Camel, in-flight messages gone

2012-08-27 Thread towe
Hi, Nope, didn't make a difference. Exactly the same behaviour as before. /tw Claus Ibsen-2 wrote > > Try removing your which has that mark rollback only. > > Spring JMS is a bit weird when it comes to marking a TX as rollback. > It tends to prefer a runtime exception being thrown over m

Re: Shutting down my Camel Application

2012-08-27 Thread Claus Ibsen
On Sun, Aug 26, 2012 at 10:09 PM, gilboy wrote: > Hi > > I have a standalone application which embeds Camel. > > Most of the development is complete at this point and I have started to > think about how best to manage the starting and stopping of the application. > The application will needs to be

Re: shutting down Camel, in-flight messages gone

2012-08-27 Thread Claus Ibsen
Hi Try removing your which has that mark rollback only. Spring JMS is a bit weird when it comes to marking a TX as rollback. It tends to prefer a runtime exception being thrown over marking the TX explicit as rollback only. On Mon, Aug 27, 2012 at 10:12 AM, towe wrote: > Hello, > > They

Re: shutting down Camel, in-flight messages gone

2012-08-27 Thread towe
Hello, They don't end up in the DLQ in this case. :-( If I set maximumRedeliveries on the error handler to 5, for example, the messages will end up in the DLQ. But in my case I have maximum deliveries set to -1 (unlimited) and the timeout of the DefaultShutdownStrategy set to 5 seconds. When sto

Re: Error loading spring camel context (type mismatch)

2012-08-27 Thread Claus Ibsen
Hi Can you post the stacktrace. And what version of Camel are you using? The ModelCamelContext is just an interface, which is implemented by the DefaultCamelContext, which SpringCamelContext extends. So it seems a bit odd spring cannot understand that. And make sure you don't have different vers

RE: Type Conversion Exception

2012-08-27 Thread DEPREZ Arnaud AWL-IT
Yes JAXB is namespace aware. So your model classes (and so your xsd because you generated your model classes from your xsd), must have the same namespaces. If you don't find any solution, please provide us an xml sample and your xsd. KR, Arnaud Deprez Analyst-Programmer Acquiring Back-Office