Re: One way request - Camel-CXF

2013-02-20 Thread Willem jiang
You can change the below DSL //JMS Endpoint .to(activemq:queue:outputqueue); to .inOnly(activemq:queue:outputqueue); -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: marshal() with MarshalProcessor

2013-02-19 Thread Willem jiang
What's your MarshalProcessor looks like ? Did you call the marshal method in the DataFormat? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com

Re: Intercept HTTP where I use httpClientConfigurerRef

2013-02-18 Thread Willem jiang
/InterceptSendToEndpointDefinition.java -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com

Re: Camel Message Mapping to XML

2013-02-18 Thread Willem jiang
/xslt.html [3]http://camel.apache.org/custom-dataformat.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http

Re: create NettyEndpoint Instance

2013-02-16 Thread Willem jiang
the URI with netty://tcp:xxx to the construction of NettyEndpoint. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: Camel HTTP

2013-02-07 Thread Willem jiang
Hi, Camel HTTP component just supposed to handle the HTTP transport for you , it doesn't care about the underlay stream. If you want to parser the XML, you can try to use JAXB data format[1]. [1]http://camel.apache.org/jaxb.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red

Re: camel 10.2.3 migration SSL error

2013-02-07 Thread Willem jiang
Hi, Can you check which jetty version are using? You may need to down grade it. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: using Camel behind proxy

2013-02-06 Thread Willem jiang
twitter4j.properties can to be located in the root of your app's classpath, in WEB-INF/ directory, or in the process's default directory. [1]http://twitter4j.org/en/faq.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: XML Validation fails with 2.10.3. Used to work in 2.9.2

2013-02-06 Thread Willem jiang
I'm not sure if the openejb did some work to load the xerces jar it ships. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: Reference OSGI Blueprint java.util.Properties service in Blueprint Camel property placeholder

2013-02-05 Thread Willem jiang
Hi, As Camel property placeholder supports to lookup the Properties from the bean reference with the prefix ref:BeanId, I think you just need to add a reference of the property service in the camel route bundle. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: sftp - NoSuchMethodError ...SftpConsumer.isValidFile

2013-02-05 Thread Willem jiang
It looks like you are using different version of camel-core and camel-ftp. Can you check those jars version in you class path ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: Java DSL vs Spring Dsl with Splitter and Aggregator

2013-02-05 Thread Willem jiang
Can you put the to uri=direct:start after the /split ? The aggregator should be done after the split. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com

Re: Java DSL vs Spring Dsl with Splitter and Aggregator

2013-02-05 Thread Willem jiang
/correlationExpression to uri=file:F:/EbcConversion/Data/outbox/files/?fileExist=Appendamp;fileName=output.txt / /aggregate /route -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: Exception in restful web service

2013-02-05 Thread Willem jiang
Can you access the service with simple http get request? For the Exception I look like the client has some trouble to read the message. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: Camel direct component

2013-02-04 Thread Willem jiang
more readable and testable. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese

Re: calling camel route from a Servlet Filter

2013-02-04 Thread Willem jiang
Hi, Here is an example[1][2] that you may take a look. [1]http://camel.apache.org/spring-security-example.html [2]https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-spring-security/src/main/webapp/WEB-INF/web.xml -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red

Re: Setting SOAP Headers using spring-ws

2013-02-04 Thread Willem jiang
The issue may be out of our radar a while, so the patch is not applied into the code base. I will spend some time on it when I'm free this week. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: trying to understand cxf dataformats, and how to add a soapheader to cxf proxied webservice

2013-02-03 Thread Willem jiang
Hi , Please see my comments in the below mail. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http

Re: Dynamic data format in route

2013-02-03 Thread Willem jiang
property to route the message to the right route which is set with the right data formate. [1]http://camel.apache.org/content-based-router.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: How to set proxy excludes on http component?

2013-02-03 Thread Willem jiang
http component provides this kind of feature yet. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http

Re: XML Validation fails with 2.10.3. Used to work in 2.9.2

2013-02-01 Thread Willem jiang
It should be fixed with CAMEL-6020[1] recently. Please feel free to verify it with last Camel 2.10.x SNAPSHOT [1]https://issues.apache.org/jira/browse/CAMEL-6020 -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: reading data mutiple times from camel's CachedOutputStream

2013-02-01 Thread Willem Jiang
Hi Aki, The stream is supposed to be read once. If you want to read it twice, you need to call the reset method. In camel we have an intercepter which will call the reset method before routing the exchange to the other endpoint if you enable the stream cache feature. 发自我的 iPhone 在

