Re: how to set attachment headers in camel exchange?

2013-01-16 Thread Willem jiang
Hi, I need to see the full picture of issue. Please show use the camel route which will use the processor you have. As I have suggested in the CAMEL-5966, you should be able to do it within the CXF Message. [1]https://issues.apache.org/jira/browse/CAMEL-5966 -- Willem Jiang Red Hat, Inc.

Re: Email with smtps not taking Placehoders for userName/password

2013-01-16 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Wed, Jan 16, 2013 at 8:17 PM, yxzhao wrote: > Hi All, > > We're trying to create a route to send email out. It works if we have below > configuration: > > uri="smtps://smtp.gmail.com?username=myu...@gmail.com&passwo

Re: [CAMEL-3.0] Start moving forward

2013-01-16 Thread Willem jiang
Yeah, we need a detail plan and time table for the Camel 3.0.0. As we have the patch release for the major Camel release, it is make sense to change the Camel version of 3.0.0 BTW, merge the patches into three different branches makes us have less time to think about the new version of Camel, I

how to set attachment headers in camel exchange?

2013-01-16 Thread cww1769
Hi, all: I just met a problem in my project which is using cxf-camel. Here is my code in the camel processor: * HashMap map = (HashMap)exchange.getIn().getBody(); org.apache.cxf.message.Attachment attachment = (Attachment)map.get("MyAttachment"); exchange.getOut().addAttachment(attachm

Re: Problem using unit test + spring + cxf

2013-01-16 Thread Willem Jiang
There is no bus definition in the JAXWS specification, so CXF has to leverage the static or thread local variable to get the reference of Bus. Back to you question, the CXF client needs the bus to wire the components and the interceptors together. 发自我的 iPhone 在 2013-1-17,上午3:24,Charles Moul

Re: Concat routes

2013-01-16 Thread Christian Müller
I guess the behavior is different because the quartz component use the inOnly MEP and the servlet component use the inOut MEP. I cannot check this at present... Best, Christian Sent from a mobile device Am 16.01.2013 14:00 schrieb "klauss42" : > Hi Claus > > > What do you mean by parallel? > >

Re: Dynamic XSL from Content

2013-01-16 Thread Christian Müller
XPath (put the name into a header) + recipientList + XSLT should work. Best, Christian Am 16.01.2013 12:56 schrieb "sammm" : > i'm new to Camel and have seen the example etc and the 'How do I use > dynamic > URI in To' posting and infor on Expressions etc. > What i need to do, and cant quite work

Camel Http4 SSL mutual authentication info

2013-01-16 Thread santhosh
Hey i want to congratulate you guys on such wonderful documentation available for camel http for customising the http client configurer.i have also found other docs sufficiently enough.That defenitely makes dev easy. I had few minor hickkups during configuring camel http4 config.i followed the d

Re: Camel Mina Client Using Exchange Headers to Configure

2013-01-16 Thread Christian Müller
It cannot work. Have a look at http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html. Best, Christian Am 16.01.2013 23:38 schrieb "peter.berkman" : > I need to send messages to various TCPIP servers based on a variable in the > Camel Exchange headers. > > My to uri looks like this: > >

[CAMEL-3.0] Start moving forward

2013-01-16 Thread Christian Müller
I find it very difficult to start a such huge and important challenge as Camel 3.0 will be, for sure. I think the most difficult part is to get consensus about what we do it and how we do it. We already collect some useful ideas at [1], but I have the feeling we have to review these ideas. First of

Re: Camel QuartzComponent failed on recreating endpoint

2013-01-16 Thread garrydias
Hello change the release solve the problem? I´m facing the same problem in production environment when I start more than 500 quartz endpoints. The failure occurs at fire time. I cannot reproduce this error in dev environment. The error just not happens. My Camel version is 2.10.1. -- View th

Re: Problem using unit test + spring + cxf

2013-01-16 Thread Charles Moulliard
Excellent Willem. That works fine now after adding BusFactory.setDefaultBus(null);. Why do we need a CXF Bus at the client side as it calls the WebService exposed by a camel endpoint ? Is it because we would like that CXF process the exchange/message through the chain of CXF Interceptors ? On Wed

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object" *** PROBLEM SOLVED ***

2013-01-16 Thread Babak Vahdat
Am 16.01.13 18:17 schrieb "Chris Wolf" unter : >Babak, > >Thanks again for the reply. I just wanted to mention that I think the >jpa component is >totally fine and usable as it is, and Camel, as a whole, is an awesome >framework. > >However, I do have some remarks to make concerning the URI for

Re: Producing/consuming SOAP messages to/from POJOs using camel-cxf

2013-01-16 Thread helander
I have now changed my client to be a JaxWS Proxy and this works fine, however the cxf client proxy injects XML messages into the route (sends to the camel context over a cxf bus). Can I somehow have the client send it as POJOs instead, so that I can process the POJOs in the route before sending the

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object" *** PROBLEM SOLVED ***

2013-01-16 Thread Chris Wolf
Babak, Thanks again for the reply. I just wanted to mention that I think the jpa component is totally fine and usable as it is, and Camel, as a whole, is an awesome framework. However, I do have some remarks to make concerning the URI format for jpa, you may not agree, but I'd like to just make

Re: CXFRS: Share port number across bundles

2013-01-16 Thread Sergey Beryozkin
On 15/01/13 16:46, Martin Stiborský wrote: Hi, thanks for answers and the idea, it sounds really good, I'll go this way definitelly. Right now, I have done that static - hardcoded, in my blueprint.xml: But the "dynamic" solution sound quite better and I like it and it's logical, thanks to th

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object" *** PROBLEM SOLVED ***

2013-01-16 Thread Babak Vahdat
Yes I see your point but this is simply how the current codebase seems like, that's using EntityManager.createNativeQuery(nativeQuery); is the *default* and if you want your entity object as the returned value then you have to *explicitly* ask for it. Changing this behaviour the way you ask f

Re: Problem using unit test + spring + cxf

2013-01-16 Thread Willem jiang
Hi Charles, I guess your unit test never fork a new JVM for testing. For the code you just showed, I can tell you doesn't setup the bus for the JaxWsProxyFactoryBean, so CXF will try to use the default Bus which could be static variable. When you run the two unit test one by one, the first Bus's

Re: Concat routes

2013-01-16 Thread klauss42
Hi again finally I found it on my own: Seems that I need to use the "waitForTaskToComplete=Always" option on the vm: component to enforce sequential processing. If I configure my master route like this:

Re: Concat routes

2013-01-16 Thread klauss42
Hi Claus > What do you mean by parallel? The 3 routes (vm:invoiceMapping, vm:invoiceControl + vm:invoiceAccounting) get started in parallel when the cron starts the vm:invoiceProcessing route. Here is some log output of a test that hopefully explains the behavior: Routes "called" sequentially wh

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-16 Thread James Carman
Sorry, didn't see that one. Glad to hear it's resolved. On Wed, Jan 16, 2013 at 7:09 AM, Chris Wolf wrote: > James, > > Sorry, I think I broke the thread by appending "*** PROBLEM SOLVED > ***" to the subject (See mail traffic from last night around 9PM). > The issue the whole time was my not ha

Re: Camel-QuickFix Component issue

2013-01-16 Thread yogu13
Hello Christian, Thank you for the quick reply... As my post mentioned sadly the fix i made is specific for my client's scenario and wouldnt be ideal solution to contribute . However having said this, i do understand the code which is currently written by the camel team to be applicable to other d

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-16 Thread Chris Wolf
James, Sorry, I think I broke the thread by appending "*** PROBLEM SOLVED ***" to the subject (See mail traffic from last night around 9PM). The issue the whole time was my not having used the "consumer.resultClass" option. Thanks, -Chris On Wed, Jan 16, 2013 at 6:51 AM, James Carman wrote

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object" *** PROBLEM SOLVED ***

2013-01-16 Thread Chris Wolf
On Tue, Jan 15, 2013 at 9:11 PM, Babak Vahdat wrote: > > > Am 16.01.13 01:07 schrieb "Chris Wolf" unter : > >>It was me not RTFM more carefully. Sorry about that. On the main >>Camel-JPA page it mentions a query option >>called "consumer.resultClass" which can be used to define the result >>clas

Re: unmarshall csv problem with bindy

2013-01-16 Thread Chris Wolf
On Wed, Jan 16, 2013 at 3:44 AM, Claus Ibsen wrote: > On Tue, Jan 15, 2013 at 9:33 PM, Chris Wolf wrote: >> I tried doing some CSV parsing with bindy and had some issues due to >> variable length records in the same file and other format weirdness. >> I ended up using camel-beanio. It's very fle

Dynamic XSL from Content

2013-01-16 Thread sammm
i'm new to Camel and have seen the example etc and the 'How do I use dynamic URI in To' posting and infor on Expressions etc. What i need to do, and cant quite work out how to do, is use the content of the XML i wish to transform to derive the name of the XSL to use. Essentially i have an existing

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-16 Thread James Carman
Are you using the same version of OpenJPA to enhance your classes that you're using at runtime? On Tue, Jan 15, 2013 at 5:11 PM, Chris Wolf wrote: > Babak, > > Thanks for the detailed reply, but if you look at my first post on > this thread, I mentioned that that error message concerning > enhanc

Re: Multiple Endpoint URLs defined at one component

2013-01-16 Thread Christian Müller
It's what you described to do. Your suggestion (putting all endpoint uri strings into one) doesn't work. With the example I sent to you, you can send a message to endpoint "direct:a", "direct:b", "direct:c" and "direct:d" and all routed in the same way. Wasn't this your question? Best, Christian

Re: Concat routes

2013-01-16 Thread Claus Ibsen
On Tue, Jan 15, 2013 at 5:50 PM, klauss42 wrote: > Hello Camel experts > I have multiple routes that perform some background processing, in detail > the routes just trigger some Spring-Batch jobs. I want to be able to start > each single route alone, therefore I am using the Servlet component to b

Re: Camel-QuickFix Component issue

2013-01-16 Thread Christian Müller
Hello Yogesh! Do you consider to create a JIRA and attach a patch with an unit test? We love contribution. Best, Christian Am 16.01.2013 10:37 schrieb "yogu13" : > Hi, > > I am using Camel version 2.10.3 , QuickFix/J version 1.5 on JDK 1.6.x, I am > facing an issue with camel-quickfix component

Camel-QuickFix Component issue

2013-01-16 Thread yogu13
Hi, I am using Camel version 2.10.3 , QuickFix/J version 1.5 on JDK 1.6.x, I am facing an issue with camel-quickfix component for the following scenario. We have a FIX message coming in to the Quickfix/J engine i.e. logon request with only the senderID and TargetID populated and the engine succes

Re: unmarshall csv problem with bindy

2013-01-16 Thread Claus Ibsen
On Tue, Jan 15, 2013 at 9:33 PM, Chris Wolf wrote: > I tried doing some CSV parsing with bindy and had some issues due to > variable length records in the same file and other format weirdness. > I ended up using camel-beanio. It's very flexible/configurable and > works well. > Yeah I am impresse

Re: move and other options are not working in route added to FTP exchange.

2013-01-16 Thread Claus Ibsen
Hi I suggest to not post HTML mails as its not easily readable. And read this page before posting for help, as we have pointers what to do before and what information to provide etc http://camel.apache.org/support On Wed, Jan 16, 2013 at 8:22 AM, satyaPrakash wrote: > This is my code snippet:-

Re: Problem using unit test + spring + cxf

2013-01-16 Thread Charles Moulliard
Hi Willem, I remember this point that we have discussed in the past and here was the response coming from Dan Kulp but nevertheless, I use here 2 separate Unit Test classes, each one has a Unit Test, each one create a different camel-cxf endpoint 9090 & 9191 Code public class WebServiceAuthentic

Re: Problem using unit test + spring + cxf

2013-01-16 Thread Willem Jiang
There is an known issue that jetty server will not accept the request if you restart it in the same JVM , due to the HTTP keep alive. You may consider to start the application context per test class. 发自我的 iPhone 在 2013-1-16,下午2:50,Charles Moulliard 写道: > Hi, > > I have 2 unit tests that I ca