private void addDescriptorAnnotations(EJBContainer container, JBossEnterpriseBeanMetaData enterpriseBean, String ejbName, boolean isStateful) throws Exception
{
if(enterpriseBean instanceof JBossGenericBeanMetaData)
{
Class<?>[] remoteAndBusinessRemoteInterfaces = ProxyFactoryHelper.getRemoteAndBusinessRemoteInterfaces(container);
if(remoteAndBusinessRemoteInterfaces.length == 0)
{
enterpriseBean.setLocalJndiName(enterpriseBean.getMappedName());
enterpriseBean.setMappedName(null);
}
}
addTransactionAnnotations(container, enterpriseBean, ejbName);
addAssemblyAnnotations(container, enterpriseBean, ejbName);
addSecurityAnnotations(container, enterpriseBean, ejbName);
addEjbAnnotations(container, enterpriseBean);
addEjb21Annotations(container, isStateful);
addWebServiceAnnotations(container, enterpriseBean);
}