[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-198) Create a Tomcat extension
Dan Allen (JIRA)
jira-events at lists.jboss.org
Mon Jun 28 15:41:46 EDT 2010
[ https://jira.jboss.org/browse/SHRINKWRAP-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12537247#action_12537247 ]
Dan Allen commented on SHRINKWRAP-198:
--------------------------------------
The only question I have is how far to go when setting up the StandardContext. For instance, we obviously need:
this.setDocBase(exported.getAbsolutePath());
this.setPath(baseName);
But should we also include this boiler plate code?
ContextConfig config = new ContextConfig();
((Lifecycle) this).addLifecycleListener(config);
this.setManager(new StandardManager());
Even after the StandardContext is created, a Tomcat container implementation will need to do some follow up work that involves wiring it to the Host created for the embedded container object:
StandardContext standardContext = archive.as(ShrinkWrapStandardContext.class);
standardContext.setParent(host);
host.addChild(standardContext);
> Create a Tomcat extension
> -------------------------
>
> Key: SHRINKWRAP-198
> URL: https://jira.jboss.org/browse/SHRINKWRAP-198
> Project: ShrinkWrap
> Issue Type: Feature Request
> Affects Versions: 1.0.0-alpha-10
> Reporter: Dan Allen
> Assignee: Dan Allen
> Priority: Minor
> Fix For: 1.0.0-alpha-11
>
>
> Create a Tomcat extension for a ShrinkWrap archive that translates it into a StandardContext.
> A initial Tomcat container for Arquillian is manually exporting the ShrinkWrap archive and building from that a StandardContext. [1] This translation should be abstracted away into a ShrinkWrap extension.
> The adapter will be very similar to the Jetty extension.
> [1] http://anonsvn.jboss.org/repos/common/arquillian/trunk/containers/tomcat-embedded-6/
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list