Package org.apache.openejb.client.event

Examples of org.apache.openejb.client.event.ConnectionOpened


                } else {
                    socket = new Socket(uri.getHost(), uri.getPort());
                }

                socket.setTcpNoDelay(true);
                Client.fireEvent(new ConnectionOpened(uri));
            } catch (ConnectException e) {
                throw new IOException("Cannot connect to server '" + uri.toString() + "'.  Check that the server is started and that the specified serverURL is correct.", e);

            } catch (IOException e) {
                throw new IOException("Cannot connect to server: '" + uri.toString() + "'.  Exception: " + e.getClass().getName() + " : " + e.getMessage(), e);
View Full Code Here


                this.socket.connect(address, SocketConnectionFactory.this.timeoutConnect);

                //Four hours default
                this.socket.setSoTimeout(SocketConnectionFactory.this.timeoutRead);

                Client.fireEvent(new ConnectionOpened(uri));

            } catch (final ConnectException e) {
                throw this.failure("Cannot connect to server '" + uri.toString() + "'.  Check that the server is started and that the specified serverURL is correct.", e);

            } catch (final IOException e) {
View Full Code Here

                this.socket.connect(address, SocketConnectionFactory.this.timeoutConnect);

                //Four hours default
                this.socket.setSoTimeout(SocketConnectionFactory.this.timeoutRead);

                Client.fireEvent(new ConnectionOpened(uri));

            } catch (ConnectException e) {
                throw this.failure("Cannot connect to server '" + uri.toString() + "'.  Check that the server is started and that the specified serverURL is correct.", e);

            } catch (IOException e) {
View Full Code Here

                this.socket.setTcpNoDelay(true);
                this.socket.setSoLinger(true, SocketConnectionFactory.this.timeoutLinger);
                this.socket.connect(address, SocketConnectionFactory.this.timeoutSocket);

                Client.fireEvent(new ConnectionOpened(uri));

            } catch (ConnectException e) {
                throw this.failure("Cannot connect to server '" + uri.toString() + "'.  Check that the server is started and that the specified serverURL is correct.", e);

            } catch (IOException e) {
View Full Code Here

                this.socket.connect(address, SocketConnectionFactory.this.timeoutConnect);

                //Four hours default
                this.socket.setSoTimeout(SocketConnectionFactory.this.timeoutRead);

                Client.fireEvent(new ConnectionOpened(uri));

            } catch (ConnectException e) {
                throw this.failure("Cannot connect to server '" + uri.toString() + "'.  Check that the server is started and that the specified serverURL is correct.", e);

            } catch (IOException e) {
View Full Code Here

                this.socket.setTcpNoDelay(true);
                this.socket.setSoLinger(true, 10);
                this.socket.connect(address, SocketConnectionFactory.this.timeoutSocket);

                Client.fireEvent(new ConnectionOpened(uri));

            } catch (ConnectException e) {
                throw this.failure("Cannot connect to server '" + uri.toString() + "'.  Check that the server is started and that the specified serverURL is correct.", e);

            } catch (IOException e) {
View Full Code Here

                this.socket.setTcpNoDelay(true);
                this.socket.setSoLinger(true, 10);
                this.socket.connect(address, SocketConnectionFactory.this.timeoutSocket);

                Client.fireEvent(new ConnectionOpened(uri));

            } catch (ConnectException e) {
                throw this.failure("Cannot connect to server '" + uri.toString() + "'.  Check that the server is started and that the specified serverURL is correct.", e);

            } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.apache.openejb.client.event.ConnectionOpened

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.