Kristinn Danielsson wrote:
Hi

I have a Struts application and I want to use Merlin contained services in it.
I saw something like MerlinServlet in the avalon CVS. Would this be appropriate start for my investigation?

The Merlin servlet in cvs (under the merlin/kernel/servlet package) is basically a regular servlet that contains an embedded merlin kernel. It exists mainly as a example of how to embed merlin in such an environment.


There is also some work going on related to the 3.4 branch concerning a http server and model listener. Basically the listener is running within the merlin system and has a reference to the application meta-model. From here is can locate any component that is also a servlet. With this information incoming http requests can be directed to the servlet. Under this model the servlet is a component and is processed through a component lifecycle, can have multiple dependencies on other components, all the usual stuff context, logging, etc.

If so can someone tell me how I can access the Merlin contained services from my Struts Actions?

The root application container is assigned to a context attribute under the key "merlin-root-block". At this time its probably best to use Olaf's suggestion of taking the source as a guide and playing around with possibilities.


One think you should be aware of with respect to any embedded merlin scenario is that APIs are changing. This will not effect components running under Merlin - but will effect people referencing the kernel, block and model interfaces. One of the main objectives of the 3.4 is to finalize these interfaces.

Cheers, Steve.

--
|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|

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



Reply via email to