| Summary: | When I exit the application using System.exit(0), the client reports "The server seems to be temporarily unavailable. Would you like to retry?" message. | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | liyongft |
| Component: | Workbench | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
liyongft
Uh, System.exit() terminates the VM - not sure if that's your intention. There has been a discussion in the Newsgroup on how to let a session become invalid - one solution is to call RWT.getRequest().getSession().setMaxInactiveInterval(1). System.exit() is definitely the wrong way. See comment #1 Thank you! In my specific use case, I do want to exit the whole JVM if user chooses to shutdown the application, that's why System.exit(0) is chosen. I understand your concern, under most circumstances, this is not correct approach, i.e., you do not want to bring WebSphere done just because you want to shutdown this RAP app. I will try RWT.getRequest().getSession().setMaxInactiveInterval(1) to see whether it will solve the client session issue though. |