Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.sapia.ubik.ioc.spring;
import java.io.IOException;
import java.lang.ref.SoftReference;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Properties;
import java.util.Set;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NameNotFoundException;
import javax.naming.NamingException;
import org.sapia.ubik.ioc.NamingService;
import org.sapia.ubik.mcast.EventChannel;
import org.sapia.ubik.rmi.Consts;
import org.sapia.ubik.rmi.naming.remote.RemoteInitialContextFactory;
import org.sapia.ubik.rmi.naming.remote.discovery.DiscoveryHelper;
import org.sapia.ubik.rmi.naming.remote.discovery.JndiDiscoListener;
import org.sapia.ubik.rmi.naming.remote.discovery.ServiceDiscoListener;
import org.sapia.ubik.rmi.naming.remote.proxy.ReliableLocalContext;
import org.sapia.ubik.rmi.server.Log;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
/**
* This singleton bean acts as a bridge to the Ubik JNDI server. It is internally used by the {@link BeanExporterPostProcessor}
* and {@link BeanImporterPostProcessor} to respectively bind and lookup remote services.
*
* This bean robustly discovers Ubik JNDI servers that appear in the domain if none are present at initialization time.
* The bound services are thus cached until a JNDI server is available.
*
* @author yduchesne
*
*/
public class NamingServiceBean implements NamingService, JndiDiscoListener, InitializingBean, DisposableBean{
private String _domain;
private String _host, _addr;
private int _port, _mcastPort;
private Context _ctx;
private Set