RESTlet startup initialization deprecated?

Posted by Chris Kaminski on Stack Overflow See other posts from Stack Overflow or by Chris Kaminski
Published on 2010-06-10T00:09:31Z Indexed on 2010/06/10 0:12 UTC
Read the original article Hit count: 518

Filed under:
|
|

I'm trying to use the restlet.org library to build a RESTful web interface, and I've noticed that unlike it's servlet counterpart, it has no complement to GenericServlet.init().

Short of building another servlet to do my startup logic, is there any built-in way to avoid building my database factories and the like on the first request (and all the commensurate locking I'll have to do to avoid multiple initializations)?

© Stack Overflow or respective owner

Related posts about java

Related posts about restlet