Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
environment.put(Context.PROVIDER_URL, "localhost:1099");
InitialContext context = new InitialContext(environment);
RuleEngineRemote mrs = (RuleEngineRemote)context.lookup("RuleEngineEAR/RuleEngine/remote");
Safe, High performance, reuseable
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment