History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: OSGI-532
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Costin Leau
Reporter: John McGinn
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring OSGi

Additional extension points for the TomcatWarDeployer - Configurable Host

Created: 16/Jun/08 09:50 AM   Updated: 22/Jul/08 11:32 AM
Component/s: WEB
Affects Version/s: 1.1 M2
Fix Version/s: 1.1.2

Time Tracking:
Not Specified

Environment: Tomcat 5.5 + Spring DM 1.1 M2


 Description  « Hide
The current Tomcat War Deployer installs the context into the first host on the catalina server. It may be possible to define multiple hosts in the attached server.xml, but the private getHost method in the TomcatWarDeployer class returns the first host always.

A strategy class that could be injected (in a similar fashion as the ContextPathStrategy) would be an ideal way to provide customization of this (e.g. a TomcatHosttrategy), the default strategy could be the logic in the current private getHost method.

See http://jira.springframework.org/browse/OSGI-531 for a similar enhancement for the Doc Base

****
As a work around I had to extend the TomcatWarDeployer and override the createDeployment and startDeployment methods, but the excessive private methods made extending just these points more cumbersome as well. I'd prefer the injected strategy pattern as used by the ContextStrategy.

 All   Comments   Work Log   Change History   FishEye   Related Builds      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.