This content has been marked as final.
Show 1 reply
-
1. Re: local JBossNS without opening socket or discovery
starksm64 Jan 4, 2005 2:56 PM (in response to mazz)You need to create a testcase naming server. See the org.jboss.test.naming.test.NamingServerSetup in the testsuite. Its setup method should just be something like:
protected void setUp() throws Exception { super.setUp(); namingServer = new Main(); namingServer.setPort(-1); namingServer.setLookupPool(new BasicThreadPool()); namingServer.start(); NamingContext.setLocal(namingServer); }