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

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:

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: 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: 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 i

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: 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: 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: 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 |

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: Camel-Cxf Payload Mode - DefaultSEI not found

2013-06-14 Thread Willem jiang
Hi Lalit, camel-cxf will copy the message header (soapaction) to the http header automatically. camel-cxf just treats the header as part of HTTP protocol header. All you need to do is set the message header before sending the message to the camel-cxf producer. -- Willem Jiang Red Hat, Inc

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 写道: > Hi Experts, > > I am writing a PAYLOAD mode client and for the same I have defined following > blueprint: > > > > > http://www.osgi.org/xmlns/blueprint/v1.0.0"; >

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ý 写道: > It's been a while but now I had some time to investigate this problem again. > I think I have found the problem. > It's ca

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 is

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 Re

Re: how to pass an XML string to the unmarshal in the route definition

2013-06-04 Thread Willem jiang
]http://javaevangelist.blogspot.com/2011/12/java-tip-of-day-generic-jaxb-map-v.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.itey

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:

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: 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:

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:

Re: Camel without Spring. Limitations?

2013-06-03 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 写道: > Hi, I am trying to use Camel without Spring and I am wondering if there are > some limitations. I guess the configuration would be more complic

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.blogspo

Re: Performance Degradation due to Reverse DNS Lookups

2013-06-03 Thread Willem jiang
Hi, There are lots of http related components can provide the https connection, it could be helpful if you can tell us which http component you are using. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

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 写道: > 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. If t

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: 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:

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: SSL : Server Certs and Client certificate passthrough

2013-05-21 Thread Willem jiang
d let 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)

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: 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

Re: Enable disable routes at startup using Spring

2013-05-20 Thread Willem jiang
Hi, How did you setup the property component? I think you can not use the Spring property placeholder inside route definition. But here is an example you can take a look. http://camel.apache.org/schema/spring";> …… -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red

Re: Sharing a solution for discussion

2013-05-20 Thread Willem jiang
o 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

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: 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 pa

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: 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: 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: 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 i

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 request-${date:now:-MM-dd-HHmmssSSS} -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | 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: 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:

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: 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.

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: 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 Re

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: 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. -

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

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

2013-05-08 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: Using camel-servlet with Multipart - unable to fetch the file

2013-05-08 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.

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: 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: 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.fuse

Re: MESSAGE vs PAYLOAD data format

2013-04-24 Thread Willem jiang
Just Christian point out. If you want to set the message body for the PAYLOAD, it should not has soap envelop. It could be an xml element or java object (camel-cxf will marshal the object for you by default). -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: cxf producer needs a break?

2013-04-22 Thread Willem jiang
test case to the JIRA, then we can keep on digging the 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://j

Re: String to byte array TypeConverter uses hbase.util.Bytes?

2013-04-18 Thread Willem jiang
Did you have camel-hbase in your class path? Please remove it from your class path if it is 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

Re: CXF Bean, MultiPart -> Couldn't find MIME boundary

2013-04-18 Thread Willem jiang
le name is attachment id DataHandler data = in.getAttachment("image"); Then you should get the input stream from the data handler. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjian

Re: Camel Properties override

2013-04-17 Thread Willem jiang
Hi, I just checked the code of Camel Properties component, the last one will override the first one value. -- 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: consumer.bridgeErrorHandler=true on netty uri

2013-04-17 Thread Willem jiang
Hi, I'm not sure how did you find the option, I just check the netty page[1], there is no such a option. [1]http://camel.apache.org/netty.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

Re: Splitting XML into multiple separate bits and send out to webservices

2013-04-16 Thread Willem jiang
Why do you need to intercept those endpoints? Do you plan to use it in your unit test? -- 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 Use ProducerTemplate for testing secure CXF-WS?

2013-04-16 Thread Willem jiang
Hi I don't think you set the right payload message as soap body element is empty. BTW, if the request doesn't hit the route, you need to check the log file to see if there anything wrong on the ProducerTemplate side. -- Willem Jiang Red Hat, Inc. FuseSource is now part of R

Re: Quickfix to Direct message loss

