[jboss-user] [JBoss Cache: Core Edition] - Re: on child insert parent, child collection updated in DB b

dukehoops do-not-reply at jboss.com
Fri Mar 6 14:39:32 EST 2009


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



More information about the jboss-user mailing list