Re: File and idempotent question

2009-09-03 Thread Claus Ibsen
Hi I created an unit test based on your route and it worked for me. I could drop the same file and have it processed again. http://svn.apache.org/viewvc?rev=811216&view=rev What version are you using? I am using 2.1-SNAPSHOT On Fri, Sep 4, 2009 at 12:24 AM, lazyeye wrote: > > I want to have a f

Re: Spring batch integration with camel

2009-09-03 Thread Claus Ibsen
Hi Cool yeah we love contributions. When you are ready to show / share what you have developed then post again on the user forum then we can take a look and discussion. Also there is the option of creating a JIRA ticket but sometimes its best to start from a discussion on the user forum. You sho

Re: alternate body header in mail envelope

2009-09-03 Thread Claus Ibsen
On Fri, Sep 4, 2009 at 6:06 AM, Claus Ibsen wrote: > On Thu, Sep 3, 2009 at 11:40 PM, tide08 wrote: >> >> I am setting mail_alternateBody header for multipart/alternative and the >> problem is that now that header shows up in mail envelope. Header is added >> by custom processor in the route before

Re: alternate body header in mail envelope

2009-09-03 Thread Claus Ibsen
On Thu, Sep 3, 2009 at 11:40 PM, tide08 wrote: > > I am setting mail_alternateBody header for multipart/alternative and the > problem is that now that header shows up in mail envelope. Header is added > by custom processor in the route before it comes to mail component. Is there > a way to tell cam

Re: [camel-cxf 2.0.0] CXF client creation (sometimes) hangs with CXF 2.2.3

2009-09-03 Thread Willem Jiang
Hi, I just ran the camel-cxf related unit tests with CXF 2.2.3, every thing looks good. Can you check the cxf version in your project again ? Willem Willem Jiang wrote: Hi, Do you using mvn to manage the dependency of CXF ? If so please run mvn dependency:tree to make sure there is no CXF 2

Re: Spring batch integration with camel

2009-09-03 Thread Willem Jiang
Hi, We welcome any kind of contribution :) Please follow the this page[1], and submit the patch to JIRA. [1] http://cwiki.apache.org/CAMEL/contributing.html Willem lazyeye wrote: I'm working on Camel 2.0 and spring batch 2.0 (http://static.springsource.org/spring-batch/index.html) integration

Re: [camel-cxf 2.0.0] CXF client creation (sometimes) hangs with CXF 2.2.3

2009-09-03 Thread Willem Jiang
Hi, Do you using mvn to manage the dependency of CXF ? If so please run mvn dependency:tree to make sure there is no CXF 2.2.2 dependency there. BTW, I will try to upgrade camel-cxf module of Camel 2.1-SNAPSHOT to use CXF 2.2.3 to see if the issue still there. Willem S. Ali Tokmen wrote:

Re: unicode characters broken with attachments?

2009-09-03 Thread tide08
Thanks Claus! Yes, both the mails were pasted straight from mailbox. I tried 1.6.2-SNAPSHOT with same result(more promising), unicode in mail with attachment is still broken. Though the copyright symbol now has 2 bytes, that part does not have charset as UTF-8. So now there is another symbol appe

Spring batch integration with camel

2009-09-03 Thread lazyeye
I'm working on Camel 2.0 and spring batch 2.0 (http://static.springsource.org/spring-batch/index.html) integration for a project. I would be happy to share it with anyone interested. -- View this message in context: http://www.nabble.com/Spring-batch-integration-with-camel-tp25285268p25285268.ht

File and idempotent question

2009-09-03 Thread lazyeye
I want to have a file component that will allow the same file to processed if dropped into the target directory again. I can't get the configuration right. Here's what I have now:

[camel-cxf 2.0.0] CXF client creation (sometimes) hangs with CXF 2.2.3

2009-09-03 Thread S. Ali Tokmen
Hello I've recently upgraded from CXF 2.2.2 to CXF 2.2.3 and my Camel routes that have CXF clients hang when they want to call web services. The only log message I see is: INFO (org.apache.cxf.service.factory.ReflectionServiceFactoryBean) - Creating Service xxx from class yyy (I've rep

Re: setting soap headers in camel cxf router

2009-09-03 Thread William Tam
Hi Shailesh, Could you file a Jira with a test case? Also, are you running in POJO mode as well? Thanks, William On Thu, Sep 3, 2009 at 11:17 AM, nero_s wrote: > > Hi William, > I am facing some issues with WS-Adressing headers. The incoming headers are > being simply echoed back, instead of m

Re: expectedHeaderReceived gives OK, but header is not present

