Java Jersey RESTful services

Posted by pHk on Stack Overflow See other posts from Stack Overflow or by pHk
Published on 2010-05-10T15:50:13Z Indexed on 2010/05/10 15:54 UTC
Read the original article Hit count: 347

Filed under:
|
|
|

Rather new to REST and Jersey, and I'm trying out some basic examples. I've got one particular question though, which I haven't really found an answer for yet (don't really know how to look for this): how would you go about storing/defining common services so that they are stateful and accessible to all/some resources?

For instance, a logger instance (Log4J or whatever). Do I have to manually initialize this and store it in the HttpSession? Is there a "best practice" way of doing this so that my logger is accessible to all/some resources?

Thanks a lot.

© Stack Overflow or respective owner

Related posts about java

Related posts about jersey