-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathXmlAdder.java
More file actions
49 lines (42 loc) · 1.31 KB
/
XmlAdder.java
File metadata and controls
49 lines (42 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* This file is part of the QuickServer library
* Copyright (C) 2003-2005 QuickServer.org
*
* Use, modification, copying and distribution of this software is subject to
* the terms and conditions of the GNU Lesser General Public License.
* You should have received a copy of the GNU LGP License along with this
* library; if not, you can download a copy from <http://www.quickserver.org/>.
*
* For questions, suggestions, bug-reports, enhancement-requests etc.
* visit http://www.quickserver.org
*
*/
package xmladder;
import java.io.*;
import org.quickserver.net.*;
import org.quickserver.net.server.*;
import java.util.logging.*;
import org.quickserver.util.logging.*;
/**
* A simple XML adding server.
*/
public class XmlAdder {
public static void main(String args[]) {
Logger logger = Logger.getLogger("");
//logger.setLevel(Level.FINEST);
logger.setLevel(Level.FINE);
QuickServer myServer = new QuickServer();
String confFile = "." + File.separator + ".." + File.separator +
"conf" + File.separator + "XmlAdder.xml";
Object config[] = new Object[] {confFile};
if(myServer.initService(config)==true) {
try {
myServer.startServer();
myServer.startQSAdminServer();
} catch(AppException e){
System.err.println("Error in server : "+e);
e.printStackTrace();
}
}
}
}