Re: Camel route stop consuming

2013-08-05 Thread Willem jiang
Hi, Can you check the status of envioMailProcessor? It could be some thing wrong when sending the mail to user. -- 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: How to escape {{ and }} in a property's content

2013-08-04 Thread Willem jiang
Hi, You can set another prefix and SuffixToken on your custom property component, just like this bean id=properties class=org.apache.camel.component.properties.PropertiesComponent property name=prefixToken value=((/ property name=suffixToken value=))/ /bean -- Willem Jiang Red Hat, Inc

Re: Expose files in a directory over HTTP

2013-08-01 Thread Willem jiang
If you just watt expose the static files though jetty, you can set the org.eclipse.jetty.server.handler.ResourceHandler into the jetty consumer with option of handlers. You don't need to do it on the camel route. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: save message across exchanges

2013-08-01 Thread Willem Jiang
I'm not sure how do you store the headers and properties. You can store the object instance reference into the exchange properties, then camel will copy it for you across the exchanges. Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: save message across exchanges

2013-07-31 Thread Willem jiang
If you store the message into the exchange property, camel will copy the message reference across the exchange. -- 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: mvn build with -Pfastinstall not enabling noassembly flag?

2013-07-31 Thread Willem jiang
I think the Aki's solution doesn't change the default behavior of mvn install. If we use the -Pfastinstall it will skip the assembly module automatically. -- 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 route stop consuming

2013-07-31 Thread Willem jiang
Can you show us your camel route? I'm not sure if it related to the SEDA queue is full. -- 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: Camel Enrich in a Loop

2013-07-31 Thread Willem jiang
Splitter[1] + Aggregator[2]. [1]http://camel.apache.org/splitter.html [2]http://camel.apache.org/aggregator2.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

Re: Is it Camel Bug?

2013-07-28 Thread Willem jiang
Are you using Camel ProducerTemplate to send the request to the camel context? If so , you need to stop it first. BTW, it will be helpful if you can show us what's the process thread do. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: Different response messages

2013-07-24 Thread Willem jiang
How did you feed the message to activemq? Have you been always sending the Event1 to the queue? -- 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: Camel CXF Consumer Route in OSGi not available

2013-07-24 Thread Willem jiang
Hi, It looks like an issue of Talend ESB, you should ask the question in Talend forum. -- 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: Mina Component Question

2013-07-24 Thread Willem jiang
Hi, Do you need to listen to the same socket that you use to send the request? Or do you just start a new port to listen to call back message? -- 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 error with simple program with camel-core-2.11.1.jar

2013-07-22 Thread Willem jiang
Which version JDK are you using? -- 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 cache consumer (event based)

2013-07-22 Thread Willem jiang
Hi, Did you have chance to check out the example5 of this wiki page[1]? [1]http://camel.apache.org/cache.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

Re: Camel Example Restlet JDBC Master

2013-07-22 Thread Willem jiang
Hi, How did you find the the example? I don't think we ship this example within Apache Camel kit. If it is using maven, it could be easy to check the dependency issue by using mvn dependency:tree. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com

Re: NPE with splitter, aggregator and JMS - properties and transferExchange option

2013-07-22 Thread Willem jiang
I suggest you clean up the exchange properties before trying to marshall the properties. From the stack trace, it looks like there are some trouble to marshall the CXF XMLMessage which could be store into the exchange properties. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red

Re: Camel HTTP component vs. Apache HTTP client

2013-07-21 Thread Willem Jiang
Do you know what's the size of the XML file? Camel will try to cache the XML input stream into a file if the input stream size is big than 64K. You can set the size bigger to avoid caching the input stream into a file by setting the properties in CamelContext like

Re: Message Processing Performance while splitting

2013-07-21 Thread Willem Jiang
. 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 Weibo: 姜宁

Re: After camelContext shutdown, is any way to exit the Java main() method?

