DefaultJndiBindingPolicy jndiPolicy = DefaultJNDIBindingPolicyFactory.getDefaultJNDIBindingPolicy();
SessionBean31JNDINameResolver jndiNameResolver = JNDIPolicyBasedJNDINameResolverFactory.getJNDINameResolver(
sessionBean, jndiPolicy);
// Determine if there are local/remote views
BusinessRemotesMetaData businessRemotes = sessionBean.getBusinessRemotes();
BusinessLocalsMetaData businessLocals = sessionBean.getBusinessLocals();
boolean hasLocalBusinessView = (businessLocals != null && businessLocals.size() > 0);
boolean hasRemoteBusinessView = (businessRemotes != null && businessRemotes.size() > 0);
// It's got a local business view, so resolve the default local business JNDI name
// and add it to the list
if (hasLocalBusinessView)
{