You can get the virtual member manager service either from the remote EJB or from the local JVM.
try { // Remote access virtual member manager Service EJB String providerURL = "corbaloc:iiop:localhost:2809"; Hashtable environment = new Hashtable(); environment.put(LocalServiceProvider.PROVIDER_URL, providerURL); Service service = new LocalServiceProvider(environment); } catch (WIMException e) { e.printStackTrace(); }
try { // Local access virtual member manager Service Service service = new LocalServiceProvider(null); } catch (WIMException e) { e.printStackTrace(); }