/** * * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceSuiviImpl/local") public interface ServiceSuiviLocal extends ServiceSuivi { }
private static String getLocalJndiName(JBossEnterpriseBeanMetaData ejb, Class<?> ejbClass) { // See if local binding is explicitly-defined LocalBinding localBinding = ejbClass.getAnnotation(LocalBinding.class); // If none specified if (localBinding == null || (localBinding.jndiBinding() != null && localBinding.jndiBinding().trim().length() == 0)) { String name = ejb.getLocalJndiName(); return name; } // Local Binding was explicitly-specified, use it else { return localBinding.jndiBinding(); } }
/** * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceSynchNumberImpl/local") public interface ServiceSynchNumberLocal extends ServiceSynchNumber { }
protected LocalBindingMetaData createLocalBindingMetaData(Class<?> type, LocalBinding annotation) { if(annotation.jndiBinding().length() == 0) return null; LocalBindingMetaData metaData = new LocalBindingMetaData(); // set JndiName metaData.setJndiName(annotation.jndiBinding()); return metaData; }
/** * * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceScheduleImpl/local") public interface ServiceScheduleLocal extends ServiceSchedule { }
private static String getLocalJndiName(EJBContainer container, boolean conflictCheck) { // See if local binding is explicitly-defined LocalBinding localBinding = container.getAnnotation(LocalBinding.class); // If none specified if (localBinding == null || (localBinding.jndiBinding() != null && localBinding.jndiBinding().trim().length() == 0)) { JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData)container.getXml(); String name = smd.getLocalJndiName(); // If we should check for naming conflict if (conflictCheck){ // Check ProxyFactoryHelper.checkForJndiNamingConflict(container); } // Return return name; } // Local Binding was explicitly-specified, use it else { return localBinding.jndiBinding(); } }
/** * * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceSuiviImpl/local") public interface ServiceSuiviLocal extends ServiceSuivi { }
protected boolean hasJNDIBinding(String jndiName) { assert jndiName != null : "jndiName is null"; if(localBinding != null) { if(localBinding.jndiBinding().equals(jndiName)) return true; } if(remoteBindings != null) { for(RemoteBinding binding : remoteBindings.value()) { if(binding.jndiBinding().equals(jndiName)) return true; } } return false; }
/** * * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceScheduleImpl/local") public interface ServiceScheduleLocal extends ServiceSchedule { }
protected SessionProxyFactory getProxyFactory(LocalBinding binding) { assert binding!=null : LocalBinding.class.getSimpleName() + " must be specified"; // Find the jndiName String jndiName = this.getMetaData().getLocalJndiName(); if(binding!=null) { jndiName = binding.jndiBinding(); } // Get the Registry name String proxyFactoryRegistryBindName = this.getJndiRegistrar().getProxyFactoryRegistryKey(jndiName, this.getMetaData(), true); // Return return this.getProxyFactory(proxyFactoryRegistryBindName); }
/** * @author sletellier */ @Local @LocalBinding(jndiBinding="ServiceSynchNumberImpl/local") public interface ServiceSynchNumberLocal extends ServiceSynchNumber { }
return binding.jndiBinding();
@Local @LocalBinding(jndiBinding="InjectorIBUImpl/local") public interface InjectorIBULocal extends InjectorIBU { }
@Local @LocalBinding(jndiBinding="ServiceWebImpl/local") public interface ServiceWebLocal extends ServiceWeb { }
@Local @LocalBinding(jndiBinding="ServiceNotifierImpl/local") public interface ServiceNotifierLocal extends ServiceNotifier { }
@Local @LocalBinding(jndiBinding="ServiceNotifierImpl/local") public interface ServiceNotifierLocal extends ServiceNotifier { }
@Local @LocalBinding(jndiBinding="ServiceTourImpl/local") public interface ServiceTourLocal extends ServiceTour { }
@Local @LocalBinding(jndiBinding="InjectorIBUImpl/local") public interface InjectorIBULocal extends InjectorIBU { }
@Local @LocalBinding(jndiBinding="ServiceTourImpl/local") public interface ServiceTourLocal extends ServiceTour { }
@Local @LocalBinding(jndiBinding="ServiceWebImpl/local") public interface ServiceWebLocal extends ServiceWeb { }