2009-09-03 Thread Claus Ibsen
Hi Well spotted. I have fixed the javadoc of the mock endpoint as it does NOT add but set an expectation. On Thu, Sep 3, 2009 at 6:32 PM, Claus Ibsen wrote: > Hi > > Try this one > >    public void testHeaders() throws Exception { >        MockEndpoint resultEndpoint = getMockEndpoint("mock:resu

Re: expectedHeaderReceived gives OK, but header is not present

2009-09-03 Thread Claus Ibsen
Hi Try this one public void testHeaders() throws Exception { MockEndpoint resultEndpoint = getMockEndpoint("mock:result"); resultEndpoint.message(0).header("header1").isEqualTo("value1"); resultEndpoint.message(0).header("header2").isEqualTo("value2"); templat

Re: setting soap headers in camel cxf router

2009-09-03 Thread nero_s
Hi William, I am facing some issues with WS-Adressing headers. The incoming headers are being simply echoed back, instead of mapping it to an appropriate response action defined in the wsdl. However, CXF standalone works perfectly. Endpoint configuration: CxfEndpoint, WSAdressing Feature enabled,

Re: expectedHeaderReceived gives OK, but header is not present

2009-09-03 Thread cgveld
Hello Claus, I'm sorry for the difficult example. At first I thought the problem was in this process, but I was able to drill it down to the next example. http://www.nabble.com/file/p25278205/HeadersRouteTest.java HeadersRouteTest.java I would assume the method expectedHeaderReceived would tes

Re: Camel route not getting created

2009-09-03 Thread subh
Yes..that worked.. Thanks. Claus Ibsen-2 wrote: > > Hi > > Can you try using route builder ref instead of package. To see if that > makes a difference > > Declare you route as a spring bean. > > > > And replace with this: > > > > On Wed, Sep 2, 2009 at 10:54 PM, subh wrote: >> >> I

Re: JPA component in a JEE5 environment: EntityManagerFactory from JNDI

2009-09-03 Thread Claus Ibsen
On Thu, Sep 3, 2009 at 2:55 PM, BAltmiks wrote: > > Hi Claus, > > thank your for your help! > > This is what the Oracle-Support says. I will try these. Thanks for sharing this. Yeah the jnid lookup is cumbersome :) > > > Hello Bernd, > > I tried calling you regarding the issue, however couldn't

Re: JPA component in a JEE5 environment: EntityManagerFactory from JNDI

2009-09-03 Thread BAltmiks
Hi Claus, thank your for your help! This is what the Oracle-Support says. I will try these. Hello Bernd, I tried calling you regarding the issue, however couldn't reach. As per the issue I understand that you are using trying to lookup the Entity Manager instance and you are trying to use

Re: Global Error Handler Question.

2009-09-03 Thread Claus Ibsen
Hi Is this still an issue for you? I am super bust and havent got time to drill down. As we got many error handling and global / route based tests I would be surprised if something was wrong in camel. On Wed, Aug 26, 2009 at 12:18 PM, Bach Christian wrote: > Sure, I really appreciate your help.

Re: expectedHeaderReceived gives OK, but header is not present

2009-09-03 Thread Claus Ibsen
Hi Try with a simpler example if you want to make it more clear what your problem is. In your own code with the XML stuff you *replace* all headers by calling exchange.getIn().setHeaders. If you want to *add* instead then use exchange.getIn().getHeaders().putAll(otherMap); On Thu, Sep 3, 2009

Re: bean: resolves xslt endpoint but does not execute

2009-09-03 Thread Claus Ibsen
On Thu, Sep 3, 2009 at 10:10 AM, Gert-Jan van de Streek wrote: > > The example indeed seems to contain code that worked for 1.6 and stopped > working in 2.0 (http://camel.apache.org/recipientlist-annotation.html) > Fixed the sample. > > On Sep 3, 2009, at 9:55 AM, cgveld wrote: > >> >> Thanks!!!

Re: bean: resolves xslt endpoint but does not execute

2009-09-03 Thread Gert-Jan van de Streek
The example indeed seems to contain code that worked for 1.6 and stopped working in 2.0 (http://camel.apache.org/recipientlist-annotation.html ) On Sep 3, 2009, at 9:55 AM, cgveld wrote: Thanks!!! I changed '.to("bean:transformRoute?method=computeXsltUri")' to '.recipientList(bean("tran

Re: bean: resolves xslt endpoint but does not execute

2009-09-03 Thread cgveld
Thanks!!! I changed '.to("bean:transformRoute?method=computeXsltUri")' to '.recipientList(bean("transformRoute", "computeXsltUri"))' Now it works. I guess the last example in this page http://camel.apache.org/recipientlist-annotation.html recipientlist-annotation should be changed then. http

Re: bean: resolves xslt endpoint but does not execute

2009-09-03 Thread Claus Ibsen
Hi Use the recipient list EIP pattern http://camel.apache.org/recipient-list.html On Thu, Sep 3, 2009 at 9:04 AM, cgveld wrote: > > Dear reader, > > In our routes we need to transform an xml using an xslt. > Depending on our header we need a different xsl file to be used for > processing. > The U

bean: resolves xslt endpoint but does not execute

2009-09-03 Thread cgveld
Dear reader, In our routes we need to transform an xml using an xslt. Depending on our header we need a different xsl file to be used for processing. The URI's are given at runtime. Therefor we tried to use the "bean:" component to resolve the endpoint. It seems the bean component does resolve