Re: CAMEL + IBM MQ7 + Spring3.0

2013-01-31 Thread Willem jiang
Hi, I just have a quick question: Does the camel route can only consume one message ? Or it just ignore the second message which is just follow by the first message. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog

Re: Concurrent processes

2013-01-29 Thread Willem jiang
No, if you are just chain the processor together, for one exchange it will be processed one by one. But if you have multiple exchanges, they can be processed concurrently. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com

Re: camel-cxf in WebSphere without geronimo/jetty depdendencies - possible

2013-01-29 Thread Willem jiang
No, you don't need to use cxf-http-jetty module if you just want to the servlet transport. CXF modules has no hard dependency of the geronimo servlet. but CXF leverages the async invocation feature of servlet 3.0, you may need to check if the WebSphere supports it. -- Willem Jiang Red Hat

Re: camel-cxf in WebSphere without geronimo/jetty depdendencies - possible

2013-01-29 Thread Willem jiang
How did you load the camel context? It looks like you just load the camel context from the CXF servlet. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com

Re: insert custom Soap Header problem

2013-01-29 Thread Willem jiang
Did you copy the in message body to the out message? Please do it to let camel-cxf generate the right invocation message for you. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: camel-cxf in WebSphere without geronimo/jetty depdendencies - possible

2013-01-29 Thread Willem jiang
I'm afraid you need to include the cxf.xml import this time. BTW, you could exclude the dependency of cxf-rt-transport-http-jetty module, then the geronimo servlet api jar will be wrapped into the war. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: insert custom Soap Header problem

2013-01-28 Thread Willem jiang
(Header.HEADER_LIST, soapHeaders); -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter

Re: Camel-Crypto ElGamal encryption works in mvn camel:run but not in Karaf/OSGi

2013-01-28 Thread Willem jiang
${bouncycastle-version}/version /dependency The version is 1.47. I also checked the website[1], it doesn't has the release of bcprov-jdk16-xxx.jar. Can you try to put that on in your lib/ext directly. [1]http://www.bouncycastle.org/latest_releases.html -- Willem Jiang Red Hat, Inc

Re: issues with simple example

2013-01-28 Thread Willem jiang
It could be more safe to put the state into the exchange property, as the message header will be override or lost through the processors. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: insert custom Soap Header problem

2013-01-28 Thread Willem jiang
Yeah, you can do it by setting up a customer interceptor on the CXF endpoint. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: Concurrent processes

2013-01-28 Thread Willem jiang
Processor are supposed to be executed concurrently. You can managed the threads[1] in camel route, and there are some other camel components (like camel-jms, camel-cxf) have their own thread pool. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com

Re: issues with simple example

2013-01-28 Thread Willem jiang
You can use the direct endpoint to chain these processor like this from(direct:start).processor(processor1).processor(processor2)… -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: Files from remote host

2013-01-28 Thread Willem jiang
If you can mount the remote file system to you local file system, I don't think you will have some trouble to the job. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: Scala DSL with Scala 2.10

2013-01-27 Thread Willem jiang
+1 for the micro-branch for the camel-scala, and we can do the release it after major release of camel. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: Does Camel JPA component implement it's own connection pooling?

2013-01-25 Thread Willem Jiang
Can you share us your camel route? It is important for us to find out the key reason of your issue. 发自我的 iPhone 在 2013-1-26,上午5:22,Chris Wolf cwolf.a...@gmail.com 写道: On Fri, Jan 25, 2013 at 3:55 PM, Chris Wolf cwolf.a...@gmail.com wrote: I ask because when I use jpa: in producer mode, I

Re: Possible bug with multicast shareUnitOfWork

2013-01-24 Thread Willem jiang
running a whole unit tests with my change. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Willem jiang
the reference of camel servlet, and create the route builder with Java code. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: How to avoid that with camel cxf

2013-01-23 Thread Willem jiang
Hi Charles, It was a part of camel-cxf wiki page. Please do a double check out it[1] [1]http://camel.apache.org/cxf.html#CXF-HowtothrowaSOAPFaultfromCamel -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: How to avoid that with camel cxf

2013-01-22 Thread Willem Jiang
the benefit to use setFault(true) On Tue, Jan 22, 2013 at 8:37 AM, Willem jiang willem.ji...@gmail.comwrote: Hi Charles, Setting the Fault message could avoid the ErrorHandler retry action in the camel route. As the exception will be intercepted by the ErrorHandler by default. Fault

