Re: Camel 2.14/Netty: How to add ByteArrayDecoder to ServerChannelPipeline?

2015-07-01 Thread Willem.Jiang
There are quit different change between the Netty3.x and Netty4.x. That is why we create a new camel component camel-netty4[1] for it. So I think you can just need to change the camel-netty to camel-netty4 and use the scheme netty4 in your camel route. -- View this message in context: http://c

Re: Issue using multiple services broadcast via JettyComponent

2015-05-30 Thread Willem.Jiang
FYI, The stack over flow issue was addressed by CAMEL-8036. As we setup the security handler directly on the server, it is impossible to set up two different security handler on the camel jetty endpoints which share the same Jetty component(Jetty server). -- View this message in context: http:/

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-15 Thread Willem.Jiang
I think you may need to find another way to pull the sub directory instead of pulling root directory directly. -- View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-2-15-1-return-ftp-error-code-421-tp5765272p5765843.html Sent from the Camel - Users mailing list archive at

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-15 Thread Willem.Jiang
The first connection is used to check if the ftp server is still alive before starting to pull the directory. If the RemoteFileConsumer cannot connect to the server, it just return the pulling process and wait for another pulling. -- View this message in context: http://camel.465427.n5.nabble.c

Re: [REST DSL] Camel 2.14.1-SNAPSHOT : How to configure SSL on jetty component ?

2014-12-09 Thread Willem.Jiang
Hi, Did you try to setup the JettyComponent first just like this? JettyEndpoint doesn't support to set the sslSocketConnectors. If you want to set the sslContextParameters you need to set it just like this -- View this message in context: http://camel.465427.n5.nabble.com/REST-DSL-Camel-2-1

Re: Looking for simple http request example with cxfrs in java

2014-08-10 Thread Willem.Jiang
Hi The stack track is not based on the code that you showed. Please make sure you setup the rsClientProxy bean rightly just like this[1] [1]https://camel.apache.org/cxfrs.html#CXFRS-HowtoconfiguretheRESTendpointinCamel Willem -- View this message in context: http://camel.465427.n5.nabble.com

Re: HTTP re-sending

2014-07-27 Thread Willem.Jiang
Hi, You can take a look at the onException DSL[1]. You can redirect the exchange to a resending route if you want to resend message. [1]http://camel.apache.org/exception-clause.html -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-re-sending-tp5754474p5754482.html Sent

Re: Chunking issue with http producer

2014-07-25 Thread Willem.Jiang
Hi Bernard, You are right, the patch has nothing to do with if the http endpoint is bridge endpoint or not. I created a JIRA[1] to keep track of this useful feature. [1]https://issues.apache.org/jira/browse/CAMEL-7638 Regards, Willem -- View this message in context: http://camel.465427.n5.

Re: New to Camel and also needing to come up to speed on Java again

2014-06-22 Thread Willem.Jiang
Answer for Q1, you can write a Processor to setup the invocation based on the Web Service request. You can find some example on how to prepare the invocation parameter here[1]. Answer for Q2, camel-mail use the Java mail to talk to the mail server, I think it should be find if the server is Excha

Re: XMLConstants.FEATURE_SECURE_PROCESSING feature setting in jboss-fuse-6.1

2014-04-30 Thread Willem.Jiang
Yes, we changed the default setting in Camel-2.12.x to enforce the security the setting by default. You can override the setting just as Grzegorz suggested. -- View this message in context: http://camel.465427.n5.nabble.com/XMLConstants-FEATURE-SECURE-PROCESSING-feature-setting-in-jboss-fuse-6-

Re: Camel CXF Proxy with WS-Security

2014-03-24 Thread Willem.Jiang
If you put the message body into out message, you need to copy the in message headers to the out message header at the same time. camel-cxf cannot take the message headers from the in message and message body from the out message. -- View this message in context: http://camel.465427.n5.nabble.c

Re: JavaFX + Spring + Camel + Maven

2014-03-18 Thread Willem.Jiang
Thanks for sharing the solution with us. Do you to need wrap up a new application jar for JavaFX to use? Why does the camel-spring.jar be used directly? -- View this message in context: http://camel.465427.n5.nabble.com/JavaFX-Spring-Camel-Maven-tp5749039p5749076.html Sent from the Camel - User