2013-07-21 Thread Willem Jiang
As you are using camel main to start the camel context. You need to call the System.exit() when the Camel context is stopped. 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 HTTP component vs. Apache HTTP client

2013-07-21 Thread Willem Jiang
It makes sense that camel has lots of things to do beside processing the message as you do with HttpClient. 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: Camel HTTP4, not able to use httpContext endpoint option

2013-07-20 Thread Willem jiang
Hi, Can you show us more about the cause of the exception? As the NoSuchBeanException should have the cause of the exception. -- 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: invoking camel route

2013-07-19 Thread Willem jiang
If you want to invoke the route, you still need to send a message to the route, even the message body and header are empty. -- 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: Replacing standalone client with generic one in cxf component

2013-07-18 Thread Willem jiang
Hi, What's the operation that your standalone client is invoking? If you know which operation your client should invoke, you can set it throughout the camel-cxf endpoint uri. If you want to change it dynamically, you can setup the message header per invocation. -- Willem Jiang Red Hat, Inc

Re: Groovy script synchronized issue with 2.10.x and 2.11.x prevents camel groovy script for High Concurrenc

2013-07-18 Thread Willem jiang
The ScriptEngine evaluate method is not thread safe, I think you can use seda component to cache the request in the queue, then using one consumer to processing the groovy script. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: Groovy script synchronized issue with 2.10.x and 2.11.x prevents camel groovy script for High Concurrenc

2013-07-18 Thread Willem jiang
I think we can cache the ScriptEngine as a thread local variable, and we need to find a way to clean up these variables when the camel route is shutdown. So I just fill a JIRA[1] for it. [1] https://issues.apache.org/jira/browse/CAMEL-6559 -- Willem Jiang Red Hat, Inc. FuseSource is now

Re: Message Processing Performance while splitting

2013-07-18 Thread Willem jiang
://issues.apache.org/jira/browse/CAMEL-6139 -- 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: Work with Exchange.HTTP_QUERY

2013-07-18 Thread Willem jiang
There are two character of ?. Can you change the recipientList to .recipientList(simple(${body}authMethod=BasicauthUsername=userauthPassword=pass) -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Hessian support (from/to endpoints)

2013-07-17 Thread Willem jiang
the methodName, you may also need to provide a Interface class for camel-hassina endpoint to use. -- 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: Ftp connection through SOCKS Proxy.

2013-07-16 Thread Willem jiang
As you know current camel-ftp is based of common net API, if the NET-468 patch is released, I think we can easily as the support of setting the Proxy object. Please feel free to fill a JIRA[1] and we can keep it in mind :) [1]https://issues.apache.org/jira/browse/CAMEL -- Willem Jiang Red

Re: Camel resources URI into OSGi environment

2013-07-16 Thread Willem jiang
Hi, I just checked the code of XsltUriResolver code in the trunk, it should be resolved since Camel 2.11.x. You may need to consider to upgrade the Camel version of it. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com

Re: How to use PropertyPlaceholderConfigurer to configure the autoStartup option

2013-07-14 Thread Willem jiang
in latest released Camel. [1]http://stackoverflow.com/questions/4160104/disable-schema-validation-in-spring-3 -- 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: org.apache.camel.CamelException: Cannot connect to

2013-07-14 Thread Willem jiang
interface. You'd better change the address to localhost just like this from(netty:tcp://0.0.0.0:7000?textline=true) .bean(MainDummyProcessor.class) .to(netty:tcp://0.0.0.0:7001?textline=true).to(netty:tcp://localhost:7004?textline=true) -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red

Re: Get the exception org.apache.camel.RuntimeCamelException: java.lang.RuntimeException: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2013-07-14 Thread Willem jiang
Hi, If you changed the protocol form http to https, you need to add some configuration on the Jetty engine just like this[1] [1]http://cxf.apache.org/docs/jetty-configuration.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: Cannot access CamelLoopIndex in route using spel

