private void traceJndiBegin ( String methodname , Object ... objs ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { String providerURL = "UNKNOWN" ; try { providerURL = ( String ) getEnvironment ( ) . get ( Context . PROVIDER_URL ) ; } catch ( NamingException ne ) { /* Ignore. */ } Tr . debug ( tc , JNDI_CALL + methodname + " [" + providerURL + "]" , objs ) ; } }
Trace a message with JNDI_CALL that includes the parameters sent to the JNDI call .