Sorry, premature 'send' of above. Here's missing source code:

    /**
  |      *
  |      * @param ltesterUserName
  |      * @return current userSession or null
  |      */
  |     private UserSession getCurrentUserSession(final String ltesterUserName) 
throws Exception {
  | 
  |         LOG.debug("start getCurrentUserSession method user=" + 
ltesterUserName);
  | 
  |         try {
  |             return (UserSession) txTemplate.executeWithException(new 
TransactionCallbackWithException() {
  | 
  |                 public Object 
doInTransactionWithException(TransactionStatus status) throws Exception {
  | 
  |                     //add user session, throw exception if one does not 
exist
  | 
  |                     LOG.debug("before findByName user=" + ltesterUserName);
  |                     final User usr = 
getUserDao().findByNameChecked(ltesterUserName);
  | 
  |                     LOG.debug("before usr.getCurrentUserSession user=" + 
ltesterUserName);
  |                     final UserSession us = usr.getCurrentUserSession();
  |                     LOG.debug("after usr.getCurrentUserSession user=" + 
ltesterUserName);
  |                     return us;
  |                 }
  |             });
  |         } finally {
  |             LOG.debug("end getCurrentUserSession user=" + ltesterUserName);
  |         }
  | 
  |     }

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215841#4215841

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215841
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to