Hi Dimitri,

first off: What you are trying to do has been done before. I, for instance,
have Merlin running embedded in Tomcat. There is, however, a crucial
distinction to be made when developing with Avalon:

(1) Avalon Framework: In essence a bunch of interfaces and conventions
defining the contract between a component and its container. By itself, the
framework does nothing. It's a specification, not an implementation.

(2) The various Avalon containers, now to be consolidated in Merlin. The
container provides the runtime environment for components written to the
specs as defined by the Avalon framework.

> -----Original Message-----
>
> Hello all,
>
> i'm new in Avalon Framework and Merlin and have some questions.
> We will use an Avalon Framework as base for our product, wich shall run
> under J2SE as well under J2EE (in EJB and Servlet containers).
>
> 1. Can i instanitate a Framework in EJB and Servlet containers and how?
>     How can i instantiate the Framework in my J2SE application?

Your question is: How can I instantiate an Avalon container in my
EJB/Servlet container, and which Avalon container should I choose? Regarding
choice of containers, you have two options: Merlin and Fortress. As
mentioned above Merlin is now the officially supported Avalon container,
whereas Fortress' fate remains to be determined. I am under the impression,
however, that Fortress lends itself better to embedding scenarios.

For an example of how to create a Merlin instance in a servlet environment
have a look at org.apache.avalon.merlin.servlet.MerlinServlet under
merlin/servlet/src/java in CVS. Once created, it's stored in the servlet
context, but you might as well store it in JNDI.

I never used Fortress so I cannot comment on its usage.

> 2. How can i dynamically configure the Framework (install, load, unload,
> etc.)?
> 3. I will pake components in jars and load it dynamically during
> deployment
>     in the Framework. How can i do this?
>

I am not sure if this is at all possible with Merlin (or Fortress). One of
the more knowledgeable guys might help you here, though.

Hope this helps,

Olaf Bergner


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

Reply via email to