com.evermind.server.rmi
Class RMIInitialContextFactory
java.lang.Object
com.evermind.server.rmi.RMIInitialContextFactory
- All Implemented Interfaces:
- javax.naming.spi.InitialContextFactory
public class RMIInitialContextFactory
- extends java.lang.Object
- implements javax.naming.spi.InitialContextFactory
Factory for creating RMI contexts.
Supplied parameters:
dedicated.connection - whether or not to use a dedicated (socket level) connection for this context. Useful if you want to connect to other servers and avoid looking up local object instances first.
java.naming.provider.url - The target URL, it's format is: [http:|https:][ormi:|ormis:]//hostname/applicationname. Prefixing with http: or https: enables http(s) tunneling, this option is not valid followed by 'ormis' (just 'ormi'). It is possible to supply multiple hosts (for failover) by using a comma-separated list.
For instance ormi://first.server.com,ormi://second.server.com.
http.tunnel.path - Specifies an alternative RMIHttpTunnelServlet path if not using the default. The default is /servlet/rmi (at which location the tunnel servlet should be bound to the target site's web-app).
- Author:
- Magnus Stenman
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMIInitialContextFactory
public RMIInitialContextFactory()
main
public static void main(java.lang.String[] args)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
getInitialContext
public javax.naming.Context getInitialContext(java.util.Hashtable environment)
throws javax.naming.NamingException
- Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
- Throws:
javax.naming.NamingException
resetContexts
public static void resetContexts()