Re: Queries on jetty server

2014-01-26 Thread Willem Jiang
Current we don’t have camel-tomcat component, if you want to implement it yourself, you can take a look at the code of camel-jetty component. Basically you just need to replace the start stop jetty server code with tomcat. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Re: camel-cxf problem exception

2014-01-25 Thread Willem Jiang
Hi, I don’t found the getPDFs operation for the SEI. -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-24 Thread Willem Jiang
FYI, I just add two new options (username, password)[1] to the CXF URI. You can setup URI for basic authentication information. [1]https://issues.apache.org/jira/browse/CAMEL-7145 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http

Re: Questions about cxfrs

2014-01-21 Thread Willem Jiang
providing a serviceClass for rsClient. I thought maybe it was going to instantiate my service, but that doesn't seem to be the case. If you routing the response of first service to second service, you may need to clean up the CamelHttpPath message header. --  Willem Jiang Red Hat, Inc

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-21 Thread Willem Jiang
of a processor.  -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On January 20, 2014 at 2:12:21 PM, P

Re: Looking to determine where Camel can help us

2014-01-21 Thread Willem Jiang
Hi, You can have a look at the camel cxf examples[1] which can address some of your concern. BTW, CXF support the SOAP and REST at the same time. [1]http://camel.apache.org/cxf-example.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http

Re: Camel XMPP and ActiveMQ

2014-01-19 Thread Willem Jiang
You can find more information here[1][2] [1]http://camel.apache.org/xmpp.html [2]http://camel.apache.org/jms.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http

Re: Splitter with parallelProcessing and exectorService for each Exchange being split

2014-01-19 Thread Willem Jiang
The executorService of Splitter is set when splitter definition creates the processor. So the exectorService per Splitter processor not per each exchange. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English

Re: camel activemq, POJO producer is null

2014-01-19 Thread Willem Jiang
You can put the bean definition into the Blueprint file which holds camelContext definition. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese

Re: Setting a soap action on SoapJaxbDataFormat

2014-01-15 Thread Willem Jiang
The soap header value is taken from the message object, I don’t think you can set the soap header from the message header directly. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com

Re: Moving Objects between Active MQ queues using Camel Routes

2014-01-15 Thread Willem Jiang
Did you put the Student.class into the class path of camel context? -- Willem Jiang Red Hat, Inc. Web: 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 Weibo

Re: As of Today twitter requires SSL - is it a setting for Camel Twitter component?

2014-01-14 Thread Willem Jiang
/jira/browse/CAMEL-7134 -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On January 15, 2014 at 9:19:47 AM

Re: netty + dataformat + exchange headers guidance needed

2014-01-12 Thread Willem Jiang
Normally DataFormat marshall and unmarshall don’t take the exchange header into consideration. If your customer DataFormat does some work on the exchange header, you need to set the transferExchange option to be true. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Re: CXF : Camel 2.12.2 : Karaf 3.0.0 : Soap-Timeout

2014-01-07 Thread Willem Jiang
Hi Thomas, If the route can work in Karaf 2.3.3 instead of Karaf 3.0.0. I think it’s bug of PaxWeb which provide the Servlet OSGi service. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http

Re: Camel cxf with basic authentication

2014-01-07 Thread Willem Jiang
(“xxx”).to(cxfEndpoint); -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On January 7, 2014 at 7:10:44 PM

Re: Is there a way to debug in Eclipse Groovy scripts in Camel-Language component?

2014-01-05 Thread Willem Jiang
Hi, I’m not sure if you can debug the Groovy scripts with CamelContext in Eclipse. But I think you can debug the scripts by using Groovy Eclipse plugin. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English

Re: How can I call a web service with no parameters via a producerTemplate?

2014-01-02 Thread Willem Jiang
Please use exchange.getIn() instead of exchange.getOut() in the process method. -- Willem Jiang Red Hat, Inc. Web: 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: Getting ClassCastException in Camel route while handling response containing java.util.List

2014-01-02 Thread Willem Jiang
You need to put the Book List into another List, as camel-cxf use list to hold the response for handling the InOut parameters. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http

