Question

I have a Flex GUI which is using AMF Streaming to BlazeDS on WebLogic 9.2. As the AMF Streaming uses long polling, it keeps the connection open for extended periods of time.

WebLogic has a max thread timeout of 600 seconds. WebLogic throws an error and times out the thread if it has been alive for longer than the timeout. This causes my GUI to lose its connection and hang.

I could change the default setting in WebLogic (StruckThreadMaxTime) but this would obviously negatively effect legitimately stuck threads.

Please can anyone tell me what other options I have to fix this problem?

Was it helpful?

Solution

Perhaps you can use the Consumer.channelDisconnect event and then reconnect?

OTHER TIPS

There is a new idle timeout API been added in AIR2.0 to help deal with long polling. You could try hunt down how it works and re-implement or setup timers yourself and try kill the connection from the flex end before the timeout (and then immediately re-estabilsh)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top