KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > test > server > appserver > tomcat5x > Tomcat5xAppServer


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.test.server.appserver.tomcat5x;
5
6 import org.codehaus.cargo.container.InstalledLocalContainer;
7 import org.codehaus.cargo.container.configuration.LocalConfiguration;
8 import org.codehaus.cargo.container.property.GeneralPropertySet;
9 import org.codehaus.cargo.container.tomcat.Tomcat5xInstalledLocalContainer;
10
11 import com.tc.test.server.appserver.cargo.CargoAppServer;
12 import com.tc.test.server.util.AppServerUtil;
13
14 /**
15  * Tomcat5x AppServer implementation
16  */

17 public final class Tomcat5xAppServer extends CargoAppServer {
18
19   public Tomcat5xAppServer(Tomcat5xAppServerInstallation installation) {
20     super(installation);
21   }
22
23   protected String JavaDoc cargoServerKey() {
24     return "tomcat5x";
25   }
26
27   protected InstalledLocalContainer container(LocalConfiguration config) {
28     return new Tomcat5xInstalledLocalContainer(config);
29   }
30
31   protected void setConfigProperties(LocalConfiguration config) throws Exception JavaDoc {
32     config.setProperty(GeneralPropertySet.RMI_PORT, Integer.toString(AppServerUtil.getPort()));
33   }
34 }
35
Popular Tags