2013-04-15 Thread Willem jiang
t the interval time a bit longer? In this way , I guess you will get few message lost. -- 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/) (En

Re: "Unresolved constraint in bundle activemq-broker.xml" Error in fresh 4.5.1 servicemix

2013-04-15 Thread Willem jiang
Did you have chance to install the ActiveMq feature ? -- 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: Quickfix to Direct message loss

2013-04-15 Thread Willem jiang
How did you inject the 10 millisecond gap? I cannot tell it form the the routes those you showed. -- 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: How to Use ProducerTemplate for testing secure CXF-WS?

2013-04-15 Thread Willem jiang
Hi, If you want to send customer headers through the ProducerTemplate, please check this[1] out. [1] http://camel.apache.org/cxf.html#CXF-HowtogetandsetSOAPheadersinPOJOmode -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http

Re: JMS Component - Customized messageConverter

2013-04-11 Thread Willem jiang
Do you want to pass the object to the constructor of myMessageConverter? Spring supports it out of box :) -- 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: Issue with Handling SoapFault

2013-04-11 Thread Willem jiang
to do that kind of work. I think that is why the SoapFault is wrapped with in a CamelExecutionException. -- 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.bl

Re: Is there a standard, DSL way to put message body in registry?

2013-04-11 Thread Willem jiang
If you put a object into the exchange properties, you can lookup it later in other processor. -- 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: Is there a way to programmatically get the the downstream endpoint from a custom Processor?

2013-04-11 Thread Willem jiang
ProducerTemplate can send the exchange to any other endpoints. Processor is decoupled with the camel route, I don't think you can get the downstream endpoint from the custom Processor itself. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesourc

Re: Issue with Handling SoapFault

2013-04-11 Thread Willem jiang
Hi Can you remove the first line of onException(Exception.class)? As you set the handled(true) it will not triage any other exception handler. -- 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 use a cxf consumer in camel

2013-04-10 Thread Willem Jiang
Did you try to set the operationName header? 发自我的 iPhone 在 2013-4-10,下午11:41,"valerian.merkling" 写道: > Hi ! > > I'm currently unable to win against this error : /The PayLoad elements > cannot fit with the message parts of the BindingOperation. Please check the > BindingOperation and PayLoadMes

Re: Facebook Component

2013-04-09 Thread Willem jiang
AFAIK, there is no Facebook component for camel. But you may consider to leverage Spring Social to save some 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

Re: CXF Example OSGi

2013-04-09 Thread Willem jiang
Just as Dan said we don't need that import, as the CXF bus will take care of it. @Christian, I will revisit this issue when I get some time today. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

Re: cxf producer needs a break?

2013-04-09 Thread Willem jiang
It looks like a bug of camel-cxf component. Can you submit a simple test case to the JIRA[1] so we can keep digging the issue. BTW, you can disable the async invocation by setting the option "synchronous=false" [1]http://issues.apache.org/jira/browse/CAMEL -- Willem Jiang Re

Re: Camel and osgi - component not found

2013-04-08 Thread Willem jiang
Hi, Camel supports OSGi out of box. How did you deploy you camel route? camel-core will try to locate the component from the OSGi bundle, if you deploy the camel-core bundle and camel-quartz bundle, the camel-qurtz component can be found without doing any additional work. -- Willem Jiang

Re: One processor for multiple camelContext

2013-04-02 Thread Willem jiang
Hi, Please check out my comment 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: Is the result of this builder reusable? XQueryBuilder.xquery("//foo");

2013-04-02 Thread Willem jiang
I think you can use the XQueryBuilder in the Processor just like you showed. If you want to call the evaluateAsString multiple times, you need to make sure the message body is reread able. You can convert the message body into String before you process it in your processor. -- Willem Jiang

Re: Camle sql error

2013-04-02 Thread Willem jiang
Hi You didn't specify the right header for the . It should be start with "sql:xxx" not the sql string that you want to send to. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blo

Re: recursion with Camel ?

2013-04-02 Thread Willem jiang
Hi, I'm not quite understand you question. Do you want to write a unit test or you just want to call this process in the camel route with loop? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

Re: Load route from XML Exception

2013-04-01 Thread Willem jiang
Hi, Why did you need to load CXF internal API to load the routeContext? Can yo just use SpringCamelContext to load the camel routes? BTW, can you pass the routeContext.xml here? It could be much easier for us to reproduce the error by trying your test case. -- Willem Jiang Red Hat, Inc

Re: How many Escape characters in Camel

