public Object invoke ( TargetMetaDef targetMetaDef , Method m , Object [ ] args ) throws Throwable { Object result = null ; getThreadLock ( ) ; int currentRequestNb = requestNb ++ ; Debug . logVerbose ( "[JdonFramework]Start remote call " + currentRequestNb + " " + m . getName ( ) , module ) ; // 准备参数 HttpRequest request = new HttpRequest ( targetMetaDef , m . getName ( ) , m . getParameterTypes ( ) , args ) ; StringBuilder sb = new StringBuilder ( httpServerParam . getServletPath ( ) . toString ( ) ) ; if ( sessionId != null ) { sb . append ( ";jsessionid=" ) ; sb . append ( sessionId ) ; } httpServerParam . setServletPath ( sb . toString ( ) ) ; result = invokeHttp ( request , args ) ; Debug . logVerbose ( "[JdonFramework]Ending remote call " + currentRequestNb , module ) ; releaseThreadLock ( ) ; return result ; }
Invokes EJB service