Hello. Just finished a FortressContextListener. It's a ServletContextListener which establishes a Fortress DefaultContainer and places the ServiceManager in the servlet context. This should be generic enough to work with any existing webapp you have, allowing you to access Avalon services in your servlets, Struts actions, jsp tags, etc. JNDI bindings would be the next step forward and I'll start working on that soon.
A couple of caveats: - Currently you need to use a roles file (WEB-INF/system.roles). Technically it's optional, but I can't seem to get Fortress to find all my services using just the meta approach, so for now, you'll need to use roles configuration. - The ServiceManager has a one to one correspondence with your web application. - It uses some of the latest code from Fortress, so if you want to build from scratch you'll need to check out avalon from CVS. - There are probably bugs to be found and improvements to be made. I just whipped this up this evening. I've tested the code and put together a small example which works in Tomcat at least. Currently you can get everything from my wiki at http://jadetower.org/vqwiki/jsp/Wiki?FortressServlet Berin, would this be appropriate to put in CVS at /avalon/fortress/servlet ? J. Aaron Farr � SONY ELECTRONICS � DDP-CIM � (724) 696-7653 � --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
