Export to GitHub

full-hibernate-plugin-for-struts2 - issue #37

Thread-safe session injection


Posted on Mar 15, 2012 by Swift Lion

Hi, I'm trying to implement a singleton DAO object within hibernate and struts2 by using your plugin. Looking through some examples, i think your plugin use setter method and java reflection to do injection. i'm wondering is it thread-safe? Since in a webapplication(typically, multithreaded), each setter method will modify my DAO singleton's session object. Plz, help answering my questions. thx

Status: New

Labels:
Type-Defect Priority-Medium