01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: 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: /**
20: * @version $Revision: 1.3 $
21: */
22: public class RMIIIOPNotificationsTest extends JMXNotificationsTestCase {
23: public RMIIIOPNotificationsTest(String s) {
24: super (s);
25: }
26:
27: public JMXServiceURL createJMXConnectorServerAddress()
28: throws MalformedURLException {
29: return new JMXServiceURL("iiop", "localhost", 0);
30: }
31:
32: public Map getEnvironment() {
33: HashMap env = new HashMap();
34: env.put(Context.INITIAL_CONTEXT_FACTORY,
35: "com.sun.jndi.cosnaming.CNCtxFactory");
36: env.put(Context.PROVIDER_URL, "iiop://localhost:1100");
37: return env;
38: }
39: }
|