Getting the virtual member manager service

You can get the virtual member manager service either from the remote EJB or from the local JVM.

The following two code samples show how to call the virtual member manager service.
To call the virtual member manager service from the remote EJB, add the following sample code to your application code and replace the variables with the actual values that you want to use:
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();
	}
To call the virtual member manager service from the local JVM, add the sample following code to your application code:
try
  	{
	    // Local access virtual member manager Service
		  Service service = new LocalServiceProvider(null);
	}
	catch (WIMException e)
	{
		e.printStackTrace();
	}
You can now utilize virtual member manager functions.
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1