2013-07-14 Thread Willem jiang
Hi, If you want to access the CamelLoopIndex, you should use properties['CamelLoopIndex'] instead of property(CamelLoopIndex). -- 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: Bean Method Invocation regression in 2.11

2013-07-12 Thread Willem jiang
Hi, Thanks for reporting this. I just filled a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-6544 -- 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: How do I close Netty connections and shutdown my application gracefully?

2013-07-11 Thread Willem jiang
I'm sorry, I don't mention it rightly. NettyProducer closes all the open channels when it is stopped. context.stop will shutdown the routes, consumers and producers. If you don't want to shutdown the CamelContext to close the channel, you can set the option disconnect to be true. -- Willem

Re: Using Bindy for multiple record types in the same file

2013-07-11 Thread Willem jiang
I think you can split the file and routing the lines to different bindy data format base on the first 2 character. -- 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: CamelSpringTestSupport with PowerMock

2013-07-10 Thread Willem jiang
Can you submit a simple test case to show the error? BTW, I just checked code of InterceptSendToMockEndpointStrategy, it has the construction with the parameter list of (java.lang.String,boolean). Can you check if you have more then one version of camel-core in you class path? -- Willem

Re: CamelTestSupport Import

2013-07-10 Thread Willem jiang
You need add camel-core.jar at same time. -- 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: How do I close Netty connections and shutdown my application gracefully?

2013-07-10 Thread Willem jiang
You need to shutdown the template if you don't want to use it anymore. -- 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 version updated to v1.1

2013-07-09 Thread Willem jiang
version to the latest release on. 2.11.1. -- 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: Jetty component. Is it possible do nut put request body into header?

2013-07-09 Thread Willem jiang
Can I have a look at your camel route? It could be easy to remove the message header just by using the removeHeaders DSL[1]. [1]http://camel.apache.org/how-to-avoid-sending-some-or-all-message-headers.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Camel 2.11.0 -- TypeConverterLoaderException

2013-07-09 Thread Willem jiang
Hi, Can you check if there are two camel-scala jars in you class path and the scala version that you are using? BTW, if you don't use the scala, you can just move the camel-scala jars away directly. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Enriching SOAP messages

2013-07-08 Thread Willem jiang
FYI, this question is just answer here[1] [1]https://community.jboss.org/message/826938 -- 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: Enricher - coping strategy

2013-07-08 Thread Willem jiang
to prepare the exchange for enricher target, but it real depends on how the enricher wants to reuse the message. Just my 2 cents. -- 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: under the hood architecture of camel-jetty and camel-http4

2013-07-08 Thread Willem jiang
Hi Please see my comments inline. -- 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: zip file best practices

2013-07-06 Thread Willem jiang
Hi Juan, Thanks for reporting it. I will check out your patch when I get some time next week. -- 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: Chunking issue with http producer

2013-07-03 Thread Willem jiang
Thanks for sharing the solution with us. I think we can enable this kind of feature when the http producer is working in the Bridge mode. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Entity Manager is null

2013-07-02 Thread Willem jiang
Which version of Spring are you using? How did you use PersistenceContext? Maybe the class that you want to inject the EntityManager is not managed by Spring. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Choice sendTo and overwriting exchange body

2013-07-02 Thread Willem jiang
Maybe we can add an option in sendTo DSL, to let it restore the original Exchange if the option is enabled. Please feel free to fill a JIRA for it, if you like you can share us with the solution you have. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Chunking issue with http producer

2013-07-02 Thread Willem jiang
. If you disable the streamCache it doesn't affect it, but you may consider to disable cache the stream into file as the default size is 64K. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Bug in org.apache.camel.main.Main#doStop() ?

2013-07-02 Thread Willem jiang
Hi, I just had a quick look of the code and confirmed it's a bug. I will commit a quick fix for it shortly. -- 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: Jetty asynchronous processing with seda

2013-07-01 Thread Willem jiang
pollEnrich doesn't use any data of the current exchange, which means the setHeader doesn't take effect on pollEnrich. I think you should check the message body, if it is null then set the message header with the response code you want. -- Willem Jiang Red Hat, Inc. FuseSource is now part

