This content has been marked as final.
Show 3 replies
-
1. FakeInitialContext and java:/ root names
tfreund Jun 23, 2003 4:34 PM (in response to rblack)I've modified the FakeInitialContext stuff so that you can now bind things to names like: java:/ConnectionFactory
What was needed was an InitialContextFactoryBuilder to make sure that the FakeInitialContext gets used rather than the "normal" InitialContext.
The way you set up things in the FakeInitialContext has changed from:HashMap bindings = new HashMap(); bindings.put("somename", myobj); bindings.put("othername", myobj2); FakeInitialContext.setBindings(bindings);
to:InitialContext ctx = new InitialContext();//The jndi.properties file + ICFBuilder makes sure the FakeInitialContext gets used ctx.bind("somename", myobj); ctx.bind("othername", myobj2);
If you use the first method (calling FakeInitialContext directly), you end up with two versions of the static bindings HashMap contained in FakeInitialContext in some cases for some bizarre reason. This happened in TestCmdSTARTTLS.
So far FakeInitialContext overrides the lookup(), bind(), rebind() and getDefaultInitialCtx() methods inherited from InitialContext(), there are a few others that might need overriding down the line if we run into any more problems.
Cheers,
Kab -
2. Re: Theme collection?
julien1 Jun 23, 2003 5:46 PM (in response to rblack)you are right... so far 3 themes, two have been ported and we designed an original one.
we are looking for theme porters/designers.
julien -