Re: How can I call a web service with no parameters via a producerTemplate?

2014-01-02 Thread Willem Jiang
As you set the invocation parameter as POJO list, you need to set the dataFormate to be POJO. Because camel-cxf default data format is POJO, removing the endpointUri option of dataFormat should work for you. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Re: Getting ClassCastException in Camel route while handling response containing java.util.List

2014-01-02 Thread Willem Jiang
No, you don’t need to change the signature. When you set the response result into the message body, you need to wrap the result into a List just like this ListBook books ... ListObject resultList = new ArrayListObject(); resultList.add(books); exchange.getOut().setBody(resultList); -- Willem

Re: Master Slave Camel-ActiveMQ

2014-01-02 Thread Willem Jiang
/documentation/en-US/JBoss_Fuse/6.0/html/EIP_Component_Reference/files/Master.html -- Willem Jiang Red Hat, Inc. Web: 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: Trying to consume SOAP WS with UTF-8 content, getting Invalid UTF-8 middle byte 0x3c

2014-01-01 Thread Willem Jiang
://cxf.component.camel.apache.org/\;                                  + arg0 xmlns=\http://cxf.component.camel.apache.org/\;hello world/arg0                                  + /ns1:echo/soap:Body/soap:Envelope);             } -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: CXF SOAP web service - Basic Authentication - username password

2014-01-01 Thread Willem Jiang
Can I have a look at your camel route? It looks like the Karaf Servlet transport doesn’t put username and password into the message context. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http

Re: Question about using message headers/Exchange properties and route testing

2013-12-30 Thread Willem Jiang
Hi, I don’t think you need to use mock framework to mock the bean. You can just write a simple bean which implement the bean’s interface to setup the message headers and exchange properties for you camel route. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Re: Master Slave Camel-ActiveMQ

2013-12-30 Thread Willem Jiang
Hi, You don’t need to let the Slave run when the Master is in charge. I think you can take a look at the camel-zookeeper[1]. [1]http://camel.apache.org/zookeeper.html#Zookeeper-ZooKeeperenabledRoutepolicy. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Re: SOAP Web service Calling using camel.

