ISBets21MAUBRY
3cf4057e97448d401b49261033b8ab566105944e
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 |
package businessLogic; import javax.xml.ws.Endpoint; import configuration.ConfigXML; public class BusinessLogicServerAWS { public static void main(String args[]){ String service; ConfigXML c=ConfigXML.getInstance(); if (c.isBusinessLogicLocal()) { System.out.println("\nERROR, the business logic is configured as local"); } else { try { if (!c.isDatabaseLocal()) { System.out.println("\nWARNING: Please be sure ObjectdbManagerServer is launched\n in machine: "+c.getDatabaseNode()+" port: "+c.getDatabasePort()+"\n"); } service= "http://"+c.getBusinessLogicNode() +":"+ c.getBusinessLogicPort()+"/ws/"+c.getBusinessLogicName(); Endpoint.publish(service, new BLFacadeImplementation()); System.out.println("\n\nRunning service at:\n\t" + service); System.out.println("\n\n\nPress button to exit this server... "); } catch (Exception e) { System.out.println(e.toString()); } } } } |
Commits for ISBets21MAUBRYeclipse-workspace/ISBets21MAUBRY/src/main/java/businessLogic/BusinessLogicServerAWS.java
Revision | Author | Commited | Message |
---|---|---|---|
3cf405 ... | porkipig | Sun 16 May, 2021 19:27:29 +0000 | IteraciĆ³n 3(VersiĆ³n sin idiomas) |