aspose file tools*
The moose likes Web Services and the fly likes Apache CXF - return value without service method invocation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apache CXF - return value without service method invocation" Watch "Apache CXF - return value without service method invocation" New topic
Author

Apache CXF - return value without service method invocation

Lukasz Dworski
Greenhorn

Joined: Apr 10, 2012
Posts: 1
Hi,

I'm trying to use EHCache with Apache-CXF WebServices. I have written custom Apache-CXF interceptor which has possibility to ask EHCache Cache Manager about data stored in it. Keys are evaluated using parameters passed to SOAPMessage object. But I don't know how to stop interceptor chain if object is in cache (because this request is not necessary) and return value to client.
My interceptor is on client side as a outbound interceptor. If interceptor found object in cache then Apache-CXF should not produce request to server and just return value to client. Anyone has idea how to do it?

I appreciate any help.
Anurag Verma
Ranch Hand

Joined: Mar 30, 2012
Posts: 124

I dont know whether this is in CXF or not (Not saying that its not there in CXF). But if you are using Spring Framework in your project, you can have a Method Interceptor there & you can decide not to proceed with invocation of actual method.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache CXF - return value without service method invocation
 
Similar Threads
Problem getting output using CXF & Spring
servicemix 4.3.2 camel cxf producer to cxf-nmr consumer Not Working
Dynamically change Ehcache configuration through hibernate and Spring
Object Caching?
question about business method interceptor