2013-03-29 Thread Willem jiang
If you are using the URI inside the XML, you need to check change "&" to "&". It is same with the "<" and ">". -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.

Re: Need help with cxfrs component, actually RESTful service consumption, in general

2013-03-28 Thread Willem jiang
/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsProducerTest.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

Re: Handle multiple exceptions in scala dsl

2013-03-28 Thread Willem jiang
builder.onException(Class[MyFunctionalException], Class[MyTechnicalException]).to("mock:error").handled(true) -- 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.bl

Re: CamelSpringJUnit4ClassRunner vs CamelSpringTestSupport

2013-03-27 Thread Willem jiang
I think the document means some pre or post camel context test support setting up. Just like the you cannot call the assert* method if you are using SpringJUnitClassRunner, you can consider to use the static imports to use the method in CamelSpringTestSupport. -- Willem Jiang Red Hat, Inc

Re: Handle multiple exceptions in scala dsl

2013-03-27 Thread Willem jiang
Hi I just filled a JIRA[1] for it, and will try to fix it today. [1]https://issues.apache.org/jira/browse/CAMEL-6221 -- 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 Context modularisation

2013-03-27 Thread Willem jiang
Hi RouteContext can do the job that you want to do. Here is an Example[1] for how to use it. [1]http://camel.apache.org/how-do-i-import-routes-from-other-xml-files.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com

Re: My camel-CXF tests fails, if they run together

2013-03-26 Thread Willem jiang
Yeah, I think the better solution could be we can let the CamelBlueprintTestSupport support to create the context per test class. I will work on it today. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http

Re: Why such unit test does not work while it works fine with SOAP UI

2013-03-26 Thread Willem jiang
Hi Charles, It is not related the SOAP Action. From the stack trace I can tell you may not pass a right OperationName header. BTW, you can set the defaultOperationName on the CXFEndpointBean or CXFEndpoint URI. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Problem with mqtt component

2013-03-25 Thread Willem jiang
Hi, Can you show us the code of the myProcessor? I just checked the code of camel-mqtt producer, it will to send the message to mqtt server unless the it can get the byte array from the message body. Please make sure the message body is reread able. -- Willem Jiang Red Hat, Inc. FuseSource

Re: Doc about camel, cxf and WS-Discovery

2013-03-21 Thread Willem jiang
Hi, As the WS-Discovery works as a service, I think you just need to make sure the two jars are wrapped rightly. Please let us know if you find anything wrong, I'd like to spend some time to get all WS-Discovery things work :) -- Willem Jiang Red Hat, Inc. FuseSource is now part of Re

Re: oracle.jms.AQjmsFactory and javax.sql.DataSource

2013-03-19 Thread Willem jiang
Hi, Did you have any Spring configuration which works? It looks like a configuration issue instead of camel 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

Re: Populate message with BeanInvocation

2013-03-18 Thread Willem jiang
It could be done by writing a custom TypeConverter[1], and you can turn the message body into BeanInvocation like this from(xxx).setBody(body(BeanInvocation.class)) [1] http://camel.apache.org/type-converter.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Camel Aggregator Strategy Question

2013-03-18 Thread Willem jiang
("file:/csv3/").to("direct:merge"); from("direct:merge").aggregate(…) -- 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/) (Engl

Re: ClassNotFoundException: org.apache.xalan.xsltc.trax.DOM2SAX

2013-03-18 Thread Willem jiang
I think Smith should try to use the latest Camel 2.10.4, there are some CxfPayloadConverter related fix recently. -- 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: routing private chat xmpp messages to camel route

2013-03-17 Thread Willem jiang
Hi, I think you can change you application to be more dynamically. You should have a control route which accept the request in the public room and if there is a new private chat, you need to create a new route for it. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-16 Thread Willem jiang
Hi, I not think there is something wrong which could prevent StreamCaching working as we expect. Do you mind create a simple unit test case to produce the error that you meet? I need the case to help me dig the issue. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http

Re: zip file best practices

2013-03-16 Thread Willem jiang
create the Iterator of ZipEntry inside the ZipFile DataFormat. I will revisit the patch again and move the code to camel-zipfile module. -- 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

Re: Camel and headers

2013-03-16 Thread Willem jiang
-HowtogetandsetSOAPheadersinPAYLOADmode -- 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

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