/** * @author sletellier */ @Remote @RemoteBinding(jndiBinding="ServiceSynchNumberImpl/remote") public interface ServiceSynchNumber { public Long getNextSynchroNumber() throws TopiaException; Long getCurrentSynchroNumber() throws TopiaException; }
protected RemoteBindingMetaData createBindingMetaData(Class<?> type, RemoteBinding annotation) { RemoteBindingMetaData remote = new RemoteBindingMetaData(); remote.setJndiName(annotation.jndiBinding()); remote.setClientBindUrl(annotation.clientBindUrl()); remote.setInterceptorStack(annotation.interceptorStack()); remote.setProxyFactory(annotation.factory()); remote.setInvokerName(annotation.invokerName()); Descriptions descriptions = ProcessorUtils.getDescription(" @RemoteBinding for class " + type.getSimpleName()); remote.setDescriptions(descriptions); return remote; }
private RemoteBinding initializeRemoteBinding(RemoteBinding binding) { if(binding.jndiBinding().length() == 0) { return new RemoteBindingImpl(ProxyFactoryHelper.getDefaultRemoteBusinessJndiName(container), binding .interceptorStack(), binding.clientBindUrl(), ""); } return binding; }
public static String getRemoteBusinessJndiName(EJBContainer container, RemoteBinding binding, boolean conflictCheck) { // Initialize String jndiName = null; // If binding is not defined if (binding == null || binding.jndiBinding() == null || binding.jndiBinding().trim().equals("")) { // Use the default jndiName = getDefaultRemoteBusinessJndiName(container); // If we should check for a naming conflict if (conflictCheck) { // Check ProxyFactoryHelper.checkForJndiNamingConflict(container); } } // Binding is explicitly-defined else { // use it jndiName = binding.jndiBinding(); } // Return return jndiName; }
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 */ @Remote @RemoteBinding(jndiBinding="ServiceSynchNumberImpl/remote") public interface ServiceSynchNumber { public Long getNextSynchroNumber() throws TopiaException; Long getCurrentSynchroNumber() throws TopiaException; }
protected SessionProxyFactory getProxyFactory(RemoteBinding binding) { assert binding!=null : RemoteBinding.class.getSimpleName() + " must be specified"; // Get the Registry name String proxyFactoryRegistryBindName = this.getJndiRegistrar().getProxyFactoryRegistryKey(binding.jndiBinding(), this.getMetaData(), true); // Return return this.getProxyFactory(proxyFactoryRegistryBindName); }
/** * @author letellier */ @Remote @RemoteBinding(jndiBinding="InjectorIBUImpl/remote") public interface InjectorIBU { public void injectIBU(String content) throws Exception; public void injectLabels(String content) throws Exception; public void injectUsines(String content) throws Exception; public void injectCamions(String content) throws Exception; public void injectChauffeurs(String content) throws Exception; public void injectTransporteurs(String content) throws Exception; public void injectAutorisations(String content) throws Exception; public void injectUsers(String content) throws Exception; public void injectEvents(String content) throws Exception; public void injectEleveurGPS(String content) throws Exception; }
return bindings.value()[0].jndiBinding(); return binding.jndiBinding();
/** * @author letellier */ @Remote @RemoteBinding(jndiBinding="InjectorIBUImpl/remote") public interface InjectorIBU { public void injectIBU(String content) throws Exception; public void injectLabels(String content) throws Exception; public void injectUsines(String content) throws Exception; public void injectCamions(String content) throws Exception; public void injectChauffeurs(String content) throws Exception; public void injectTransporteurs(String content) throws Exception; public void injectAutorisations(String content) throws Exception; public void injectUsers(String content) throws Exception; public void injectEvents(String content) throws Exception; public void injectEleveurGPS(String content) throws Exception; }
@RemoteBinding(jndiBinding="ServiceNotifierImpl/remote") public interface ServiceNotifier {
@RemoteBinding(jndiBinding="ServiceSuiviImpl/remote") public interface ServiceSuivi {
@RemoteBinding(jndiBinding="ServiceScheduleImpl/remote") public interface ServiceSchedule {
@RemoteBinding(jndiBinding="ServiceNotifierImpl/remote") public interface ServiceNotifier {
@RemoteBinding(jndiBinding="ServiceScheduleImpl/remote") public interface ServiceSchedule {
@RemoteBinding(jndiBinding="ServiceSuiviImpl/remote") public interface ServiceSuivi {
@RemoteBinding(jndiBinding="ServiceTourImpl/remote") public interface ServiceTour {
@RemoteBinding(jndiBinding="ServiceTourImpl/remote") public interface ServiceTour {
@RemoteBinding(jndiBinding="ServiceWebImpl/remote") public interface ServiceWeb {
@RemoteBinding(jndiBinding="ServiceWebImpl/remote") public interface ServiceWeb {