Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache CXF - return value without service method invocation

 
Lukasz Dworski
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic