[英]EC_GENERIC_REDIRECTVIEW Doesn't works only on production server and after a 30sec load
I've a case I whould like to understand. 我有一个我想了解的案例。 Here is two different way to redirect to a page after a Command job: (On WCS7)
这是在Command作业后重定向到页面的两种不同方法:(在WCS7上)
First: 第一:
TypedProperty rspProp = new TypedProperty();
rspProp.put(ECConstants.EC_VIEWTASKNAME, ECConstants.EC_GENERIC_REDIRECTVIEW);
rspProp.put(ECConstants.EC_URL, "AddressBookForm");
setResponseProperties(rspProp);
Second: 第二:
TypedProperty rspProp = new TypedProperty();
rspProp.put(ECConstants.EC_VIEWTASKNAME, "AddressBookForm");
setResponseProperties(rspProp);
If the treatment of the command take less than 30 seconds, both solution works. 如果命令的处理时间少于30秒,则两种解决方案均有效。 BUT if the command takes more than 30 seconds, the first way display a "Connection reset" browser error page (same on FF, IE, Chrome, ...).
但是,如果该命令花费的时间超过30秒,则第一种方法将显示“连接重置”浏览器错误页面(与FF,IE,Chrome等相同)。
I've try to reproduce on my local toolkit, but even if the process take more than 30sec, I can't reproduce. 我尝试在本地工具包上进行复制,但是即使该过程耗时超过30秒,也无法进行复制。 (I've try until 20min :/ ).
(我一直尝试到20分钟:/)。
I would like to understand why the execution time can broke the RedirectView? 我想了解为什么执行时间会中断RedirectView? And why it's only happening on a live server?
以及为什么它仅在实时服务器上发生?
Any ideas? 有任何想法吗? Thanks.
谢谢。
Not sure why the execution of RedirectView is breaking in the case of prod servers only. 不知道为什么仅在产品服务器的情况下RedirectView的执行会中断。 But as you said above Redirect flow will take more time than normal forward view.
但是正如您在上面说的那样,重定向流比正常的前向视图需要更多的时间。
PFB url of same topic. 相同主题的PFB网址。 Let me know whether this helped you in resolving your problem,
让我知道这是否有助于您解决问题,
http://deepakpadmakumar.blogspot.com/2012/05/forward-view-and-redirect-view-in-wcs.html http://deepakpadmakumar.blogspot.com/2012/05/forward-view-and-redirect-view-in-wcs.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.