return factory;
System.out.println("JBG: In invoke"); final String methodName = methodInvocation.getMethod().getName(); logEvent(methodName, "Entering call."); Object result = methodInvocation.proceed(); logEvent(methodName, "Leaving call."); return result;
LogEvent le = new LogEvent(methodName, new Date(), message); Session s = null; try { s = factory.openSession(); s.save(le); } catch (Exception ex) { // log the exception } finally { s.close(); }
this.factory = factory;