Re: Merlin Servlet Example

Stephen McConnell <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <[email protected]>
Rakesh Jain wrote:

> Hi,
> 
> I am new to Avalon and able to use it (Merlin) very easily, thanks
> for all the great work done here. I saw that we can use Merlin in
> Servlet Container also. Could you give me some examples/benefits of
> using Merlin in a servlet container.

Re. Benefits
------------

One benefit I see in using merlin from within a servlet is that it 
provides a way of hosting merlin in an environment that thinks of 
servlet as application units.  For example, a provider of an app-server 
may be cool about adding new servlets - but not ready to add and 
maintain a new applications.

Another reason for embedded merlin in a servlet is to provide a richer 
service management model as part of the servlet implementation.  This 
get more interesting with the work that is going on with respect to the 
http facility under which requests get funneled to http message handlers.

What I see as a probably outcome is that developers will use the http 
facility to build, test and validate component based web-apps. The 
deployment solution is then a separate concern - could be in a web-app, 
couple via merlin running as a managed service, whatever - the 
application should not care because the application is portable across 
different deployment environments.

Re. Examples
------------

There is some stuff in svn under the runtime/merlin/servlet directory. 
This is not included in the main build and should be moved out in the 
near future (part of separating deployment solutions from the runtime 
solutions).  Anyway - the code is a valid example of embedding merlin in 
a servlet - but I would call it more of a demo of the initial steps to 
doing a full blown servlet deployment solution.

Steve.


> Thanks -- RK
> 
>  --------------------------------- Do you Yahoo!? Vote for the stars
> of Yahoo!'s next ad campaign!


-- 

|---------------------------------------|
| Magic by Merlin                       |
| Production by Avalon                  |
|                                       |
| http://avalon.apache.org              |
|---------------------------------------|
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.