Re: OnException across camelcontext not called when using direct-vm

2016-10-26 Thread Santhosh
Thanks for your help. Sent from my iPhone > On Oct 26, 2016, at 4:04 PM, Santhosh [via Camel] > wrote: > > Ok That solves the problem. > > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/OnExcep

Re: OnException across camelcontext not called when using direct-vm

2016-10-26 Thread Santhosh
Ok That solves the problem. -- View this message in context: http://camel.465427.n5.nabble.com/OnException-across-camelcontext-not-called-when-using-direct-vm-tp5789237p5789309.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: OnException across camelcontext not called when using direct-vm

2016-10-25 Thread Santhosh
There is no exception handling in route2, it just throws the exception. I see exception in the log, thrown by route2. But context1 never get those exception. If I use nmr route, then everything works fine. Thanks Santhosh -- View this message in context: http://camel.465427.n5.nabble.com

OnException across camelcontext not called when using direct-vm

2016-10-25 Thread Santhosh
I have multiple context, and I use direct-vm to call route in another context. If there any exception, direct-vm is not passing that exception correctly to the parent/source route. If I use nmr, then source route gets the exception and onException is getting called correctly. Here in this example

SpringBatchProducer and Spring DSL.

2014-12-03 Thread Santhosh T R
we are using Spring DSL. Our camel route will look something like I'm unable to pass the exchange to the spring batch component for further processing. Any pointers to solve this issue will be helpful. Thanks & regards, Santhosh DISCLAIMER: "The informatio

Unable to insert data using camel hibernate component.

2014-05-05 Thread V Santhosh Kumar Tangudu
Hi, I am using Apache Camel in Dropwizard framework to build the flow. I am trying to use the hibernate component of Apache-camel. When I am trying to insert a data, I am getting following exception. org.hibernate.HibernateException: No session currently bound to execution context at org.hib

Camel Reciepient List

2013-04-16 Thread santhosh
>From this thread, http://www.mentby.com/Group/apache-camel/recipientlist-aggregationstrategy-and-completiontimeout.html ,i understand dynamic timeout is not possible in receipient List.Something like in aggregate where timeout can be configured via Expression.Is it still case with Camel 2.10.2.It

Re: How to call CXF web service from Camel

2013-03-25 Thread santhosh
Sorry.The dataFormat has to be PAYLOAD or MESSAGE.you can look at what that is on http://camel.apache.org/cxf.html .if you want POJO you should include stub interface as serviceClass.btw the port name is wrong. It should be tns:HelloFirstImplServiceSoapBinding where tns should declared in namespac

Re: How to call CXF web service from Camel

2013-03-22 Thread santhosh
I recommend you try this Some ideas: I am assuming you have cxf webservice as seperate project or hitting service deployed elsewhere from camel.If no, i recommend to untangle cxf webservice and camel. First get the cxf webservice project deployed.Check if the wsdl is available. then change you

Re: Enable wire logs on Camel HTTP Proxy

2013-03-20 Thread santhosh
try cxf intercptors -input and output interceptors if its cxf service.It gives wire incoming msg and wire outgoing msg -- View this message in context: http://camel.465427.n5.nabble.com/Enable-wire-logs-on-Camel-HTTP-Proxy-tp5723675p5729577.html Sent from the Camel - Users mailing list archive

Re: Camel receipient list with interceptor

2013-03-20 Thread santhosh
I will answer this question myself .You can find the endpoint which the exchange is used by using exchange.getProperty("CamelToEndpoint") . To answer the overall question - how to manipulate the message in recipient/multicast according to endpoint keeping in mind the endpoint list will be creat

Re: camel http- to call https service does not import certificates automatically

