Best way to delay access to static web pages until services become available with J2EE

Posted by Dean Povey on Stack Overflow See other posts from Stack Overflow or by Dean Povey
Published on 2010-03-21T23:23:39Z Indexed on 2010/03/21 23:31 UTC
Read the original article Hit count: 176

Filed under:
|

I have a J2EE application front-ended by a bunch of GWT pages. When the server is starting up, it is possible that these static pages can be accessed before the services required to implement the GWT RPC calls (database etc) are available. I wondering what the best approach is to prevent a user accessing this static content before these services become available.

For the purpose of this exercise, assume that there is an isInitialized() method somewhere. I am happy with either a page displaying an error message or simply refusing the connection.

© Stack Overflow or respective owner

Related posts about j2ee

Related posts about java