/** * Launches two threads that concurrently listen on the inboundPort and * outboundPort. * * @see ca.uhn.hl7v2.app.HL7Service#afterStartup() */ @Override protected void afterStartup() { try { super.afterStartup(); inboundAcceptor = createAcceptThread(inboundPort); outboundAcceptor = createAcceptThread(outboundPort); inboundAcceptor.start(); outboundAcceptor.start(); log.info("TwoPortService running on ports {} and {}", inboundPort, outboundPort); } catch (IOException e) { log.error("Could not run TwoPortService on ports {} and {}", inboundPort, outboundPort); throw new RuntimeException(e); } }
/** * Launches two threads that concurrently listen on the inboundPort and * outboundPort. * * @see ca.uhn.hl7v2.app.HL7Service#afterStartup() */ @Override protected void afterStartup() { try { super.afterStartup(); inboundAcceptor = createAcceptThread(inboundPort); outboundAcceptor = createAcceptThread(outboundPort); inboundAcceptor.start(); outboundAcceptor.start(); log.info("TwoPortService running on ports {} and {}", inboundPort, outboundPort); } catch (IOException e) { log.error("Could not run TwoPortService on ports {} and {}", inboundPort, outboundPort); throw new RuntimeException(e); } }
/** * Prepare server by initializing the server socket * * @see ca.uhn.hl7v2.app.HL7Service#afterStartup() */ @Override protected void afterStartup() { try { super.afterStartup(); log.info("Starting SimpleServer running on port {}", port); SocketFactory ss = this.hapiContext.getSocketFactory(); acceptor = new AcceptorThread(port, tls, getExecutorService(), queue, ss); acceptor.start(); } catch (Exception e) { log.error("Failed starting SimpleServer on port", port); throw new RuntimeException(e); } }
/** * Prepare server by initializing the server socket * * @see ca.uhn.hl7v2.app.HL7Service#afterStartup() */ @Override protected void afterStartup() { try { super.afterStartup(); log.info("Starting SimpleServer running on port {}", port); SocketFactory ss = this.hapiContext.getSocketFactory(); acceptor = new AcceptorThread(port, tls, getExecutorService(), queue, ss); acceptor.start(); } catch (Exception e) { log.error("Failed starting SimpleServer on port", port); throw new RuntimeException(e); } }