开发者

How to limit execution time of services with Weblogic/Blazeds/Spring

开发者 https://www.devze.com 2023-04-05 22:54 出处:网络
I\'m working on a project where we use Flex, Spring, Hibernate and Blazeds, all working on a Weblogic server.

I'm working on a project where we use Flex, Spring, Hibernate and Blazeds, all working on a Weblogic server.

Everything works fine and we call services at the server side from the flex app without p开发者_如何学Goroblems, but now we need to limit the time who spent the execution of the services to 2 seconds, if any service takes more than 2 seconds the server must return a timeout to the flex app.

I've been searching for a way to do this with the blazeds configuration, but it looks that it's not possible.

¿Is there any way to achieve this? I've thought in add a filter to the blazeds requests so it can control the timeout... But I can't find any example and I don't have enough knowledge of filters.

¿Could you help me with this problem?

Thanks.


I think you can set the timeout on RemoteObject OR Webservice.. whatever you are using. Once the specified timeout happens, it will throw a FaultEvent, which is when you supposed to take an appropriate action like for RemoteObject's use their channel's disconnect and so.. Look at this post: Flex RemoteObject timeouts?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号