Package org.jgroups

Examples of org.jgroups.Channel.connect()


    public void testCreationAndClose() throws Exception {
        System.out.println("-- creating channel1 --");
        Channel c = null;
        c = createChannel();
        c.connect("testCreationAndClose");
        assertTrue("channel open", c.isOpen());
        assertTrue("channel connected", c.isConnected());       
        c.close();       
        assertFalse("channel not connected", c.isConnected());
        c.close();
View Full Code Here


    public TransportChannel create(WireFormat wireFormat, URI remoteLocation) throws JMSException {
        try {
            Channel channel = createChannel(remoteLocation);
            channel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
            channel.connect(channelName);
            return populateProperties(new JGroupsTransportChannel(wireFormat, channel, null), remoteLocation);
        }
        catch (ChannelException e) {
            throw JMSExceptionHelper.newJMSException("Failed to construct JGroups Channel: " + e, e);
        }
View Full Code Here

    public TransportChannel create(WireFormat wireFormat, URI remoteLocation) throws JMSException {
        try {
            Channel channel = createChannel(remoteLocation);
            channel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
            channel.connect(channelName);
            return new JGroupsTransportChannel(wireFormat, channel, null);
        }
        catch (ChannelException e) {
            throw JMSExceptionHelper.newJMSException("Failed to construct JGroups Channel: " + e, e);
        }
View Full Code Here

    Channel channel = this.dispatcher.getChannel();
   
    channel.setDiscardOwnMessages(false);
   
    // Connect and fetch state
    channel.connect(this.id, null, 0);
  }

  /**
   * {@inheritDoc}
   * @see net.sf.hajdbc.Lifecycle#stop()
View Full Code Here

    public TransportChannel create(WireFormat wireFormat, URI remoteLocation) throws JMSException {
        try {
            Channel channel = createChannel(remoteLocation);
            channel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
            channel.connect(channelName);
            return populateProperties(new JGroupsTransportChannel(wireFormat, channel, null), remoteLocation);
        }
        catch (ChannelException e) {
            throw JMSExceptionHelper.newJMSException("Failed to construct JGroups Channel: " + e, e);
        }
View Full Code Here

    public TransportChannel create(WireFormat wireFormat, URI remoteLocation) throws JMSException {
        try {
            Channel channel = createChannel(remoteLocation);
            channel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
            channel.connect(channelName);
            return populateProperties(new JGroupsTransportChannel(wireFormat, channel, null), remoteLocation);
        }
        catch (ChannelException e) {
            throw JMSExceptionHelper.newJMSException("Failed to construct JGroups Channel: " + e, e);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.