4 Replies Latest reply on Jul 29, 2008 4:51 AM by Ales Justin

    Pushing MC notion to Seam/ServletContext

    Ales Justin Master

      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. :-)