CVS update: JGroups/src/org/jgroups/demos ProgrammaticChat.java

"Bela Ban" <[email protected]> Wed, 20 Oct 2010 14:09:56 +0000
Newsgroups gmane.comp.java.javagroups.cvs
Message-ID <[email protected]>
  User: belaban 
  Date: 10/10/20 14:09:56

  Modified:    src/org/jgroups/demos ProgrammaticChat.java
  Log:
  https://jira.jboss.org/browse/JGRP-1245
  
  Revision  Changes    Path
  1.3       +3 -2      JGroups/src/org/jgroups/demos/ProgrammaticChat.java
  
  Index: ProgrammaticChat.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/demos/ProgrammaticChat.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ProgrammaticChat.java	20 Oct 2010 11:35:10 -0000	1.2
  +++ ProgrammaticChat.java	20 Oct 2010 14:09:56 -0000	1.3
  @@ -15,13 +15,14 @@
   
   /**
    * @author Bela Ban
  - * @version $Id: ProgrammaticChat.java,v 1.2 2010/10/20 11:35:10 belaban Exp $
  + * @version $Id: ProgrammaticChat.java,v 1.3 2010/10/20 14:09:56 belaban Exp $
    */
   public class ProgrammaticChat {
   
       public static void main(String[] args) throws Exception {
           JChannel ch=new JChannel(false);
  -        ProtocolStack stack=ch.createProtocolStack();
  +        ProtocolStack stack=new ProtocolStack();
  +        ch.setProtocolStack(stack);
           stack.addProtocol(new UDP().setValue("bind_addr", InetAddress.getByName("192.168.1.5")))
                   .addProtocol(new PING())
                   .addProtocol(new MERGE2())
  
  
  

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev