4 import configuration.ConfigXML;
8 public class ObjectdbManagerServerAWS {
12 public static void main(String[] args) {
14 ConfigXML c=ConfigXML.getInstance();
16 if (c.isDatabaseLocal()) {
17 System.out.println("\nERROR, the database is configured as local");
22 System.out.println("Lauching objectdb server");
23 try { // Se va a ejecutar en máquina Linux: usar "/"
24 String st="java -cp resources/objectdb.jar com.objectdb.Server -port "+ c.getDatabasePort()+" start";
25 System.out.println(st);
26 Runtime.getRuntime().exec(st);
27 } catch (Exception ioe) {
28 System.out.println (ioe);
31 System.out.println("\nAccess granted to: "+c.getUser());
33 System.out.println("\nPress key to exit this database server... ");
35 while(System.in.available()==0){
39 } catch (Exception e) {
40 System.out.println("Something has happened in ObjectdbManagerServer: "+e.toString());