DAO-like class shared in static field - is it thread-safe approach?
16 views
Skip to first unread message
Libor Jelínek
unread,
Jun 17, 2012, 5:22:42 AM6/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mybatis-user
Hello all MyBatis fellows,
it's more general Java question rather then MyBatis related, yet let
me to ask here.
I have DAO-like class looking like this excerpt:
public class FileDao {
public void insertFile(long id) {
SqlSession session =
SystemInstanceFactory.getInstance().getSqlSessionFactory().openSession();