@Override public String getIP() { return httpServer.getIP(); } }
@Override public int getPort() { return httpServer.getPort(); }
@Override public void service(final Socket socket) throws ServiceException, IOException { httpServer.service(socket); }
@Override public void start() throws ServiceException { httpServer.start(); }
@Override public void stop() throws ServiceException { httpServer.stop(); }
@Override public void init(final Properties props) throws Exception { name = props.getProperty("name"); final EjbServer ejbServer = new EjbServer(); final ServerServiceAdapter adapter = new ServerServiceAdapter(ejbServer); final SystemInstance systemInstance = SystemInstance.get(); HttpListenerRegistry registry = systemInstance.getComponent(HttpListenerRegistry.class); if (registry == null) { registry = new HttpListenerRegistry(); systemInstance.setComponent(HttpListenerRegistry.class, registry); } registry.addHttpListener(adapter, "/ejb/?.*"); // register the http server systemInstance.setComponent(HttpServer.class, httpServer); httpServer.init(props); ejbServer.init(props); }
@Override public void start() throws ServiceException { httpServer.start(); }
@Override public void stop() throws ServiceException { httpServer.stop(); }
public void init(Properties props) throws Exception { name = props.getProperty("name"); EjbServer ejbServer = new EjbServer(); ServerServiceAdapter adapter = new ServerServiceAdapter(ejbServer); SystemInstance systemInstance = SystemInstance.get(); HttpListenerRegistry registry = systemInstance.getComponent(HttpListenerRegistry.class); if (registry == null){ registry = new HttpListenerRegistry(); systemInstance.setComponent(HttpListenerRegistry.class, registry); } registry.addHttpListener(adapter, "/ejb/?.*"); // register the http server systemInstance.setComponent(HttpServer.class, httpServer); httpServer.init(props); ejbServer.init(props); }
@Override public void service(final InputStream in, final OutputStream out) throws ServiceException, IOException { httpServer.service(in, out); }
@Override public String getIP() { return httpServer.getIP(); } }
@Override public int getPort() { return httpServer.getPort(); }
public void start() throws ServiceException { httpServer.start(); }
public void stop() throws ServiceException { httpServer.stop(); }
@Override public void init(final Properties props) throws Exception { name = props.getProperty("name"); final EjbServer ejbServer = new EjbServer(); final ServerServiceAdapter adapter = new ServerServiceAdapter(ejbServer); final SystemInstance systemInstance = SystemInstance.get(); HttpListenerRegistry registry = systemInstance.getComponent(HttpListenerRegistry.class); if (registry == null) { registry = new HttpListenerRegistry(); systemInstance.setComponent(HttpListenerRegistry.class, registry); } registry.addHttpListener(adapter, "/ejb/?.*"); // register the http server systemInstance.setComponent(HttpServer.class, httpServer); httpServer.init(props); ejbServer.init(props); }
@Override public void service(final InputStream in, final OutputStream out) throws ServiceException, IOException { httpServer.service(in, out); }
public String getIP() { return httpServer.getIP(); } }
public int getPort() { return httpServer.getPort(); }
@Override public void service(final Socket socket) throws ServiceException, IOException { httpServer.service(socket); }
public void service(Socket socket) throws ServiceException, IOException { httpServer.service(socket); }