Safe, High performance, reuseable

Wednesday, October 08, 2008

Stand Alone Client call EJB ( JBoss 5)

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");

No comments: