onException is not working as expected.

2014-07-08 Thread atg roxx
// When try { template.sendBody("{{route.direct.endpoint}}", request); Thread.sleep(1000); // wait a few moments... //then mockEndpointResult.assertIsSatisfied(); // fails here } catch (CamelExecutionException ex) { //then fail(); } } -- Regards, atg roxx

Re: onException is not working as expected.

2014-07-11 Thread atg roxx
could one one please have a look and reply to it. On Tue, Jul 8, 2014 at 4:36 PM, atg roxx wrote: > Hi Team, > > I am using multicast with AggreationStrategy an also using onException on > my route. > > Happy case is working fine, > > But when there is any exception

Re: onException is not working as expected.

2014-07-11 Thread atg roxx
Hi Jiang, The mock has been defined as : -Regards, Atg roxx On Fri, Jul 11, 2014 at 1:03 PM, Willem Jiang wrote: > Hi, > > It looks like you are using some kind of MOCK API to throw the exception. > Can you show me the code how did you setup the mock

No move, premove and moveFailed option are avaliable for file/sftp producer

2014-10-02 Thread atg roxx
achieve what I want to do, if we dont have this option. Is there any other work around for it. Kindly help -Regards, Atg roxx

Re: No move, premove and moveFailed option are avaliable for file/sftp producer

2014-10-02 Thread atg roxx
Thanks Claus, Yes that helped. -Regards, Atg roxx On Thu, Oct 2, 2014 at 1:56 PM, Claus Ibsen wrote: > Hi > > See about tempFileName option at > http://camel.apache.org/file2 > > On Thu, Oct 2, 2014 at 12:54 PM, atg roxx wrote: > > Hi All, > > > > I have

camel cxfrs with swagger.

2014-10-17 Thread atg roxx
omcat" ( http://camel.apache.org/examples.html) explaining swagger integration with Camel, but here too web application is used for example i.e web.xml for this integration. Could anyone suggest how can we integrate swagger without use of web.xml -Cheers, atg roxx

Re: camel cxfrs with swagger.

2014-10-17 Thread atg roxx
resource location to search for resources class. Could you if possible , kindly let me know where how to use these in your sample program. -Regards, atg roxx On Fri, Oct 17, 2014 at 3:08 PM, Matt Raible wrote: > Here's how I did it. > > Application.java (to register C

Re: camel cxfrs with swagger.

2014-10-23 Thread atg roxx
and launch your application (after making use of Kongchen json pluging). 2) Launch swagger ui server. and provide your application swagger url to it( url on which your application will return server.json). This will do the trick. -Cheers, atg roxx On Wed, Oct 22, 2014 at 6:34 PM, Matt Raible

onException with Throwable.class

2015-04-13 Thread atg roxx
overable error"); from("direct:start") .throwException(new RecoverableException("recoverable exception")) .end(); -------- Could you explain the why this is happening or I am doing anything wrong -Regards atg roxx

Re: onException with Throwable.class

2015-04-13 Thread atg roxx
The camel version is 2.14.0. I did tried and the code is from that sample example. -Regards, atg roxx On Mon, Apr 13, 2015 at 2:48 PM, Claus Ibsen wrote: > Hi > > I cannot reproduce this with latest code. It would be good if you can > bulild a sample project or unit test that demo

errroHandler is not redelivering

