KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > test > server > appserver > jboss4x > JBoss4xAppServer


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.jboss4x;
5
6 import org.codehaus.cargo.container.InstalledLocalContainer;
7 import org.codehaus.cargo.container.configuration.LocalConfiguration;
8 import org.codehaus.cargo.container.jboss.JBoss4xInstalledLocalContainer;
9 import org.codehaus.cargo.container.property.GeneralPropertySet;
10
11 import com.tc.test.server.appserver.cargo.CargoAppServer;
12 import com.tc.test.server.util.AppServerUtil;
13
14 import java.io.File JavaDoc;
15 import java.io.IOException JavaDoc;
16
17 /**
18  * JBoss4x AppServer implementation
19  */

20 public final class JBoss4xAppServer extends CargoAppServer {
21
22   public JBoss4xAppServer(JBoss4xAppServerInstallation installation) {
23     super(installation);
24   }
25
26   protected String JavaDoc cargoServerKey() {
27     return "jboss4x";
28   }
29
30   protected InstalledLocalContainer container(LocalConfiguration config) {
31     return new JBoss4xInstalledLocalContainer(config);
32   }
33
34   protected void setConfigProperties(LocalConfiguration config) throws Exception JavaDoc {
35     config.setProperty(GeneralPropertySet.RMI_PORT, Integer.toString(AppServerUtil.getPort()));
36   }
37   
38   protected void initiateStartupAppender(File JavaDoc sandboxDir) throws IOException JavaDoc {
39     new JBoss4xStartupAppender().pack(sandboxDir);
40   }
41 }
42
Popular Tags