2013-12-30 Thread Willem Jiang
Hi, You can find a simple example here[1] [1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerTest.java -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http

Re: SOAP Web service Calling using camel.

2013-12-26 Thread Willem Jiang
For the SOAP fault, it looks there are something wrong with the request message. I guess you put the request into a file, so I want to know how do you generate the request? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http

Re: writing a csv file

2013-12-26 Thread Willem Jiang
Hi, Can you show us the code of calypsox.reports.CsvReportsHandler? -- Willem Jiang Red Hat, Inc. Web: 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 Weibo

Re: SOAP Web service Calling using camel.

2013-12-24 Thread Willem Jiang
If you can build the soap request by yourself, you can just use camel-http component to send a request without using a client. Otherwise you can wsdl2java (from CXF) to generate a client for you. You can find some example here[1] [1]http://camel.apache.org/cxf.html -- Willem Jiang Red Hat

Re: camel-zookeeper: Allow multiple Zookeeper servers in endpoint

2013-12-20 Thread Willem Jiang
Hi Klaus, Thanks for your contribution, I’m reviewing your patch. It will be commit to the camel repo shortly. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http

Re: camel-zookeeper: ZooKeeperProducer does implement doStop()

2013-12-20 Thread Willem Jiang
Hi Klaus,  Thanks for your contribution, I’m reviewing your patch.  It will be commit to the camel repo shortly.  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http

Re: Camel Jetty component and overlapping urls when a consumer

2013-12-19 Thread Willem Jiang
Current Camel Jetty component doesn’t support to share the Jetty component across bundle. So I think if you put two bundles which use the same port into OSGi container, you will Socket bind error. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: Camel FTP consumer + socketFactory not work correctly

2013-12-18 Thread Willem Jiang
I just filled a JIRA[1] for it and committed a quick fix for it. [1] https://issues.apache.org/jira/browse/CAMEL-7077 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http

Re: Camel FTP consumer + socketFactory not work correctly

2013-12-18 Thread Willem Jiang
Thanks for pointing that out. I just updated the code of FtpsEndpoint. -- Willem Jiang Red Hat, Inc. Web: 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: Camel Cxf Failover causes leak memory on periodic http requests

2013-12-17 Thread Willem Jiang
Hi, Your camel version is quite old (it is about two years old), and we don’t provide community support for that version. Can you try to run the test with some latest released Camel ? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http

Re: serviceClass must be specified error in ServiceMix

2013-12-17 Thread Willem Jiang
It could be more straight is you choice to use camel-jetty. The camel route just routing the request and response and doesn’t change the message content. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English

Re: Camel Cxf Failover causes leak memory on periodic http requests

2013-12-17 Thread Willem Jiang
://camel.apache.org/camel-run-maven-goal.html -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On December 17, 2013

Re: Soap Fault Unmarshal

2013-12-17 Thread Willem Jiang
can handle the exception by using the ErrorHandler[2] [1]http://camel.apache.org/producertemplate.html [2]http://camel.apache.org/error-handler.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http

Re: Soap Fault Unmarshal

2013-12-17 Thread Willem Jiang
Can you show me your camel route? -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On December 18, 2013

Re: serviceClass must be specified error in ServiceMix

2013-12-16 Thread Willem Jiang
/  to ref=HelloServiceEndpoint/  /route  /camelContext  -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem

Re: IBM MQ

2013-12-15 Thread Willem Jiang
You can call the IBM MQ API in your bean. Or you can configure the JMSComponent[1] by setting up the connection for the remote IBM MQ. [1]http://camel.apache.org/jms.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http

Re: Configuration to use camel salesforce component

2013-12-15 Thread Willem Jiang
We don’t have the salesforce share account. You need to have signup[1] first. https://events.developerforce.com/signup -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http

Re: Reading file using camel

2013-12-12 Thread Willem Jiang
What’s your com.beans.readFile look like? How do you inject it into the camel route? -- Willem Jiang Red Hat, Inc. Web: 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: building camel : disable camel-manual

2013-12-12 Thread Willem Jiang
It’s not maven proxy setting, you need to setup the proxy for Java Http URL connection[1] [1]http://stackoverflow.com/questions/1432961/how-do-i-make-httpurlconnection-use-a-proxy -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http

Re: Archive files using apache camel

2013-12-12 Thread Willem Jiang
I’m not sure what you need to do to archive the files. Can you elaborate your requirement? -- Willem Jiang Red Hat, Inc. Web: 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: DefaultCxfRsBinding only uses Exchange.getOut()

2013-12-12 Thread Willem Jiang
I will take care of it. -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On December 12, 2013 at 1:36:19

Re: First CamelSpringTestSupport unit test - AdviceWith - No consumers available on endpoint

2013-12-12 Thread Willem Jiang
You need to make sure the original route is started before using the template to send the request. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese

Re: Unknown Host Exception when using Twitter Endpoint

2013-12-12 Thread Willem Jiang
-- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On December 12, 2013 at 7:15:35 PM, Goyal, Arpit (arpit.go

Re: building camel : disable camel-manual

2013-12-12 Thread Willem Jiang
FYI, I figured a way[1] to disable generate manual call when using fastinstall profile. Please check out the latest master code for verification :) [1]https://issues.apache.org/jira/browse/CAMEL-7065  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Re: building camel : disable camel-manual

2013-12-12 Thread Willem Jiang
I just filled a JIRA[1] for it. I think we could skip that by using the profile fastinstall. [1]https://issues.apache.org/jira/browse/CAMEL-7065  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http

Re: It should be document issue

2013-12-11 Thread Willem Jiang
Thanks for point that out, I just updated the wiki page for it. -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁

Re: JPA @Consumed

2013-12-11 Thread Willem Jiang
Can you change the below to(“jpa…”) to pollEnrich(“jpa…”)? In this way the @Cousumed can be called. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese

Re: building camel : disable camel-manual

2013-12-11 Thread Willem Jiang
We have some trouble when doing the release if enable the camel-manual module with profile.  I’m not sure if we have time to revisit it again.  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (English) http

Re: stupid pipeline question

2013-12-08 Thread Willem Jiang
Can you double check if the message body can be converted rightly? I think you can enable the trace[1] and check the log to see what is wrong. [1]http://camel.apache.org/tracer.html --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English

Re: CXF EndPoint Vs Processor

2013-12-08 Thread Willem Jiang
create the web service proxy yourself if you use the cxf endpoint . --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese) Twitter: willemjiang  Weibo: 姜宁willem On December 7, 2013 at 11:42:41 AM