Re: id of wireTap will be overrided by the id of next node

2013-06-27 Thread Willem jiang
Yeah, you need to use the block to avoid this issue. -- 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: Choice sendTo and overwriting exchange body

2013-06-27 Thread Willem jiang
Hi, When you using sendTo expression, the exchange will be processed, so the original exchange will be processed. If you need to use the original message body again, you need to resort it yourself. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: xmpp uri in camel / naming a JID resource [solved]

2013-06-26 Thread Willem jiang
Thanks for sharing this with us :) -- 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: xmpp uri in camel / naming a hid resource

2013-06-23 Thread Willem jiang
Hi, I think it is make sense to treat the installation as a chat room, then you can let the application and device talk to each other. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Servet Componnet HttpSession

2013-06-23 Thread Willem jiang
Checking the cookies header could help us find out the reason. BTW, I think Camel will cache the HttpEndpoint for sending the message, I'm not sure if it can cause some trouble here. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: Camel-Cxf Payload Mode - DefaultSEI not found

2013-06-12 Thread Willem Jiang
You need to specify the wsdlUrl attribute in the cxfEndpoint element. 发自我的 iPhone 在 2013-6-12,下午3:18,lmanchanda75 lmanchand...@gmail.com 写道: Hi Experts, I am writing a PAYLOAD mode client and for the same I have defined following blueprint: ?xml version=1.0 encoding=UTF-8?

Re: Upgrade Camel 2.10.1 - 2.11.0 - Camel keeps restarting

2013-06-11 Thread Willem Jiang
which version of Karaf are you using? It looks like a Karaf issue. I don't think camel's change will cause this issue. 发自我的 iPhone 在 2013-6-12,上午1:51,Martin Stiborský martin.stibor...@gmail.com 写道: It's been a while but now I had some time to investigate this problem again. I think I have

Re: Regarding request routing through camel web app

2013-06-07 Thread Willem jiang
Hi, How did you deploy the servlet? If you are using the camel-servelt you just need to use the relative path not use the full path. Please check the document in the camel-servlet[1] for more information. [1]http://camel.apache.org/servlet.html -- Willem Jiang Red Hat, Inc. FuseSource

Re: Camel 2.9.2, CXF 2.6.2 - How should the response look for CXF producer using Payload dataformat

2013-06-05 Thread Willem jiang
Hi, I just found you didn't specify the wsdlURL or serviceClass attributes in you CxfEndpoint element. They are useful when CXF is trying to build up ServiceModel for handling the request and response. Can you add either one of them to your CxfEndpoint definition? -- Willem Jiang Red Hat

Re: Camel without Spring. Limitations?

2013-06-04 Thread Willem Jiang
Camel and CXF support Blueprint which can do the same thing as Spring does. Did you have a chance to try it? 发自我的 iPhone 在 2013-6-3,下午6:59,Jose jagavi...@gmail.com 写道: Hi, I am trying to use Camel without Spring and I am wondering if there are some limitations. I guess the configuration

Re: No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-04 Thread Willem jiang
If you don't use APM, can your camel context be started rightly? It looks like you are missing the definition of CamelBeanParameterMappingStrategy somewhere. -- 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 2.9.2, CXF 2.6.2 - How should the response look for CXF producer using Payload dataformat

2013-06-04 Thread Willem jiang
Hi, Please don't send the same question into two different users mailing list. I already answer you question in the cxf users mailing list. The answer is you the response should be wrapped with soap envelope. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: the namespace on the IReportServiceExecuteRequest element, is not a valid SOAP version

2013-06-04 Thread Willem jiang
Where did you call the exchange.getOut() ? -- 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: No bean named 'CamelBeanParameterMappingStrategy' is defined

