Package betsy.bpel.virtual.common.exceptions

Examples of betsy.bpel.virtual.common.exceptions.ConnectionException


        if (isConnected()) {
            // send object
            this.oos.writeObject(object);
            this.oos.flush();
        } else {
            throw new ConnectionException("Sending message failed: "
                    + "no connection to a server established!");
        }
    }
View Full Code Here


            // send message
            try {
                this.oos.writeObject(message);
                this.oos.flush();
            } catch (IOException e) {
                throw new ConnectionException("Sending message failed", e);
            }
        } else {
            throw new ConnectionException("Sending message failed: no connection"
                    + " to a server established!");
        }
    }
View Full Code Here

            LOGGER.info("Received Message: " + object);
            return object;
        } catch (ClassNotFoundException e) {
            throw new CommunicationException("Invalid response received", e);
        } catch (IOException e) {
            throw new ConnectionException("Could not receive a message", e);
        }
    }
View Full Code Here

    public void ensureConnection() {
        try {
            client.reconnect();
        } catch (IOException e) {
            throw new ConnectionException("could not reconnect", e);
        }
    }
View Full Code Here

TOP

Related Classes of betsy.bpel.virtual.common.exceptions.ConnectionException

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.