Re: Passing multiple parameters to CXF endpoint

2013-12-08 Thread Willem Jiang
   cxf:cxfEndpoint id=springEndpoint address=http://localhost:9000/CxfTimeoutTest/SoapContext/SoapPort;     serviceClass=org.apache.hello_world_soap_http.Greeter”/ /beans The camel route can be  from(“dirt:start”).to(“cxf:bean:sprintEndpoint”) --  Willem Jiang Red Hat, Inc. Web: http

Re: Passing multiple parameters to CXF endpoint

2013-12-05 Thread Willem Jiang
Hi, You need set up the defaultOperationName option in the url if you don’t set the OperationName header on the message. --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese) Twitter: willemjiang  Weibo

Re: camel-rabbitmq

2013-12-05 Thread Willem Jiang
You need to remove the message header which is start with “rabbitmq.” just like this from xxx/ removeHeaders pattern=“rabbitmq.*”/ to xxx/  --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese) Twitter

Re: camel-rabbitmq

2013-12-05 Thread Willem Jiang
to general.queue. Then the consumer get a new message and route it to the producer. That could explain why you saw the camel keeps sending same message to the  general.queue. --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http

Re: Consuming SOAP web service using Camel

2013-12-04 Thread Willem Jiang
What kind of CXF data format do you use? I doubt you may put a HTML tag 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://willemjiang.blogspot.com/) (English) http

Re: Persist headers when using cache

2013-12-03 Thread Willem Jiang
converter which can turn the message body with the header to be the object you want to set to the Cache. [1]http://camel.apache.org/type-converter.html --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese

Re: Certificate issues when upgrading from 2.8 to 2.10

2013-12-03 Thread Willem Jiang
Hi, Can you try to use the last Camel version to verify the if the issue is still there? We upgraded the httpClient 4.x version several times. --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese

Re: messaging between several apps tied with sso

2013-12-01 Thread Willem Jiang
some information about camel-cxf proxy here[1] [1]http://camel.apache.org/cxf-proxy-example.html --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese) Twitter: willemjiang  Weibo: 姜宁willem On November

Re: StaxConverter throws NPE

2013-12-01 Thread Willem Jiang
I just submit a patch into master branch, please check it out and play with your application. --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese) Twitter: willemjiang  Weibo: 姜宁willem On November 29

Re: Persist headers when using cache

2013-12-01 Thread Willem Jiang
Can I have a look at your route? I’m not sure how you did the persistent. --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese) Twitter: willemjiang  Weibo: 姜宁willem On November 29, 2013 at 5:31:53 PM

Re: Getting http status code from cxfrs in onException handler

2013-12-01 Thread Willem Jiang
of “CamelHttpResponseCode”. --  Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)           http://jnn.iteye.com (Chinese) Twitter: willemjiang  Weibo: 姜宁willem On November 29, 2013 at 3:44:09 PM, Preben.Asmussen (p...@dr.dk) wrote: Hi I have

Re: How to configure http client?

2013-11-27 Thread Willem jiang
No, HttpComponent.setConnectionTimeToLive() is used to set the connection manager timeToLive option, it has nothing to do with the SO_TIMEOUT. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: camel-cxf: SOAP-call to url with query parameters

2013-11-27 Thread Willem jiang
); -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On Wednesday, November 27, 2013 at 5:24 PM

Re: Container-wide Exception Handling (OSGI)

