575859606162636465
latch.await(); //any exception? if (execution.getException() != null) { //just throw it throw new TomeeException(execution.getException()); } return String.valueOf(execution.getResult()); }
107108109110111112113114
resp.getWriter().write(gson.toJson(result)); } catch (Throwable e) { //this will redirect the result to the ErrorServlet throw new TomeeException(e); } }
545556575859606162
latch.await(); //any exception? if (execution.getException() != null) { //just throw it throw new TomeeException(execution.getException()); } return execution.getResult(); }
394041424344454647
final Context initCtx; try { initCtx = new InitialContext(p); } catch (NamingException e) { throw new TomeeException(e); } this.initCtx = initCtx; }