2013-06-04 Thread Willem jiang
I don't know which version of camel you are using. But you can try to use class org.apache.camel.component.bean.DefaultParameterMappingStrategy -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Performance Degradation due to Reverse DNS Lookups

2013-06-03 Thread Willem jiang
Hi, I'm not sure if setting the dummy implementation of X509HostnameVerifier can resolve the issue. Can you try it to see if it work? -- 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: NullPointerException throws from CXF Component (DataFormat is CXF_MESSAGE) when handle fault response

2013-05-29 Thread Willem jiang
It could save me some time if you can provide a simple test case for 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

Re: NullPointerException throws from CXF Component (DataFormat is CXF_MESSAGE) when handle fault response

2013-05-28 Thread Willem jiang
From the stack trace I can tell there are something when camel-cxf wants to read the content from CXF message. Can you show me the whole Camel route and your camel version? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com

Re: camel-cxf and synchronous vs. asynchronous endpoints

2013-05-27 Thread Willem Jiang
Hi It's a known issue, CXF jms transport doesn't support the asynchronous invocation well. 发自我的 iPhone 在 2013-5-27,下午5:59,Jens smix...@dzbank.de 写道: Hi, I have a very simple route of the form from(cxf:bean:router).to(cxf:bean:realEP?synchronous=true) The realEP endpoint uses JMS.

Re: Custom component for weird legacy format

2013-05-23 Thread Willem jiang
I don't think we need to write a customer HTTP binding this time, writing a custom Data Format should be enough. If you have some special HTTP header need to deal with, you may consider to write that HTTP binding. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Problem in mqtt Component

2013-05-23 Thread Willem jiang
Hi Did you push some message to the topic which the route is subscribed? Can you add some log between your first route from and to endpoints? -- 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 is the automatica type conversion happening

2013-05-21 Thread Willem jiang
There is a cache of the JAXB context, so the FallbackTypeConverter don't need to create a new one per 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

Re: Sharing a solution for discussion

2013-05-21 Thread Willem jiang
It will have nothing to do with camel, if you redirect the request to another location :) -- 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: SSL : Server Certs and Client certificate passthrough

2013-05-21 Thread Willem jiang
camel route use the fixed private key to send the request to back service? -- 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: Enable disable routes at startup using Spring

2013-05-21 Thread Willem jiang
://camel.apache.org/spring.html#Spring-HowdoIimportroutesfromotherXMLfiles -- 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: Sharing a solution for discussion

2013-05-20 Thread Willem jiang
Hi, I guess you need to do some xml transformation to make the xml fit of the soap message. Did you check out camel-xslt[1] before? [1]http://camel.apache.org/xslt.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com

Re: Sharing a solution for discussion

2013-05-20 Thread Willem jiang
to the browser. [1]http://camel.apache.org/soap.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: Enable disable routes at startup using Spring

2013-05-20 Thread Willem jiang
/my.properties/ route autoStartup={{enableRoute}} …… -- 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: jetty:http dynamic uri in consumer (from)

2013-05-16 Thread Willem jiang
You are sending the InOnly message to seda endpoint. Can you change it to InOut? -- 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: camel multicast

2013-05-16 Thread Willem jiang
Did you set the stopOnException option to be true in your multicast? -- 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-cxf intermittent error:

2013-05-16 Thread Willem jiang
Hi, It is looks like CXF will have some trouble to access the wsdl when it is starting up. Can you just remove the wsdlURL option from the camel-cxf endpoint uri, as you are using MESSAGE dataFormat, you don't need to specify the it. -- Willem Jiang Red Hat, Inc. FuseSource is now part

Re: Streaming a PDF from remote machine

2013-05-14 Thread Willem jiang
I'm afraid you have to implement the timeout mechanism yourself. I don't aware camel provides this feature out of box. BTW, I think the solution2 that you have is a good one. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: How to create a generic SOAP consumer?

2013-05-14 Thread Willem jiang
Hi, It looks like you are deploying the camel route into OSGi container? The warning means there are more than on javax.xml.ws.WebServiceProvider classes are loaded by deferent Classloader. Are you using Karaf or ServiceMix? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat

