Package org.apache.openejb.server

Examples of org.apache.openejb.server.ServiceException


        public void stop() throws ServiceException {
            super.stop();
            try {
                agent.unregisterService(uri);
            } catch (Exception e) {
                throw new ServiceException(e);
            }
        }
View Full Code Here


            super.start();
            try {
                uri = new URI("ejb:ejbd://localhost:" + getPort() + "/" + host);
                agent.registerService(uri);
            } catch (Exception e) {
                throw new ServiceException(e);
            }
        }
View Full Code Here

        public void stop() throws ServiceException {
            super.stop();
            try {
                agent.unregisterService(uri);
            } catch (Exception e) {
                throw new ServiceException(e);
            }
        }
View Full Code Here

                Timer timer = new Timer("MulticastDiscovery: Broadcaster", true);
                timer.scheduleAtFixedRate(broadcaster, 0, heartRate);
            }
        } catch (Exception e) {
            throw new ServiceException(e);
        }
    }
View Full Code Here

    public void start() throws ServiceException {
        try {
            server.start();
        } catch (Exception e) {
            throw new ServiceException(e);
        }
    }
View Full Code Here

    public void stop() throws ServiceException {
        try {
            server.stop();
        } catch (Exception e) {
            throw new ServiceException(e);
        }
    }
View Full Code Here

        if (disabled)
            return;
        try {
            broker.start();
        } catch (Exception e) {
            throw new ServiceException(e);
        }
    }
View Full Code Here

            return;
        }
        try {
            broker.stop();
        } catch (Exception e) {
            throw new ServiceException(e);
        } finally {
            broker = null;
        }
    }
View Full Code Here

                this.address = new InetSocketAddress(inetAddress, port);
                multicast = new Multicast(tracker);
            }
        } catch (Exception e) {
            throw new ServiceException(e);
        }
    }
View Full Code Here

            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);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.server.ServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.