2012-01-28 Thread atg roxx
Hi, I am new to camel world. I read on the camel site that we can use the below configuration to configure the route. But the following this not taking affect. Is the some other setting which has to done somewhere ?? kindly guide me . errorHandler(deadLetterChannel("jms:queue:dead") .m

Re: errroHandler is not redelivering

2012-01-29 Thread atg roxx
from a JMS broker, starts all over again. > That is a difference. > > > > On Sat, Jan 28, 2012 at 11:32 PM, atg roxx wrote: > > Hi, > > > > > > I am new to camel world. > > > > > > I read on the camel site that we can use the below configurat

Re: errroHandler is not redelivering

2012-01-30 Thread atg roxx
Any replies ??? I am stuck on this for last couple of days ... any help ?? --cheers, atgroxx On Sun, Jan 29, 2012 at 6:32 PM, atg roxx wrote: > first thanks for replying ... > > Now I am using apache-camel-2.8.3 and > > route configuration is > = > >

Re: errroHandler is not redelivering

2012-01-30 Thread atg roxx
Hi Babak, I cant provide the logs in debug mode but assure you that SoapFaultClientException is getting generated. and yes - the above is the copy paste issue; On Mon, Jan 30, 2012 at 3:30 PM, Babak Vahdat wrote: > Hi > > Can you turn the log level to DEBUG and send it *

Setting for maximumRedeliveries

2012-02-07 Thread atg roxx
Hi all, Is there any other setting except from the below call for redelivers on IOException on a route. onException(IOException.class).maximumRedeliveries(3) --cheers, atgroxx

How to implement requestTimeout in the spring-ws component

2012-02-09 Thread atg roxx
Hi Team, I have a situation, I have to send a request to a soap based client using spring-ws component using InOut pattern. I have to wait for say 2 second and if I don't get any reply in that time frame. I should do some action. In JMS component of camel we have requestTimeout which I can u

onException is not getting called for exception which are not generated in camel route

2012-02-10 Thread atg roxx
Hi , I have a situation: In general in a camel when we have any exception in a route the onException is called. for example : onException definition: --- onException( MyException mye) .process(new Processor() { @Override public void process(Exchange

Not getting any response from rest serivce

2012-02-15 Thread atg roxx
google.com";) .log("Output:") .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { System.out.println("response is "+ exchange.getOut().getBody()); } }); ------- Kindly let me know where I am going wrong. --cheers, atg roxx

Re: Not getting any response from rest serivce

2012-02-15 Thread atg roxx
etOut and getIn was the issue. Also the error msg which i have posted "I am getting : " java.lang.**IllegalStateException: IllegalStateException invoking http://www.google.com: Already connected" was a warning msg which I received when I kept all logs in debug mode. thanks; -ch

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
Hi RNPG, I check the links you have provided and they are really good, but they dont seem to solve my problem. I want to genreatet the URI in dynamic fashion. i.e http://abc.zyz.com/ Can you suggest a way how to generate this uri. --Regards, atg roxx On Thu, Mar 22, 2012 at 12:22 PM

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
Hi Alex, I doubt that we can use simple within to. I am getting compilation error for it. Regards, -atg roxx On Thu, Mar 22, 2012 at 2:59 PM, Alex Anderson wrote: > > from( "jms:request") > >.process(new AddHeader()) > >.to("cxfrs://h

Re: How to get header parameter in a to route of camel

2012-03-22 Thread atg roxx
ot;cxfrs://http://abc.com/"; +< header (test)>) Could you please explain this or is it bug ? -Regards, atg roxx On Thu, Mar 22, 2012 at 3:36 PM, Marco Westermann wrote: > Hi, > > you cannot use simple language in the to endpoint-uri, but you can use it >

Passing post parameter as body in the cxfrs call.

2012-03-23 Thread atg roxx
not getting how to pass the POST parameters as body. Is there any way to do that? --Regards, atg roxx

Re: Passing post parameter as body in the cxfrs call.

2012-03-26 Thread atg roxx
HI Team, Could anyone please reply to this. Many thanks in advance. --cheers, atg roxx On Fri, Mar 23, 2012 at 5:05 PM, atg roxx wrote: > Hi Team, > > I have a unusually requirement. > > I have to send a request xml to a restful service as as body generated > from POST p

Re: Passing post parameter as body in the cxfrs call.

2012-03-26 Thread atg roxx
uot;+ exchange.getIn().getBody()); --Regards, atg roxx On Mon, Mar 26, 2012 at 10:58 AM, atg roxx wrote: > HI Team, > > > Could anyone please reply to this. > > Many thanks in advance. > > > --cheers, > atg roxx > > > On Fri, Mar 23, 2012 at 5:05 PM, atg roxx wrote

Camel Jaxb- Not able to unmarshall a xml

2012-04-13 Thread atg roxx
-04:00 Mariott 5 1 0 0 1 0 2 I am able to unmarshall it but when i check the object created, I found that the and object are not set to values in the xml but are set to null. Could anyone let me know what can be the issue or how to resolve this . --cheers, atg roxx

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-13 Thread atg roxx
quot;) .to(Constants.LOG_IN_INFO_WITH_HEADERS) .process(new MondialRequestProcessor(userId, password)) .log("Finished processing "+MondialConstants.GETPRODUCTPRICEOFFERS+Constants.LOG_CORRELATIONID); --cheers, atg roxx On Fri, Apr 13, 2012 at 12:20 PM, DEPREZ Arnaud AWL-IT < arnaud.dep...@at

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
Hi Christian, Could you please provide the code for the Order and Address class. -Regards, atg roxx On Sun, Apr 15, 2012 at 12:37 PM, Christian Müller < christian.muel...@gmail.com> wrote: > The interesting part is how do you define the > "jaxbGetProductPriceOffersRequest&quo

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
ill I am not able to marshall or unmarshall properly. --Cheers, atg roxx On Mon, Apr 16, 2012 at 8:20 AM, DEPREZ Arnaud AWL-IT < arnaud.dep...@atos.net> wrote: > Hi ! > > In your class GetProductPriceOffers, you should have your variable partner > and reques

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
xb/example/address/1";> 1 Main Street 3a 65843 Sulzbach -cheers, atg roxx On Mon, Apr 16, 2012 at 4:02 PM, Christian Müller < christian.muel...@gmail.com> wrote: > It's in SVN: > > https://svn.apache.org/repos/asf/came

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
I = " http://www.camel.apache.org/jaxb/example/order/1 ", prefix = "ns1"), @XmlNs(namespaceURI = http://www.camel.apache.org/jaxb/example/address/1 ", prefix = "ns2") }, elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) } -cheers, atg roxx On Mon, Ap

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
each and every element has to be repeated again. Is there any work around for this. -cheers, atg roxx On Mon, Apr 16, 2012 at 5:56 PM, atg roxx wrote: > Hi Christian, > > I got the solution for the previous question asked by me : > > You have to simply add the following

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
here I mean to say is should be something like and should be something like --cheers, atg roxx http://www.camel.apache.org/jaxb/example/order/1"; xmlns:ns2=" http://www.camel.apache.org/jaxb/example/address/1";> 1 Main Street 3a 6584

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-16 Thread atg roxx
Hi Chirstian, Here I am afraid that I cant share the xsd as they are third party stuff. -cheers, atg roxx. On Mon, Apr 16, 2012 at 9:19 PM, Christian Müller < christian.muel...@gmail.com> wrote: > Changing the generated classes is not the way you should go. > Is it possible to sh

SoapFaultClientException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher.

2012-04-17 Thread atg roxx
estion why this is happening or what I am missing or how can we resolve it. -cheers, atg roxx.

Re: SoapFaultClientException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher.

2012-04-17 Thread atg roxx
to your service. Now add this Action using below syntax in camel route. The solution for this is that you have to add soapAction from("direct:example") .to("spring-ws:http://foo.com/bar?soapAction=http://foo.com&wsAddressingAction=http://bar.com";) That is it. --cheer

Multiple consumers for the same endpoint is not allowed

2012-05-04 Thread atg roxx
0 Route definition: TestRouteBuilder @Override public void configure() throws Exception { from("properties:{{cool.start}}") .to(Constants.LOG_IN_DEBUG_WITH_HEADERS) .to("direct:unknown"); } Could anyone tell where I am missing the configuration or what is wrong with this setting. ---Regards, atg roxx

Re: Multiple consumers for the same endpoint is not allowed

2012-05-04 Thread atg roxx
Hi Team, Sorry, there was a mistake from my end. I have another route listening on the same queue :) --Regards, atg roxx On Fri, May 4, 2012 at 12:10 PM, atg roxx wrote: > Hi Team, > > I am getting follwoing error: > > > Exception in thread "main" org.apache

Jasypt - Encrypted user name / password not available outside route or inside processor

2012-05-08 Thread atg roxx
Hi Team, I am trying to use Jasypt for encryption or userid/password used to connect to 3rd party services. But While doing so I notice that the encrypted userid/pwd are available only inside the route definitiion i.e: @Override public void configure() throws Exception { log.i

Re: dynamically setting Registry based options messageSender

2012-07-09 Thread atg roxx
Hi All, Could anyone please give their thought over this problem. --Regards, atgroxx live thie moment!! On Fri, Jul 6, 2012 at 5:45 PM, atg roxx wrote: > Hi Team, > > I have some un usual requirement. > > > I have to send spring-ws request to third party which re

Re: dynamically setting Registry based options messageSender

2012-07-12 Thread atg roxx
egards, atgroxx On Mon, Jul 9, 2012 at 10:08 AM, Claus Ibsen wrote: > On Mon, Jul 9, 2012 at 10:43 AM, atg roxx wrote: > > Hi All, > > > > Could anyone please give their thought over this problem. > > > > Have you looked at spring ws documentation / forum etc

SOAP 1.2 and cxf end point

2015-08-28 Thread atg roxx
Hi All, I am facing a issue in which in which my route is not able to accept the soap 1.2 msg. Cxf endpoint definition : --- http://localhost:8080/test"; serviceClass="org.apache.camel.wsdl_first.Person" wsdlURL="my_test.wsdl" >