Re: Using camel-servlet with Multipart - unable to fetch the file

2013-05-14 Thread Willem jiang
camel will try to digest the HttpServletRequest and setup the message headers and body. It's a common practice to consume the input stream from message body :) -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: JAXB Interface Issue

2013-05-14 Thread Willem jiang
Hi, I just found you are using equinox container. You can either put the jar into JDK endorse directory, or hack the properties file to make sure the com.sun.xml.internal.bind packages are not exported. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Problem from Java DSL to Spring DSL

2013-05-14 Thread Willem jiang
Hi, I think you cannot use the constant of Exchange.FILE_NAME directly in the Spring DSL. You should use the String directly like this camel:setHeader headerName=CamelFileName/ camel:constantrequest-${date:now:-MM-dd-HHmmssSSS}/camel:constant -- Willem Jiang Red Hat, Inc. FuseSource

Re: Sharing a solution for discussion

2013-05-14 Thread Willem jiang
Hi, I'm not sure why you chose camel-cxfrs component to accept the request. If you just want to process the form, you can use the camel-jetty or camel-servlet directly. It could be more easy to add the basic autentications supports out of box. -- Willem Jiang Red Hat, Inc. FuseSource is now

Re: Problem from Java DSL to Spring DSL

2013-05-14 Thread Willem jiang
Hi, Can you check if you put the camel-jaxb jar into your 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://willemjiang.blogspot.com/) (English) http

Re: Streaming a PDF from remote machine

2013-05-13 Thread Willem jiang
Are you using FTP to download the file? I'm not sure how the BufferedInputStream is involved. If the file is downloaded, the BufferedInputStream will never time out. If the BufferedInputStream has the timeout mechanism, I don't think you need to check if the File is download. -- Willem

Re: Slow startup of routes

2013-05-13 Thread Willem jiang
Hi, It looks like Camel takes lots of time to create a new Http endpoint, maybe you need to consider to do some caching work for it. BTW, whyou you need to se the soTimeout per endpoint. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: impliedDecimalSeparator not working for numbers starting with 0

2013-05-13 Thread Willem jiang
It looks we need to add a rounding mode when calling the divide method. The default value which is used in the divide method is RoundingMode.UNNECESSARY. You will get the exception when the divide method don't know how to round. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat

Re: impliedDecimalSeparator not working for numbers starting with 0

2013-05-13 Thread Willem jiang
I just found there are some bugs in the code, so I fill a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-6358 -- 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: Synchronous InOnly with new message

2013-05-10 Thread Willem jiang
What you want to do with the initial message body? If you don't need that body object anymore , you can set it to be 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

Re: Using camel-servlet with Multipart - unable to fetch the file

2013-05-09 Thread Willem jiang
Hi I suggest you remove the streamCaching() and to(log:servlet) from your route. Current streamCaching doesn't support to caching the Servlet request input stream. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog

Re: Using camel-servlet with Multipart - unable to fetch the file

2013-05-09 Thread Willem jiang
camel-jetty is using org.eclipse.jetty.servlets.MultiPartFilter to handle this multipart message. You may consider to configure the filter in your web.xml. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: file endpoint not reflecting the filename set in the header from smtp endpoint

2013-05-08 Thread Willem jiang
Can you show us your Camel 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://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com

Re: when an exception happens, I want to shut down the routes..

2013-05-08 Thread Willem jiang
Hi You can use ErrorHandler[1] with some codes here[2] [1]http://camel.apache.org/error-handler.html [2]http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com

Re: OT: Aggregation of billable data?

2013-04-25 Thread Willem jiang
I'm not sure if the billing service needs the data from the business analysis. If it doesn't need those data, it could be more easy by using wire-tap[1] [1]http://camel.apache.org/wire-tap.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com

<    4   5   6   7   8   9   10   11   12   13   >