Re: JMS Message Expiration period

2014-03-18 Thread Willem.Jiang
"timeToLive" is the uri option, you can set it on the jms endpoint which you want to route the message from camel route to jms broker. Willem -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Message-Expiration-period-tp5749032p5749075.html Sent from the Camel - Users mail

Re: Camel CXF Endpoint Performance - Threading

2014-03-18 Thread Willem.Jiang
Hi, The AsyncProcessorHelper.proccess() method just provides a sync processing invocation which is based on the Async API. I need to know some detail about your route which makes camel does that change. It looks like you are using direct endpoint to route the message to next camel route, as the

Re: camel-cxf , return complex type object problem

2014-01-27 Thread Willem.Jiang
Hi, For the CXF invocation, it need to return not only the invocation result, but also some out parameters, so we use a Array or List to story these results. If you just set the body with a simple object, camel-cxf can wrap it into a List, but if you put a list as a return object, camel will not

Re: Unit Testing Question

2014-01-25 Thread Willem.Jiang
Can you double check the camel jars in your class path to see if there is another version of camel jar in your class path? BTW, can you tell us which ClassDef is not found? -- View this message in context: http://camel.465427.n5.nabble.com/Unit-Testing-Question-tp5745966p5746476.html Sent fro

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

2014-01-06 Thread Willem.Jiang
You set a wrong url, please remove the option of dataFormat=MESSAGE because you just invocation the web service with a string instead of SOAP message output stream. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-call-a-web-service-with-no-parameters-via-a-producerT

Re: Message properties missing after Camel - rabbitmq routing

2014-01-03 Thread Willem.Jiang
The correlation_id and reply_to header are removed in You can find more information about the rabbitmq.* header here[1] [1]https://github.com/apache/camel/blob/master/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQConstants.java -- View this message in co

Re: SOAP Web service Calling using camel.

2013-12-30 Thread Willem.Jiang
Current camel-cxf doesn't support the JaxWsDynamicClientFactory out of box, so you need to generate the SEI yourself before calling the service. -- View this message in context: http://camel.465427.n5.nabble.com/SOAP-Web-service-Calling-using-camel-tp5745180p5745372.html Sent from the Camel - U

Re: problems with route cxf -> netty ( netty as tcp socket server)

2013-12-12 Thread Willem.Jiang
Here is a thread[1] in the stackoverflow which calls about it. [1]http://stackoverflow.com/questions/20421767/problems-with-mina-netty-tcp-endpoint-in-camel-tcp-socket-server-endpoint/ -- View this message in context: http://camel.465427.n5.nabble.com/problems-with-route-cxf-netty-netty-as-tcp

Re: XQuery (camel-saxon)

2013-11-14 Thread Willem.Jiang
XQuery suppose to set the result type like this from("direct:start").xquery("concat('mock:foo.', /person/@city)", String.class); The default result type is DOM.class. -- View this message in context: http://camel.465427.n5.nabble.com/XQuery-camel-saxon-tp5743206p5743251.html Sent from the

Re: splitting xml failed when running on tomcat

2013-09-30 Thread Willem.Jiang
As you are using splitter you have to aggregator to put the response together. -- View this message in context: http://camel.465427.n5.nabble.com/splitting-xml-failed-when-running-on-tomcat-tp5740407p5740482.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Messages "disappear" if fabric endpoint resolves to null / blank

2013-08-19 Thread Willem.Jiang
You should get an exception if the fabric registry entry is not exist. Can you double check the log to see if Camel throws the exception out? -- View this message in context: http://camel.465427.n5.nabble.com/Messages-disappear-if-fabric-endpoint-resolves-to-null-blank-tp5733683p5737512.html Se

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

2013-05-22 Thread Willem.Jiang
Hi I just have some time to revisit this issue and found you'd better to leverage the configure admin service which suppose to related the bundle when the configuration is changed. It will more powerful then you just pass the properties through the OSGi service. Willem -- View this message in

Re: Appending/Not Appending paths

2013-05-09 Thread Willem.Jiang
Hi, If you don't want the "path1/path2" to be added, you can set the bridgeEndpoint option to be false, otherwise you should et the option to be true. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Appending-Not-Appending-paths-tp5732231p5732241.html Sent from the

