[jboss-dev-forums] [Design of POJO Server] - Pushing MC notion to Seam/ServletContext

alesj do-not-reply at jboss.com
Wed Jul 23 05:01:03 EDT 2008


What would be the best/easiest way to push MC's Kernel/Controller/DeploymentUnit to Seam?

Seam apps start via ServletContextListener:
 - http://anonsvn.jboss.org/repos/seam/trunk/src/main/org/jboss/seam/servlet/SeamListener.java

So, if we could push MC references to ServletContext's (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html) attributes that would be the easiest/nicest way.
>From there on Seam would probably push it into its Context, and add a few wrappers/utils in this (http://anonsvn.jboss.org/repos/jbossas/projects/jboss-seam-int/) new integration project, to ease up the usage of MC's utils.

How hard it is to push MC's references into newly created ServletContext?
e.g. could we just add a similar deployer (http://anonsvn.jboss.org/repos/jbossas/projects/jboss-seam-int/trunk/microcontainer/src/main/org/jboss/seam/integration/microcontainer/deployers/SeamUrlIntegrationDeployer.java) that would modify the JBossWebMetaData, and add a MC-aware-ServletContext-creator notion. :-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166099#4166099

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166099



More information about the jboss-dev-forums mailing list