code: public void preinvokeHandleException(Throwable t, EJSWrapperBase wrapper,
                                           int methodId, EJSDeployedSupport s,
                                           EJBMethodInfoImpl methodInfo) throws RemoteException {
          // Note, FFDC will be logged in setUncheckedException, as needed.  d350987
  
          s.preInvokeException = true; // d116274.1
          if (TraceComponent.isAnyTracingEnabled()) {
              if (tc.isEntryEnabled()) {
                  ContainerTx containerTx = s.currentTx;
                  Tr.exit(tc, "EJBpreInvoke(" + methodId + ":" +
                              methodInfo.getMethodName() + ") " +
                              " Invoking method '" + methodInfo.getMethodName() +
                              "' on bean '" + wrapper.getClass().getName() +
                              "(" + wrapper.beanId + ")" +
                              "', '" + containerTx + "', isGlobalTx=" +
                              (containerTx != null ? (containerTx.isTransactionGlobal() ? "true" : "false") : "Unknown"));
              }
  
              if (TEEJBInvocationInfo.isTraceEnabled())
                  TEEJBInvocationInfo.tracePreInvokeException(s, wrapper, t);
          }
  
          // Map Throwable to Exception to throw and throw it.
          s.setUncheckedException(t);
      }
docs: Handle Throwable that occurs during preinvoke processing
  of an EJB method invocation. This method always throws either
  RemoteException or EJBException (for local interface and MDB case).
  
  @param t is the Throwable that occured during preinvoke.
  @param wrapper is the EJSWrapperBase passed to preinvoke.
  @param methodId is the method ID passed to preinvoke.
  @param s is the EJSDeployedSupport object used by preinvoke.
  @param methodInfo is the EJBMethodInfo object used by preinvoke.
  @throws RemoteException if remote interface used to invoke EJB method.
  @throws EJBException if local interface or message listener interface of
  MDB is used to invoke EJB method.