Re: How to avoid that with camel cxf

2013-01-21 Thread Willem jiang
to setup an customer fault message to the camel-cxf consumer, Please take a look at example here[1]. [1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java -- Willem Jiang Red Hat, Inc. FuseSource

Re: How to avoid that with camel cxf

2013-01-21 Thread Willem jiang
Hi Charles, Setting the Fault message could avoid the ErrorHandler retry action in the camel route. As the exception will be intercepted by the ErrorHandler by default. Fault message means you don't want to camel error handler to kick in. -- Willem Jiang Red Hat, Inc. FuseSource is now part

Re: How to force http consuming route to run only once?

2013-01-20 Thread Willem jiang
ProducerTemplate[1]. [1]http://camel.apache.org/producertemplate.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: how to set attachment headers in camel exchange?

2013-01-20 Thread Willem jiang
, it is make sense that you got the log as below even the CxfBinding is set with ISGCxfBinding. Can you just write some test to verify the setting ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: how to set attachment headers in camel exchange?

2013-01-18 Thread Willem jiang
Hi You can override the DefaultCxfBinding by configure it in your camel-cxf URI with the option cxfBinding=#bindingName. You need to bind the instance of the ISGCxfBinding with the name of bindingName. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Problem using unit test + spring + cxf

2013-01-16 Thread Willem jiang
by call the below method BusFactory.setDefaultBus(null); -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http

Re: Problem using unit test + spring + cxf

2013-01-16 Thread Willem Jiang
the chain of CXF Interceptors ? On Wed, Jan 16, 2013 at 2:48 PM, Willem jiang willem.ji...@gmail.comwrote: BusFactory.setDefaultBus(null); -- Charles Moulliard Apache Committer / Sr. Enterprise Architect (RedHat) Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com

Re: [CAMEL-3.0] Start moving forward

2013-01-16 Thread Willem jiang
, I'd like to suggest we only support Camel 2.11.x when we doing the Camel 3.0.0 development. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

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: Starting a camel project

2013-01-14 Thread Willem jiang
Just a quick note, camel will lookup some files in the META-INF/ to pick the components, converters and data formats. If you just build a big jar, you need to merge the META-INF files yourself, otherwise you will hit some strange issue there. -- Willem Jiang Red Hat, Inc. FuseSource is now

Re: camel + cxf + JAAS

2013-01-11 Thread Willem jiang
Interceptor will pass the request for further processing. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http

Re: Camel + CXF error (org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:, local:name). Expected elements are (none) )

2013-01-11 Thread Willem jiang
/tra:getCustomerByName /soapenv:Body -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com

Re: Issue using camel-cxf and wss4j

2013-01-11 Thread Willem jiang
+1 for the refactoring of camel-cxf in Camel 3.0. I think we could put the camel-cxf-transport into CXF, as it is mainly used for CXF. And the component just have the dependency of camel-core. For the other cxf-x components we may do some clean up work at the same time. -- Willem Jiang Red

Re: Issue using camel-cxf and wss4j

2013-01-10 Thread Willem jiang
I can take care of the document. It looks like we need to do a clean up before release Camel 2.11.0. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com

Re: Question about camel cxf blueprint

2013-01-10 Thread Willem jiang
/ /camelcxf:outInterceptors camelcxf:inInterceptors ref component-id=loggingInInterceptor/ /camelcxf:inInterceptors /camelcxf:cxfEndpoint -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: recipientList with POST and request body

2013-01-10 Thread Willem jiang
You just need to start the ProducerTemplate, you don't need to start the camel context as it is already started. Can you check the camel log to see if there is any information shows what's the cause exception? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: recipientList with POST and request body

2013-01-10 Thread Willem jiang
I just recheck the code, the camel context is bind with the variable name of camelContext. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: recipientList with POST and request body

2013-01-10 Thread Willem jiang
You should be able to get the cause Exception from the log. That is what I'm asking for. Can you check the log below the exception that you just showed? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: recipientList with POST and request body

2013-01-10 Thread Willem jiang
Hi, It looks like the URL you want to access need you to login first. Can you double check it? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com

Re: recipientList with POST and request body

2013-01-09 Thread Willem jiang
I just checked the camel-script code, it will bind the camel context within the script context. But it should be more easy to write a custom bean[1] and inject the camel context to it, then you can get full control of it. [1]http://camel.apache.org/bean.html -- Willem Jiang Red Hat, Inc

Re: recipientList with POST and request body

