248249250251252253254255
public void stop() throws ServiceException { super.stop(); try { agent.unregisterService(uri); } catch (Exception e) { throw new ServiceException(e); } }
181182183184185186187188
super.start(); try { uri = new URI("ejb:ejbd://localhost:" + getPort() + "/" + host); agent.registerService(uri); } catch (Exception e) { throw new ServiceException(e); } }
190191192193194195196197
187188189190191192193194
Timer timer = new Timer("MulticastDiscovery: Broadcaster", true); timer.scheduleAtFixedRate(broadcaster, 0, heartRate); } } catch (Exception e) { throw new ServiceException(e); } }
115116117118119120121122
public void start() throws ServiceException { try { server.start(); } catch (Exception e) { throw new ServiceException(e); } }
123124125126127128129130
public void stop() throws ServiceException { try { server.stop(); } catch (Exception e) { throw new ServiceException(e); } }
6465666768697071
if (disabled) return; try { broker.start(); } catch (Exception e) { throw new ServiceException(e); } }
76777879808182838485
return; } try { broker.stop(); } catch (Exception e) { throw new ServiceException(e); } finally { broker = null; } }
136137138139140141142143
this.address = new InetSocketAddress(inetAddress, port); multicast = new Multicast(tracker); } } catch (Exception e) { throw new ServiceException(e); } }
93949596979899100
this.serverControl.start(new LoggingPrintWriter("Derby")); if (verbose) { LOGGER.info("Starting openejb-derbynet with derby " + serverControl.getRuntimeInfo() + " " + serverControl.getSysinfo()); } } catch (Exception e) { throw new ServiceException(e); } }