if (log.isTraceEnabled())
{
log.trace("Using legacy invoker method for getEJBObject() invocation.");
}
SecurityActions sa = SecurityActions.UTIL.getSecurityActions();
Invocation invocation = new Invocation(
null,
GET_EJB_OBJECT,
new Object[]{id},
//No transaction set up in here? it will get picked up in the proxy
null,
// fix for bug 474134 from Luke Taylor
sa.getPrincipal(),
sa.getCredential());
invocation.setObjectName(new Integer(objectName));
invocation.setValue(InvocationKey.INVOKER_PROXY_BINDING,
invokerProxyBinding, PayloadKey.AS_IS);
// It is a home invocation
invocation.setType(InvocationType.HOME);
// Create an invocation context for the invocation
InvocationContext ctx = new InvocationContext();
invocation.setInvocationContext(ctx);
// Get the invoker to the target server (cluster or node)
// Ship it
if (isLocal())