Hi
On 12/12/13 13:46, António Mota wrote:
Hi guys, here's a quick one. Is it a good practice to inject contexts as
static properties?

     @Context
     public static HttpServletRequest sc;
  Is there any drawback in this?

This won't be thread safe

Cheers, Sergey

Cheers.


* Melhores cumprimentos / Beir beannacht / Best regards *
*______________________________________________________*

*António Manuel dos Santos Mota <http://gplus.to/amsmota>*
*http://www.linkedin.com/in/amsmota* <http://www.linkedin.com/in/amsmota>
*______________________________________________________*


Reply via email to