2013-01-09 Thread Willem jiang
Oh, you need to start the template before using it to send the request. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: Issue using camel-cxf and wss4j

2013-01-09 Thread Willem jiang
of it. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang

Re: recipientList with POST and request body

2013-01-08 Thread Willem jiang
customer bean, so you can get full control of message header , body and the Camel Endpoint URI at same time. [1]https://camel.apache.org/producertemplate.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Polling consumer does not stop when pollStrategy specified

2013-01-08 Thread Willem jiang
Can you check if the files are pulled already? If there is no new file to be pulled, the stream:out will not print any things out. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com

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

2013-01-06 Thread Willem jiang
), the other is used for the physical view (transport level, sending or receiving the Stream). -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

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

2013-01-06 Thread Willem jiang
want. You can change the invocation parameters in the first route as usual. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: twitter component sinceid parameter

2013-01-06 Thread Willem jiang
Willem -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang

Re: Fetching webpages with CXF on the producer endpoint side

2013-01-06 Thread Willem jiang
, you don't need to set the message body. Otherwise the camel-http producer will try to turn the message body into a output stream for you. These could explain that when you set the message body to be a empty string, the route works for you. -- Willem Jiang Red Hat, Inc. FuseSource is now

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

2013-01-05 Thread Willem jiang
Hi Lars, Current you have to use Spring to configure the camel transport for the CXF client, if you want to do it with pure Java you have to manage the CXF Bus yourself. I will try to write an example to show you how to do it with pure Java, when I get some time later today. -- Willem

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

2013-01-05 Thread Willem jiang
/org/apache/camel/component/cxf/transport/JaxWSCamelTestSupport.java -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: Camel websocket disconnect trigger

2013-01-04 Thread Willem jiang
into the WebSocketEndpoint. As current Camel WebSocket doesn't expose the API, you need to hack the code to pass the reference. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: camel sql

2013-01-04 Thread Willem jiang
Hi, What's you sql looks like? Did you need to change it dynamically? camel-sql support to use the query from message header with CamelSqlQuery which you can change the value dynamically. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: Read web service msg and encrypt some data

2013-01-03 Thread Willem jiang
How did you access the PAYLOAD message in your manipulator bean? I think it should be easy to do some transformation there. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: Read web service msg and encrypt some data

2013-01-02 Thread Willem Jiang
Hi What data format are you using with you camel cxf endpoint. As you just want to change one field. It could be more easy for you to use the POJO data format. 发自我的 iPhone 在 2013-1-3,上午8:02,jipchix m_...@yahoo.com 写道: Hi - I'm new to Camel and Spring. I'm using Camel in ServiceMix. For my

Re: MalformedObjectNameException when starting camel context

2012-12-30 Thread Willem Jiang
Hi, It looks something is wrong with you host name. Can you just change it? Willem 在 2012-12-30,下午11:45,Tim Dudgeon tdudgeon...@gmail.com 写道: I'm seeing a strange error when starting a camel context. Its dependent on the machine I'm running on. On one machine (Windows) the same context

Re: camel-cxfrs: Handling of Subresources

2012-12-27 Thread Willem jiang
Hi Raul The cxfrs component only hit the final resource. As camel don't know what to do sub resource. You can find the code in the performInvocation method of the CxfRsInvoker. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: camel-cxfrs: Handling of Subresources

2012-12-27 Thread Willem jiang
As the MessageContentsList is put into the message body. +1 to put the invocation context into the map and put the map into the message header. But I'm not sure if it is useful if camel-cxfrs delegate the sub resource locator work out side. -- Willem Jiang Red Hat, Inc. FuseSource is now

Re: How To Get The SMTP Message-ID

2012-12-26 Thread Willem jiang
Hi I just checked the MailProducer, it doesn't store the Message Id to the camel message header. So you cannot access the message header here. I just fill a JIRA[1], and will commit a quick fix for it. [1]https://issues.apache.org/jira/browse/CAMEL-5910 -- Willem Jiang Red Hat, Inc

Re: read xml file to be sent to a queue

2012-12-26 Thread Willem jiang
/camel/trunk/examples/camel-example-spring-jms -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http

Re: Problem with HTTP endpoint

2012-12-23 Thread Willem jiang
, camel will send the pull request to google.com. You should be able to configure file name by checking out the file endpoint options here[2] [1]http://camel.apache.org/http.html#HTTP-Samplewithscheduledpoll [2]http://camel.apache.org/file2.html -- Willem Jiang Red Hat, Inc. FuseSource is now part

Re: Multiple Consumers implementation issue

