1 8 9 package test.javax.management.remote.rmi; 10 11 import java.net.MalformedURLException ; 12 import java.util.HashMap ; 13 import java.util.Map ; 14 import javax.management.remote.JMXServiceURL ; 15 import javax.naming.Context ; 16 17 import test.javax.management.remote.JMXNotificationsTestCase; 18 19 22 public class RMIJRMPNotificationsTest extends JMXNotificationsTestCase 23 { 24 public RMIJRMPNotificationsTest(String s) 25 { 26 super(s); 27 } 28 29 public JMXServiceURL createJMXConnectorServerAddress() throws MalformedURLException 30 { 31 return new JMXServiceURL ("rmi", "localhost", 0); 32 } 33 34 public Map getEnvironment() 35 { 36 HashMap env = new HashMap (); 37 env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory"); 38 env.put(Context.PROVIDER_URL, "rmi://localhost:1099"); 39 return env; 40 } 41 } 42 | Popular Tags |