public User getUser String userName synchronized cm User result null t

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
public User getUser(String userName)
{
synchronized (cm)
{
User result = null;
try
{
result = createUserDAO().getUser(userName);
} catch (Exception e)
{
logger.error(e, e);
} finally
{
cm.free();
}
return result;
}
}