Examples of TxHandler


Examples of ch.inftec.ju.db.TxHandler


  @Override
  public Object runMethodInEjbContext(String className, String methodName,
      Class<?> argumentTypes[], Object[] args) throws Exception {
    try (TxHandler txHandler = new TxHandler(this.tx, true)) {
      Class<?> clazz = Class.forName(className);
      Object instance = clazz.newInstance();
     
      Method method = clazz.getMethod(methodName, argumentTypes);
      Object res = method.invoke(instance, args);
     
      txHandler.commit();
      return res;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.