On Wed, 17 Oct 2001 21:32, Serge Knystautas wrote:
> I'm not looking for industrial strength... I just think developers would be
> more comfortable using the JNDI API/approach that's used in webservers and
> EJB servers. This is specifically for mailet and matcher developers, not
> general James development. This is part of trying to make James and
> mailets feel like a friendly/approachable development platform.
Okay - in that case you will have to do something like the following.
Create an InitialContextFactory (similar to MemeoryInitialContext factory in
excalibur) that creates a MemoryContext (from excalibur) and binds it to a
static variable. You will then have to change a system property to specify
this factory (forget what it actually is). You will then have to extract all
needed services from Avalons CM and stuff them into JNDI under approriate
names.
After that you *should* be good to go ;)
--
Cheers,
Pete
---------------------------------------------
We shall not cease from exploration, and the
end of all our exploring will be to arrive
where we started and know the place for the
first time -- T.S. Eliot
---------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]