2012-12-23 Thread Willem jiang
If A, B, C, D are not related to each other and you don't need to add more control on the consumers, I don't think you need to use camel at all, you can just use quartz directly to do your job. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com

Re: Camel transport to soap service

2012-12-23 Thread Willem jiang
]http://camel.apache.org/cxf.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com

Re: Possible to evaulate a expression without exchange?

2012-12-23 Thread Willem jiang
No, I'm afraid you need to provide the exchange for the expression. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: BeanIO with configuration file outside classpath

2012-12-20 Thread Willem jiang
Hi, You can specify the mapping file with file protocol like file:///home/my/mappingfile. camel-beanio will load that file for your. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: Problem with HTTP endpoint

2012-12-20 Thread Willem jiang
You are using different version of camel-http and camel-core together. Can you check why the camel-http-2.4.0 is used with camel-core-2.9.0 ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: recipient list - send to all or none / transactions

2012-12-20 Thread Willem jiang
Please don't use the parallelProcessing. As you know spring is using thread local to store the information of transaction, parallelProcessing will cause some trouble to let camel know the states of transaction. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Debugging file component - breakpoint

2012-12-20 Thread Willem jiang
That's it, If you want to debug the unit test, you may consider to add Thread.sleep(xxx) to make the unit test wait for you. Otherwise, camel context will be shutdown when the test is finished. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com

Re: How do i read the xml element values from the xml payload and have to pass those values to sql query.

2012-12-19 Thread Willem jiang
I don't think camel-sql component support to get the value form message header. You may consider to use recipientList[1] to send the message to the endpoint which uri is generated dynamically. [1]http://camel.apache.org/recipient-list.html -- Willem Jiang Red Hat, Inc. FuseSource is now

Re: Problem Apache Camel with JSP/Tomcat application

2012-12-19 Thread Willem jiang
I think you can send the query request by using camel producer template[1] in your servlet. The camel route can help you with your business without care much about build up right response for the client. [1]http://camel.apache.org/producertemplate.html -- Willem Jiang Red Hat, Inc

Re: recipient list - send to all or none / transactions

2012-12-19 Thread Willem jiang
We may need to take a look at your route. From the exception I can tell is throw from JmsConsumer, I don't think it is related to the Recipient List. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Camel - causes socket write error

2012-12-19 Thread Willem jiang
It looks like the Rest Server close the connection before the client wants to send the request again. Maybe you should check the restful web service connection which you called from camel is still open for the client to use. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat

Re: Problem Apache Camel with JSP/Tomcat application

2012-12-19 Thread Willem jiang
You need to add the dependencies of camel-http and camel-servlet into your project. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: Problem Apache Camel with JSP/Tomcat application

2012-12-19 Thread Willem jiang
Hi, as you are just want to pulling the request from google not provide the http service like servlet://www.google.com (http://www.google.com). you should use the http component instead of servlet. Please change the route to from(http://www.google.com;).xxx -- Willem Jiang Red Hat, Inc

Re: Endless GenericFileOperationFailedException: Cannot Change Directory to:

2012-12-19 Thread Willem jiang
on it to control the time of each pull. Maybe you can consider to use quartz to start and stop the camel route which pulls the files from FTP. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: IllegalAnnotationsException Trying to Expose Web Service in Camel and CFX

2012-12-19 Thread Willem jiang
Which version of CXF are you using? I just googled a while, and found an interesting entry[1] Did you use Open JDK in your Ubuntu? [1]http://stackoverflow.com/questions/12562371/can-xjc-version-be-trusted -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Integration tests on routes

2012-12-19 Thread Willem jiang
of cafe-example[2][3], it shows you an example on how to write tests with came the routes. [1]http://camel.apache.org/direct.html [2]http://camel.apache.org/cafe-example.html [3]https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-cafe -- Willem Jiang Red Hat, Inc. FuseSource

Re: Configuring (Fallback)TypeConverters

2012-12-18 Thread Willem jiang
a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-5893 -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: Problem Apache Camel with JSP/Tomcat application

2012-12-18 Thread Willem jiang
Hi, You can find the example of camel-servlet[1] if you are using spring. [1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-servlet/src/test/resources/org/apache/camel/component/servlet/web-spring.xml -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Configuring (Fallback)TypeConverters

2012-12-18 Thread Willem jiang
Yeah, it could work, but we still need to deal with the injecter which is not using the Spring. So I think using the Camel Property could be one stop shop solution. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog

<    6   7   8   9   10   11   12   13   14   15   >