* @return
*/
private static DefaultJndiBindingPolicy getJndiBindingPolicy(Container container)
{
EJBContainer ejbContainer = (EJBContainer) container;
JndiBindingPolicy bindingPolicy = ejbContainer.getAnnotation(JndiBindingPolicy.class);
Class<? extends DefaultJndiBindingPolicy> policy = null;
if (bindingPolicy != null)
policy = bindingPolicy.policy();
else
{
Class<? extends DefaultJndiBindingPolicy> policyClass = PackagingBasedJndiBindingPolicy.class;
log.warn("No default JNDI Binding Policy Defined (see ejb3-interceptors-aop.xml for example); defaulting to "
+ policyClass.getName());