protected void setProxyFactory(String invokerBinding,
Invocation mi) throws Exception {
// if (BeanMetaData.LOCAL_INVOKER_PROXY_BINDING.equals(invokerBinding)) return;
if (invokerBinding == null)
{
log.trace("invokerBInding is null in ProxyFactoryFinder");
return;
}
/*
if (invokerBinding == null)
{
log.error("***************** invokerBinding is null ********");
log.error("Method name: " + mi.getMethod().getName());
log.error("jmx name: " + container.getJmxName().toString());
new Throwable().printStackTrace();
log.error("*************************");
throw new EJBException("Couldn't insert proxy factory, " +
"invokerBinding was null");
}
*/
Object proxyFactory = container.lookupProxyFactory(invokerBinding);
if (proxyFactory == null)
{
String methodName;
if(mi.getMethod() != null) {
methodName = mi.getMethod().getName();
} else
{
methodName ="< no method >";
}
log.error("***************** proxyFactory is null ********");
log.error("Method name: " + methodName);
log.error("jmx name: " + container.getJmxName().toString());
log.error("invokerBinding: " + invokerBinding);
log.error("Stack trace", new Throwable());
log.error("*************************");
throw new EJBException("Couldn't find proxy factory");
}
container.setProxyFactory(proxyFactory);
}
|