On Tuesday, August 09, 2011 7:17:39 PM Freeman Fang wrote:
> Hi,
> 
> I don't think you can simply specify a response time for your service,
> moreover it would be helpless for SLA even you can do it, the response
> time totally depend on your business logic complexity.

While I agree with that, there is one option you COULD do, but it would be a 
bit more complex.    You could use the CXF continuations with a timeout.  In 
you impl bean, you would push the 'real' work onto an executor or similar, 
then create a continuation and use that.   Your impl would be called again 
when the timeout occurs and you could throw a fault from that.   That doesn't 
stop your logic from running on the other thread, you would still need to 
manage that.

Dan



> 
> For the SLA, I think you need implement some role based service, that
> said, the role with high priority can get more server side resource to
> handle request.
> 
> Freeman
> 
> On 2011-8-9, at 下午6:03, Prisca POLYTE wrote:
> > Hi guys,
> > 
> > In my application (spring 3.0.5, cxf 2.4.1), I have a web service
> > for which
> > I need to guarantee response times (SLA). I use  jaxws:endpoint in my
> > configuration.
> > on the client side, with a conduit we can configure timeouts. what
> > about the
> > server side ?
> > 
> > Is there anything to do this ?
> > 
> > what is the best way to implements this kind of feature with CXF ?
> > 
> > thanks for your help and advice
> > 
> > 
> > regards
> > --
> > Prisca
> 
> ---------------------------------------------
> Freeman Fang
> 
> FuseSource
> Email:[email protected]
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to