users@jersey.java.net

[Jersey] Does filter method of ContainerRequestFilter run in resource method thread?

From: 鲍明礼 <mingli.bao_at_yolu-inc.com>
Date: Thu, 4 Sep 2014 20:40:11 +0800

Hi, all.
        
        I get user info from request header in filter method of ContainerRequestFilter , and save it to ThreadLocal variable so I can get it in resource method. But I wonder if this is OK ? Will resource method run in the same thread as filter method in ContainerRequestFilter ?

        Thanks.
        

-- 
Best Regards
鲍明礼
---------------------------------
微人脉
邮件: mingli.bao_at_yolu-inc.com
地址: 北京市东城区新中西里13号巨石大厦西区5层
邮编: 100027