Cargo : Configuration properties
This page last changed on Apr 25, 2005 by vmassol.
DefinitionProperties to configure a container (request port, shutdown port, logging level, threads, etc)ExplanationsIt is possible to set container configuration properties using the Cargo API. These properties are applied to a Configuration.There are 2 kinds of properties:
General properties:
Example using the Java APIStarting Tomcat 5.x on a specific port:Container container = new Tomcat5xContainer(); container.setHomeDir("c:/apps/jakarta-tomcat-5.0.29"); Configuration configuration = container.getConfiguration(); configuration.setProperty(ServletPropertySet.PORT, "8081"); container.setConfiguration(configuration); [...] Example using the Ant APIStarting Tomcat 5.x on a specific port:<cargo-tomcat5x homeDir="c:/apps/jakarta-tomcat-5.0.29" action="start"> <configuration> <property name="cargo.servlet.port" value="8081"/> </configuration> </cargo-tomcat5x> |
![]() |
Document generated by Confluence on Apr 30, 2005 12:51 |