3 import javax.xml.ws.Endpoint;
5 import configuration.ConfigXML;
7 public class BusinessLogicServerAWS {
9 public static void main(String args[]){
13 ConfigXML c=ConfigXML.getInstance();
16 if (c.isBusinessLogicLocal()) {
17 System.out.println("\nERROR, the business logic is configured as local");
22 if (!c.isDatabaseLocal()) {
23 System.out.println("\nWARNING: Please be sure ObjectdbManagerServer is launched\n in machine: "+c.getDatabaseNode()+" port: "+c.getDatabasePort()+"\n");
26 service= "http://"+c.getBusinessLogicNode() +":"+ c.getBusinessLogicPort()+"/ws/"+c.getBusinessLogicName();
28 Endpoint.publish(service, new BLFacadeImplementation());
30 System.out.println("\n\nRunning service at:\n\t" + service);
31 System.out.println("\n\n\nPress button to exit this server... ");
33 } catch (Exception e) {
34 System.out.println(e.toString());