Re: cxf producer needs a break?

2013-04-17 Thread Willem.Jiang
camel-cxf is using the asyn invocation by default, if you add the synchronous=true , it will use the synchronous invocation instead. Willem -- View this message in context: http://camel.465427.n5.nabble.com/cxf-producer-needs-a-break-tp5730612p5731050.html Sent from the Camel - Users mailing

Re: zip file best practices

2013-03-12 Thread Willem.Jiang
I just have a chance to check the code, it is not a new component. I think we can treat it as an expression, which can help the splitter to build a Iterator from the uncompressed stream. And it is mainly used with split DSL. Willem -- View this message in context: http://camel.465427.n5.nabble

Re: Possible bug with multicast shareUnitOfWork

2013-01-23 Thread Willem.Jiang
Hi, I can reproduce this kind of error in the trunk by adding a simple unit test as you said. If I remove the shareUnitOfWork setting, the error handler can get expect numbers messages. So I just fill a JIRA CAMEL-6005[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-6005 Willem --

Re: Found a bug in overriding URI using camel-http4 + documentation problem

2013-01-23 Thread Willem.Jiang
Hi, I just went through the unit test, I just found there is some miss understand between the URI that http4 endpoint use and the URI that the http4 producer use. As you know there are more than one component which can send the request to the HTTP server, such as camel-http, camel-http4 and camel

Re: camel-ftp error

2012-12-27 Thread Willem.Jiang
Hi, You are using camel-ftp-2.10.0.fuse-71-047.jar with the camel-core-2.9.0.fuse-7-061. Please make sure you are using the same version of camel when start the camel context. Willem -- View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-error-tp5724614p5724617.html Sent

Re: Camel-CXF strips all the xml elemets and attributes and send only data with whitespace

2012-11-01 Thread Willem.Jiang
Hi, It looks like you can get a right message body from camel from the exchange. Can you just pass the elements into converter without use clone, like this ? String documentString = converter.toString(inElements.get(0), exchange); Willem -- View this message in context: http://camel.46542

Re: Call web service from Camel

2012-11-01 Thread Willem.Jiang
Hi, >From the routes those you showed us, I can see you need go through the camel-cxf wiki[1]. It shows you how to consume or produce the message through the camel-cxf component. [1]http://camel.apache.org/cxf.html Willem -- View this message in context: http://camel.465427.n5.nabble.com/Cal

Re: Camel Bean Component Behaviour in case of an InOut exchange

2012-10-31 Thread Willem.Jiang
Hi, How did you send the request to you queue? Did you use ProducerTemplate or just another route ? BTW, you need to consider to use camel 2.10.2 which is latest stable release of Camel. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Bean-Component-Behaviour-

Re: aggregator question: how do I send reply back to the requestor

2012-10-14 Thread Willem.Jiang
Hi, Did you have any chance to take a look at the loan broker example[1]? Basically you just need to setup right aggregation strategy to put the response message together. [1]http://camel.apache.org/loan-broker-example.html Willem -- View this message in context: http://camel.465427.n5.nabbl

Re: How to mock endpoints taking lots of different query parameters values?

2012-09-20 Thread Willem.Jiang
Here is the MockComponent that I mentioned, you just need to register it into the camel context, then you can you get what you need :) package org.apache.camel.component.mock; import java.util.HashMap; import java.util.Map; import org.apache.camel.Endpoint; import org.apache.camel.impl.DefaultCo

Re: CXF component fails to marshal SOAP fault details

2012-09-05 Thread Willem.Jiang
In the PAYLOAD dataformat, you need to marshal the SOAP fault detail yourself, like this[1] In the MESSAGE dataformat, you need to marshal the whole SOAP fault yourself, as camel-cxf just redirect the input stream itself. [1]https://svn.apache.org/repos/asf/camel/trunk/camel/components/camel-cxf/s

Re: cxf endpoint with 2004/08 ws-addressing