2013-03-20 Thread santhosh
i went through my post and got the code :) public void configureHttpClient(org.apache.http.client.HttpClient httpClient) { try { final BasicHttpParams httpParams = new BasicHttpParams(); //if y

Re: Camel receipient list with interceptor

2013-03-20 Thread santhosh
I have read through it and i couldnt figure anything out for reasons i mentioned in previous post.Rephrasing my questions short 1)Is there a property in exchange which says the which endpoint the message is intended for??Can i use it in multicast for identifying the endpoint for which exchange wi

Re: Couchdb peer not authenticated exception

2013-03-20 Thread santhosh
Whatever server you are using, turn on SSL logs. http://docs.oracle.com/javase/1.5.0/docs/guide/security/jsse/ReadDebug.html . it usually lands up on console and not file atleast in karaf/smx. i mean the SSL logs not your custom logging.It will tell you all steps in cert exchange.The link explain

Re: camel http- to call https service does not import certificates automatically

2013-03-20 Thread santhosh
I think the previous post is the way to do.We/I dont automatically import certs.That said i dont your requirements.I have a post explaining the way httpClient should be used in camel in camel user forums.Search for all my post you will have the full working code.That should use your trust store ins

Camel receipient list with interceptor

2013-03-19 Thread santhosh
My architecture needs to multicast to multiple endpoints which will be constructed dynamically and before the message is sent to end point it needs to be customized.Now its like

Re: camel http- to call https service does not import certificates automatically

2013-03-19 Thread santhosh
Your progam/code wont and its not coded that way.You have to update the keystore and truststore manually.Updating manually in sense i am assuming you mean keytool -import -keystore keystore.jks -file key.txt -alias xyz . -- View this message in context: http://camel.465427.n5.nabble.com/came

Re: from webservice to queue

2013-03-15 Thread santhosh
If you are trying to do CXF proxy .ie. receive all request to a CXF webservice by setting up a proxy endpoint this will work http://localhost:9000/order"; wsdlURL="" endpointName="" serviceName=""> All namespace resolution is left out.J

Re: How to add HTTP Basic and Digest Auth on CXF component

2013-03-15 Thread santhosh
If you dont get it sorted out with a CXF client,the simplest way would be send the soap body to the route.It would suffice to make a post request with authorization header to get Basic auth working.It can be HttpConnection,HttpClient,Camel using HttpClient.

UNknown host timeout during http4 component unicast

2013-03-15 Thread santhosh
populate the multicast with endpoints.SO it may 1 ,2 or 10 endpoints under multicast. my only option now is Do you think i doing something wrong with multicast.Should i proceed with above route or is there a better way. Thanks, Santhosh -- View this message in context

Camel Http4 SSL/TLS configuring scheme port

2013-03-05 Thread santhosh
i run camel in karaf.I use Http4 component for https connection with custom connectionConfigurer Class connectionConfigurer{ . SchemeRegistry registry = new SchemeRegistry(); registry.register(new Scheme("https", 443, new SSLSocketFactory(keystore, "mypassword", truststore))); } So what happ

Camel Http4 SSL mutual authentication info

2013-01-16 Thread santhosh
Hey i want to congratulate you guys on such wonderful documentation available for camel http for customising the http client configurer.i have also found other docs sufficiently enough.That defenitely makes dev easy. I had few minor hickkups during configuring camel http4 config.i followed the d

Camel failover for Webservice endpoint

2012-12-17 Thread santhosh
I was in interview asked a real time use case for camel. There are three webservice endpoints A ,B ,C .How would achieve failover between these points.I answered I told i will use the load balancer.Dont mind the syntax But the interviewer said he wanted failover strictly like a master and

Re: CXF: Service Implementer could not be invoked

2012-12-12 Thread santhosh
Ok for your requirement here is what you need to do.Create a jax-ws endpoint and drop into META-INF/spring. Create a file named whatever sensible in xml format.For demo lets assume the name is beans.xml.The contents of beans.xml would be http://www.springframework.org/schema/beans http://www.spr

Re: apache Camel cxf proxy doesnt work with http endpoint

2012-12-07 Thread santhosh
My mistake.I figured what the problem was.I was sending the message to wrong operation.I didnt notice the soap:action.So wrong data resulted in 500 error from the server.But thanks guys ,aki and williem for taking time to read such a long post.Much appreciated.I am starting to love the camel forum.

apache Camel cxf proxy doesnt work with http endpoint

2012-12-07 Thread santhosh
My requirement is to have a proxy web service which will receive the request from clients and then route through camel,enrich it and forward it to real webservice at other clients place ,get response and send it back to the original requestor. i basically looked at camel-cxf-proxy example (http:/

Request/Reply pattern without jms?

2012-12-07 Thread santhosh
0 down vote favorite My requirement is to have a web service which will receive the request from clients and then route through camel,enrich it and forward it to another webservice at other clients place ,get response and send it back to the original requestor. from(webserviceURI) .in