Laurent Rieu wrote:

Hi,

After a quick look at the DefaultKernelLoader class (located in the merlin-core package), I have a few questions:

- what is the urn:merlin:kernel.profile parameter which is used in the internals but is not mentioned in the javadoc of the build() method ?


I've just updated the javadoc:


urn:merlin:kernel.profile

   Kernel configuration File argument that is used by
   the loader to establish the configuration to be used
   to configure the kernel.  Could be appropriate to reaname
   this to urn:merlin:kernel.config.path ?

- should I use this class to bootstrap a Kernel in a J2EE environment (ie what is commonly refered to as an embeded environment) ? And if so, why doesn't the MerlinServlet use this KernelLoader class ? I would like to bootstrap a Kernel instance and bind it into a JNDI context, and do it as cleanly as possible.


Probably not - but it is an example of instantiating a kernel. My assumptions have been that the loader would be inside a JNDI implementation - and that the loader would be much more URL based, and that the loader would make sure that classpath declarations included a repository that read from an unpacked jar file.

Having just written that I can already hear Leo complaining about
me being too complicated.  Ok - forget about JNDI for a moment -
what we need in a Servlet environment is to build all the required
information in a J2EEKernelLoader.  To do this we would typically
be working with URLS, unlike the default loader which uses a mixture
of files and URLs.  Secondly, the DefaultKernelLoader is implemented
on the assumption that there is a Merlin installation whcih is not
a valid assumption in a J2EE environment.  This means that the logic
of the loader would be somewhat different.  These differences also
need to be addressed in temrs of the mechanisms used for jar file
loading because in pricipal we should be loading jars from a sealed
web app and not a local Merlin repository.

Does that make sense?

Cheers, Steve.

--

Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to