2013-11-25 Thread Willem jiang
).exceptionPolicyStrategy(new MyPolicy())); -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On Tuesday

Re: Send XML over HTTPS

2013-11-25 Thread Willem jiang
Can I have a look at the camel route and the message that you send to the camel-http4 endpoint? If the message body is not null, camel-http4 should use the POST method to send the message. I also wants to know why camel-http4 lost the Host header, -- Willem Jiang Red Hat, Inc. Web: http

Re: Route with autoStartup=false will start automatically when an exception happens on consumer side

2013-11-25 Thread Willem jiang
How can you tell the route is started? As camel-jms is based on spring-jms which can reconnect the JMS server. From the exception, I can tell the camel-jms may reconnect the server but I don’t this can make the route start if it is never started before. -- Willem Jiang Red Hat, Inc. Web

Re: How to configure http client?

2013-11-25 Thread Willem jiang
I’m afraid you need to wait for a while after we remove the deprecated API of HttpClient 4.x. In the meantime I think you can still use the MyHttpClientConfigurer to do the job. BTW, I just fill a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-7010 -- Willem Jiang Red Hat

Re: Splitting up XML into 2 XMLs

2013-11-18 Thread Willem jiang
Hi, It not like one split operation, it is more like transformation first, and then splitting the xml base on the Route -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: typesafe endpoint configuration approach

2013-11-17 Thread Willem jiang
to setup the endpoint. BTW, the good part of URI is we can build the endpoint from Java, Spring or Blueprint without change any thing. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: Camel properties component not being resolved when configuring data source

2013-11-17 Thread Willem jiang
You need to use BridgePropertyPlaceholderConfigurer[1] to let Spring and Camel knows about the properties file. [1]http://camel.apache.org/properties.html#Properties-BridgingSpringandCamelpropertyplaceholders -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Re: Simple way of calling WS under Tomcat - whole url?

2013-11-17 Thread Willem jiang
Hi, Did you know the full address of the Service which is deployed into Tomcat? You can still use the full address for the rec1 and rec2 in your route, as they are just the client, they need to full address to access the services which are deployed into Tomcat. -- Willem Jiang Red Hat, Inc

Re: getting exception whicle setting quartz2 from server

2013-11-17 Thread Willem jiang
It looks you didn’t put the camel-quartz2 into your class path. -- Willem Jiang Red Hat, Inc. Web: 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: Camel to Webservice call - can't find BindingOperationInfo exception

2013-11-14 Thread Willem jiang
Can you double check the SEI? -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On Thursday

Re: camel-josql has a dependency in a now nonexistent repo

2013-11-14 Thread Willem jiang
Don’t worry, I will take care of it today. -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem

Re: while integration Scheduling in my project getting exception.

2013-11-13 Thread Willem jiang
You can use m2eclipse to load the maven file or create the eclipse workspace by using mvn eclipse:eclipse command. It will save you lots of time to hurt the missing third part dependencies. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: Camel to Soap webservice call

2013-11-13 Thread Willem jiang
? -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem On Wednesday, November 13, 2013 at 6:20 PM, Malathi

Re: Camel to Webservice call - can't find BindingOperationInfo exception

2013-11-13 Thread Willem jiang
Can you double check the test3/WSSoap.wsdl to if the operation name is right? -- Willem Jiang Red Hat, Inc. Web: 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: Gave up waiting for service dependencies during CamelBlueprintTestSupport test of custom camel component

2013-11-12 Thread Willem jiang
Thanks for the note, I just update the wiki page of camel blueprint test with this information. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com

Re: How to expose a remote Web Service

2013-11-12 Thread Willem jiang
camel-cxf endpoint to send the request this time. -- Willem Jiang Red Hat, Inc. Web: 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 Weibo: 姜宁willem

Re: java.lang.NoSuchMethodError: org.apache.camel.model.RouteDefinition.transacted()

2013-11-12 Thread Willem jiang
I guess eclipse doesn’t recompile the route when you switch the camel version. It’s could be more easy just by using mvn clean install command to do the recompile work. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http