2012-07-09 Thread Willem.Jiang
Hi, You can set the request context with the below code in your processor before routing the message the the cxf endpoint. from("cxf:xxx").process(new Processor() { public void process(final Exchange exchange) { Map requestContext = new HashMap(); requestContext.put("javax.xml.ws.addr

Re: Graceful shutdown not graceful at all

2012-05-15 Thread Willem.Jiang
You are using ThreadPoolTaskExecutor from spring and JmsComponent doesn't manage the TaskExecutor life cycle itself. If you want to shutdown the whole application gracefully, you need to call the ApplicationContext destroy method. -- View this message in context: http://camel.465427.n5.nabble.

Re: Error using apache-cxf w. Camel 2.9.1

2012-03-13 Thread Willem.Jiang
Just one comment on the camel-cxf behavior change of Camel 2.9.1. CxfProducer create a new client when it is started to avoid the memory leak if the customer create the route dynamically. I'm not sure if it is relates to test code that you have, can you show us the whole test example. Willem -

Re: npe in camel 2.9.1 validator

2012-03-07 Thread Willem.Jiang
If you put the schema into the test/resources directory, it will not be wrapped into the more jar. You may need to add the test jar dependency like this com.example my-artifact test-jar test Willem -- View this message in context: http://camel.465427.n5.nabble.com/npe-in-camel-2-9-1-validator-t

Re: camel and spring in a webapp

2012-02-09 Thread Willem.Jiang
Hi, Camel does not try to load the annotated Converter from package of 'org.apache.camel.converter' since Camel 2.8.0. Can you check if you wrap the other version of camel into your war ? -- View this message in context: http://camel.465427.n5.nabble.com/camel-and-spring-in-a-webapp-tp5469916p5

Re: Send message to cxf-endpoint with @Produce

2012-02-03 Thread Willem.Jiang
Hi, Can I have a look at your SEI class net.myservice.myserviceuserdata.ServiceMyServiceUserData? It looks like CXF client is try to invoke the service with unwrapped parameters. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Send-message-to-cxf-endpoint-with-Produce

Re: GPG encryption in camel 2.8.3

2012-02-01 Thread Willem.Jiang
Hi, I think you made a mistake of the route configure code and the processor code. The Java DSL which you used to define the route is just a configuration code, it tell camel to build the route as you want, they are not the processing code which camel uses in the runtime. If you want to camel con

Re: unmarshalling but not marshalling?

2012-01-18 Thread Willem.Jiang
I think we need to take a look at your data format code. -- View this message in context: http://camel.465427.n5.nabble.com/unmarshalling-but-not-marshalling-tp5152663p5156527.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cxf service publish address problem

2011-10-31 Thread Willem.Jiang
As you are using the http jetty transport, when you set the address to be "http://0.0.0.0:8890/ProcessPrescriptionOrder";, you should be able to get the wsdl with the url "http://localhost:8890/ProcessPrescriptionOrder"。 0.0.0.0 just let Jetty to listen to all the network interface. Willem -- Vi

Re: Missing "detail" element in SOAP fault

2011-10-23 Thread Willem.Jiang
This issue should be fixed by CAMEL-4570[1] [1] https://issues.apache.org/jira/browse/CAMEL-4570 -- View this message in context: http://camel.465427.n5.nabble.com/Missing-detail-element-in-SOAP-fault-tp4913512p4931073.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Missing "detail" element in SOAP fault

2011-10-19 Thread Willem.Jiang
It looks like you are using the camel-http component to send the request to the server. Can you show us you camel route ? -- View this message in context: http://camel.465427.n5.nabble.com/Missing-detail-element-in-SOAP-fault-tp4913512p4920338.html Sent from the Camel - Users mailing list archiv

Re: Bindy CSV marshal does not properly quote values defined by the CsvRecord separator

2011-09-15 Thread Willem.Jiang
Hi, After checking the code of BindyCsvFactory, I found the it only support the separator to be char not a string. Maybe we should add some note's on the camel-bindy wiki page. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-CSV-marshal-does-not-properly-quote-v

Re: Can't get JAAS working for EJB 3.0(on JBoss) while routing.

2011-09-14 Thread Willem.Jiang
I just did some test on the camel-ejb module.[1] It is possible to lookup the spring beans if you just set up the jndi context on the ejb object. you can find the reference here[2]. [1]http://svn.apache.org/viewvc?rev=1170483&view=rev [2]https://svn.apache.org/repos/asf/camel/trunk/components/cam

Re: WebService problem after adding ...

2011-07-12 Thread Willem.Jiang
Which version of CXF are you using? It looks like you have multiple version of CXF jars in your class path. -- View this message in context: http://camel.465427.n5.nabble.com/WebService-problem-after-adding-tp4578410p4581491.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ServiceMix 4.3.1 and Camel 2.8-SNAPSHOT

2011-07-07 Thread Willem.Jiang
Can you not ask the same question across the topics ? It's very annoying and can't help you to get the answer more quickly. Please be patient. -- View this message in context: http://camel.465427.n5.nabble.com/ServiceMix-4-3-1-and-Camel-2-8-SNAPSHOT-tp4553864p4563603.html Sent from the Camel -

Re: I search example where Camel return Web Service

2011-07-06 Thread Willem.Jiang
No , you don't need it. CXF supports the build the service module from the interface, so you don't need to provide the WSDL file for the camel-cxf endpoint. -- View this message in context: http://camel.465427.n5.nabble.com/I-search-example-where-Camel-return-Web-Service-tp4557105p4559801.html S

Re: are there chinese documents with camel

2011-06-03 Thread Willem.Jiang
I wrote some pieces of Chinese articles to introduce some basic concepts of Camel. You can find them in my Chinese blog. [1]http://jnn.iteye.com/category/27938 Willem -- View this message in context: http://camel.465427.n5.nabble.com/are-there-chinese-documents-with-camel-tp4447206p4450530.htm

Re: set jms reply to in message header

2011-05-23 Thread Willem.Jiang
Hi The header name should be "JMSReplyTo". Willem -- View this message in context: http://camel.465427.n5.nabble.com/set-jms-reply-to-in-message-header-tp4420767p4420786.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Multiple persistence-unit

2011-04-24 Thread Willem.Jiang
Hi, You can define the different entityManagerFactory for different jpa component instance like this http://camel.apache.org/schema/spring";>

Re: Strange behavior with simple language in camel route

2011-04-13 Thread Willem.Jiang
Hi, If you want to use the properties component in simple language, the syntax is liking this ${properties:[locations]:key} Willem -- View this message in context: http://camel.465427.n5.nabble.com/Strange-behavior-with-simple-language-in-camel-route-tp3200894p4300441.html Sent from the Camel

Re: Cometd component

2011-04-13 Thread Willem.Jiang
Hi Instead of using the customer processor, the route can use the convertBodyTo directly. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Cometd-component-tp4299174p4300424.html Sent from the Camel - Users mailing list archive at

Re: addTypeConverter does not clear misses in BaseTypeConverterRegistry

2011-04-07 Thread Willem.Jiang
Hi , Good catch of the issue of misses map. We should updated if a new TypeConverter is added. Please feel free to create a JIRA for it, We love the contribution :) Can you give me more detail about the webstart issue of the AnnotationTypeConverterLoader? What kind of error that you web start c

Re: Best Practice fro Thread Safe processor

2011-04-07 Thread Willem.Jiang
As Camel has a async process module, you can't know if the processors are called in a single thread. If you are using the thread local to store the states, it may be massed up. My suggestion is store the states information into the Exchange, and Camel will make sure it is processed rightly. Will

Re: Missing Stack Trace when Handling SOAP Fault from a CXF Endpoint

2011-04-07 Thread Willem.Jiang
Just a quick note for CXF server return the stack trace back to the client. If you are using SOAP 11 , CXF can put the stack trace into the fault message if you enable the option faultStackTraceEnabled like this

Re: camel-example-cxf pom.xml

2011-04-05 Thread Willem.Jiang
I just cleaned up the file which name has 2.8-SNAPSHOT in my ~/.m2/ and start to run 'mvn clean install' from examples/camel-example-cxf and can't get the error that you reported again. Willem -- View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp426867

Re: Newbie question regarding Comet/Jetty

2011-03-22 Thread Willem.Jiang
I'm not sure how did you remove the Jetty endpoint? >From the camel route configuration, I can just tell that the Jetty endpoint is used to accept the request from http://localhost:8081/msgs, just like the file endpoint does. If you want to remove the Jetty endpoint, you need remove the this whole

Re: Add a Processor to a route at runtime

2011-03-22 Thread Willem.Jiang
Can I know why you want to add Processor into the route? I don't think current Camel provides that kind of API you want. You may consider to use this handy Intercept[1] of Camel instead of add the processor to the route. [1]http://camel.apache.org/intercept.html Willem JacobS wrote: > > Hi >

Re: Documentation for automatic marshalling and unmarshalling

2011-03-22 Thread Willem.Jiang
Hi, There is a FallbackTypeConverter[1] will help you do this kind of job of the message body's class is annotated with JAXB annotations. If you put the camel-jaxb into your class path, this fallback type converter will be used by default. If you don't want to use it , you need to convert the mes

Re: spring xml - shutdown strategy timeout

2011-03-22 Thread Willem.Jiang
No, CamelContextFactoryBean just lookup the type bean like this. ShutdownStrategy shutdownStrategy = getBeanForType(ShutdownStrategy.class); So the bean id could be anything :) Willem preben wrote: > > Just create a spring bean : > > > > > id is important here s

Re: camel-restlet inside servlet container

2011-03-20 Thread Willem.Jiang
I just a have a quick look at camel RestletComponent and camel RestletProducer. You can extends RestletEndpoint and RestletProducer to replay the CamelRestlet one with your RestletServlet. Can you tell me what you want to do in your RestletServlet? Maybe we can find some common processor to add to

Re: Object routing

2011-03-20 Thread Willem.Jiang
Hi, You could use the Direct endpoint to do think kind of job. from("direct:start").to("jms:queue:test"); And you can use template to send the object to "direct:start", and you can add customer processor between the "direct:start" and "jms:queue:test" endpoints. Willem -- View this message in c

Re: Program never terminates due to simple connection creation

2011-03-20 Thread Willem.Jiang
Hi, I can see any route definition in your code, so when you start or stop the camel context , it do nothing on the JMS ConnectionFactory. Because the camel context start or stop just delegates the calls into the Camel service object, which could be a route or an endpoint. Willem -- View this m

Re: How to Get SOAP Response from the Last Camel Processor in the Route?

2011-03-20 Thread Willem.Jiang
Hi, Which version of Camel are you using? It could be helpful if you post your endProcessor code. Willem -- View this message in context: http://camel.465427.n5.nabble.com/How-to-Get-SOAP-Response-from-the-Last-Camel-Processor-in-the-Route-tp4127850p4165310.html Sent from the Camel - Users mai

Re: response from the exposed cxfendpoint is null

2011-03-16 Thread Willem.Jiang
Hi, I don't know why you call the below code in your processor. msgList[1].toString() If your request message only one parameter, the msgList should have only one element. If you want to get the result, you should check it in the processor after .to("cxf:bean"); Willem TJ wrote: > > when i se

Re: Using embedded Jetty to proxy CXF

2011-03-15 Thread Willem.Jiang
You can use the Camel transport[1][2] of CXF to delegate the transport to camel-jetty like this. But it needs addition spring configuration configuration on the cxf endpoint. [1]http://camel.apache.org/camel-transport-for-cxf.html [2]http://camel.apache.org/cxf-example.html#CXFExample-CXFexamplef

Re: [PROBLEM] GenericFileOperationFailedException: Cannot rename file

2011-03-06 Thread Willem.Jiang
What kind of exception that you service throw? It looks like the File can't be renamed if camel is still using that file. Please subscribe the users@camel.apache.org before you start a new thread in nabble. Willem -- View this message in context: http://camel.465427.n5.nabble.com/PROBLEM-Generi

Re: Mail component parse mailbox file Spring example?

2011-03-06 Thread Willem.Jiang
Hi Bill, I'm not sure what's your mailbox files like. If you can turn the mailbox file into camel-mail URI, I think you will have no trouble to use camel to do the work. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Mail-component-parse-mailbox-file-Spring-example-tp

Re: InOut exchanges require synchronized clocks?

2011-03-06 Thread Willem.Jiang
Hi Bryan, It looks more like a ActiveMQ issue than Camel. Can you send this mail to the us...@activemq.apache.org ? Willem -- View this message in context: http://camel.465427.n5.nabble.com/InOut-exchanges-require-synchronized-clocks-tp3411881p3411964.html Sent from the Camel - Users mailing l

Re: cxf with multiple methods in the interface

2011-03-06 Thread Willem.Jiang
Hi , You need to do the content base routing according to the operation name. Here is an example[1] for you. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerTest.java Gabor Dolla wrote: > > sorry but half of my mes

Re: Problem with multiple CXF services using the same https port

2011-03-03 Thread Willem.Jiang
Hi Christian, I cannot see any code inside the {code}{code} block. And I didn't get your question. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-multiple-CXF-services-using-the-same-https-port-tp3379301p3408939.html Sent from the Camel - Users mailing li

Re: How to set receiveBufferSizePredictor option in Camel-netty udp consumer server?

2011-01-31 Thread Willem.Jiang
Hi, After checking the code, I didn't find a way to receiveBufferSizePredictor option either. Can you create a JIRA and submit a test case with it? Then we will dig the issue later. Willem -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-receiveBufferSizePredictor-

Re: Delay() causes unexpected results

2011-01-25 Thread Willem.Jiang
Please call the end() after you call the delay() function, then you will get same result as not using delay() function. As you know delay is a delegate processor, end() will tell him there is no other processor it should be delegated to call. Willem marbor wrote: > > Hi all: > > I have a DS

Re: process several instances of one route in parallel

2010-11-23 Thread Willem.Jiang
Hi, Can I have a look at your route configure? What's the stack trace when you add definition ? I can tell nothing until you answer my upper questions. -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English)

Re: How much memory usage is acceptable?

2010-11-14 Thread Willem.Jiang
Current Camel doesn't have this kind of tools out of box. I'm afraid you need to use other JProfile tools to dig the issue yourself. -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javae

Re: Camel REST

2010-10-16 Thread Willem.Jiang
Which version of Camel are you using? Did you deploy the camel application in OSGi platform? Can you try to add below lines into your config ? It which will let CXF load the module explicitly. Willem -- Open Source Integration: http://www.fusesource.

Re: Thread.sleep() problem

2010-10-14 Thread Willem.Jiang
There is no Thread.sleep() call in the camel-snmp. So I guess you are telling the ScheduledPollConsumer's delay time by setting the delay option from URI. You can find more information about camel-snmp component here[1] [1]http://camel.apache.org/snmp.html Willem ganges_k wrote: > > Hi, > >

Re: configure failover for weblogic jms queue using jndi template

2010-10-10 Thread Willem.Jiang
Cool, please post your solution to the mailing list if you find a way to do this job. Willem vvchoy wrote: > > Hi, > Thanks for your suggestion. I also find out that weblogic client (both > thin and full jar) does not seem to support the single server recovery > scenario (though it supports th

Re: How to convert Camel message to soap message

2010-10-10 Thread Willem.Jiang
If the camel message body is an inputStream, you can use the javax.xml.soap.MessageFactory to create a SOAPMessage instance for you. Willem -- View this message in context: http://camel.465427.n5.nabble.com/How-to-convert-Camel-message-to-soap-message-tp3205888p3206334.html Sent from the Camel

Re: How to handle the SOAP Header

2010-10-10 Thread Willem.Jiang
Hi, If you already have a soap message which has the right soap header information , you can just use the camel-http[1] component to invoke the external service. If you want to do other WS* message handling work, or create the SOAP message yourself, you can leverage camel-cxf component. [1]http:

Re: Odd route start behavior after context is started

2010-09-16 Thread Willem.Jiang
FYI, I just committed a patch for this issue, please check the camel code or latest snapshot for it. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Odd-route-start-behavior-after-context-is-started-tp2835464p2842016.html Sent from the Camel - Users mailing list archiv

Re: Some camel questions?

2010-09-13 Thread Willem.Jiang
>From the stack trace, I can see it's javax.xml.xpath.XPathExpressionException. So I doubt it could be you XPathExpressionException. Willem -- View this message in context: http://camel.465427.n5.nabble.com/Some-camel-questions-tp2806185p2838558.html Sent from the Camel - Users mailing list ar

Re: CXFRS consumers - is there a better way?

2010-09-10 Thread Willem.Jiang
Current cxfbeans doesn't support to configure the provider as you do in the cxf:rsServer. I think we can introduce some kind of spring configuration to it. Please feel free to create a JIRA for it. -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-consumers-is-there-a-bett

Re: Some camel questions?

2010-09-09 Thread Willem.Jiang
which part is not working, and can you show us the stack trace? btw, you mail is appear in the u...@camel.apache.org. Please subscribe the mail list first. -- View this message in context: http://camel.465427.n5.nabble.com/Some-camel-questions-tp2806185p2827116.html Sent from the Camel - Users

Re: Using Camel-ftp to write file with windows-1252 encoding

2010-09-06 Thread Willem.Jiang
Did you try to set the exchange.setProperty(Exchange.CHARSET_NAME, "windows-1252") like this? And I need to check your route to see if there is anything that I missed. Willem Roland Villemoes wrote: > > Hi > > I am using Camel-2.2.0 and camel-ftp-2.2.0. > > The issue is that i am using cam

Re: TypeConverters in OSGi

2010-09-06 Thread Willem.Jiang
How did you create the camel context? camel-core-osgi is packed into camel-spring as the private package, so you don't need to deploy it into OSGi platform. Willem bstanoje wrote: > > Hi, > > since moving to camel-2.4.0 I'm not able to use the TypeConverters inside > the OSGi runtime (equinox

Re: Problem 2 when compiling sample from Camel package

2010-07-29 Thread Willem.Jiang
I just create a JIRA[1] and committed a quick fix for it. Please verify it in Camel 2.5.0-SNAPSHOT. [1]https://issues.apache.org/activemq/browse/CAMEL-3010 Willem -- Apache Camel, Apache CXF committer Open Source Integration http://www.fusesource.com Blog http://

Re: How to evaluate an expression/substitute a variable for building URI's at runtime ?

2010-07-20 Thread Willem.Jiang
It could be much easier if you implement a DataFormat[1] yourself. Then you could pass the "CONVERT_BODY_TO_RSSURL" as the message header and tell the DataFormat to do the job for you. [1]https://cwiki.apache.org/CAMEL/data-format.html Willem -- Apache Camel, Apac

Re: Testing using Pax Exam

2010-07-14 Thread Willem.Jiang
Maybe you can consider to put the activemq-broker file into your unit test test resource directory. Pax Exam should have no trouble to load the file from the test resource directory. Willem -- Apache Camel, Apache CXF committer Open SOA http://www.fusesource.com Bl

Re: Reg selective consumer for a Pub-Sub pattern

2010-07-11 Thread Willem.Jiang
Camel has the multicast pattern[1], I think you can use it directly. BTW, you need to subscribe the users@camel.apache.org mailing list to get more quicker response. [1]http://camel.apache.org/multicast.html Willem -- Apache Camel, Apache CXF committer Open SOA

Re: [CxfBinding] Document Style ?

2010-07-09 Thread Willem.Jiang
Can I have a look at your SEI? I mean the "OfferService". Does it use JAXWS annotation ? If I remember right CXF will try to use the Document-Literal Wrapped by default. Willem -- Apache Camel, Apache CXF committer Open SOA http://www.fusesource.com Blog http://

Re: Resequence Stream ConcurrentModificationException

2010-07-04 Thread Willem.Jiang
Which version of Camel are you using ? I just assume you are using Camel 2.3.0, as Claus did lots of work on Camel trunk, the stack trace can't match with current trunk code. If I remember right , there is a timer thread to keep try redelivering the exchange, maybe that cause the ConcurrentModif

Re: Instance is not consuming any messages

2010-07-04 Thread Willem.Jiang
How did you setup your activemq connection ? It looks like the connection can't reconnect after long time running. Willem -- Apache Camel, Apache CXF committer Open SOA http://www.fusesource.com Blog http://willemjiang.blogspot.com Tiwtter http://twitter.com/willem

Re: Problems with SMTP

2010-07-04 Thread Willem.Jiang
You can't use @Producer inject the template yourself. Here is the mail thread[1] that you can take a look :) [1] http://camel.465427.n5.nabble.com/Best-way-to-retrieve-a-ProducerTemplate-created-in-a-camel-bundle-OSGI-td511695.html#a511695 Willem -- Apache Camel, A

Re: XML VALIDATION with CAMEL

2010-07-04 Thread Willem.Jiang
How did you put the message into the "activemq:SiebelOutbound2" ? Can you make sure the message body is not null ? Willem -- Apache Camel, Apache CXF committer Open SOA http://www.fusesource.com Blog http://willemjiang.blogspot.com Tiwtter http://twitter.com/willem

  1   2   >