Re: Unmarshalling using Jaxb to POJO

2013-11-12 Thread Willem jiang
Hi, I just ran an unit test to verify the DSL, it works out of box. But I just want to ask if you have ObjectFactory in the package of PurchaseOrder to let the JAXB know the namespace mapping. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: CXF consumer endpoint + XSLT + Tracer = EmptyStackException

2013-11-12 Thread Willem jiang
Can you change the CXF endpoint data format from PAYLOAD to MESSAGE just like this ? from uri=cxf:bean:OrderService?dataFormat=MESSAGE”/ If I remember right there was an issue in turn CXF PAYLOAD message into a DOM in camel-2.10.x. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com

Re: bean Registry

2013-11-12 Thread Willem jiang
Hi , You need to use the SimpleRegistry to hold the reference of HelloBean and pass it to the DefaultCamelContext just like this SimpleRegistry registry = new SimpleRegistry(); registry.put(“HelloBean”, new HelloBean); CamelContext context = new DefaultCamelContext(registry); -- Willem

Re: Camel to Webservice call (SOAP) - FailedToCreateRouteException

2013-11-12 Thread Willem jiang
You should skip the serviceClass option of the cxf endpoint, if you don’t want to set serviceClass, you should not mention it in CXF url. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: Unmarshalling using Jaxb to POJO

2013-11-12 Thread Willem jiang
Please check out this example here[1] [1]https://github.com/apache/camel/tree/master/components/camel-jaxb/src/test/java/org/apache/camel/foo/bar -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: while integration Scheduling in my project getting exception.

2013-11-12 Thread Willem jiang
If you are using maven, you would not have this kind third part dependency issue. You need put Mail.jar and quartz.jar into your class path. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: testing camel : ClassNotFoundException - org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean

2013-11-11 Thread Willem jiang
to be called, so it makes sense that you got the ClassNotFoundException. -- Willem Jiang Red Hat, Inc. Web: 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: XML to JSON using XMLJSON - BufferDataException

2013-11-11 Thread Willem jiang
As you are send Text message, I think you can use http instead of the TCP message to send the XML message and receive the JSON data. If you just want to test the XmlJsonDataFormat , you can just prepare String with XML message and check if the result is what you want. -- Willem Jiang Red

Re: Camel Fabric example

2013-11-10 Thread Willem jiang
Hi Camel-Fabric is only provided in Fuse. If you don’t want to use Fuse, you have to implement the services publish and locator yourself. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English

Re: Test exception thrown in junit test

2013-11-10 Thread Willem jiang
If you want camel-cxf send the exception back to you, you can assert the to get the example from the template response. If you just want to test the error handling of the route, you can add a mock endpoint after the onException, to make sure you go the exception there. -- Willem Jiang Red

Re: java.lang.NoSuchMethodError: org.apache.camel.model.RouteDefinition.transacted()

2013-11-10 Thread Willem jiang
Hi, I think you may need to recompile the route instead of just change the class path when you move to use Camel 2.12.1. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

Re: testing camel : ClassNotFoundException - org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean

2013-11-10 Thread Willem jiang
Hi, I’m not sure if you ran the test after you started the whole build. It looks like the bundle plugin wasn’t called. I suggest you to run “mvm clean install -Dtest=false” from the root and then run the test. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http

Re: DirtiesContext vs just restarting context

2013-11-10 Thread Willem jiang
It make sense that create a new camel context per test take more time if you just restart the camel context. As you are not change the camel route setting differently for each test, so it should be OK for you just stop and start the camel context before and after the test. -- Willem Jiang

Re: Handling failures due to endpoint (temporary) unavailability

2013-11-10 Thread Willem jiang
Hi, I think you can take a look at DeadLetter DSL[1]. [1]http://camel.apache.org/dead-letter-channel.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http

Re: Converter - body with single instance into a List

2013-11-10 Thread Willem jiang
I suggest you don’t create the such large scope converter, it may introduce some side effect to camel. String —ListString should be OK. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

<    2   3   4   5   6   7   8   9   10   11   >