CVS update: JGroups/src/org/jgroups JChannel.java
"Bela Ban" <[email protected]> Wed, 20 Oct 2010 14:08:51 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/10/20 14:08:51
Modified: src/org/jgroups JChannel.java
Log:
modified setProtocolStack() and removed createProtocolStack()
(https://jira.jboss.org/browse/JGRP-1245)
Revision Changes Path
1.250 +3 -6 JGroups/src/org/jgroups/JChannel.java
Index: JChannel.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/JChannel.java,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -r1.249 -r1.250
--- JChannel.java 6 Oct 2010 09:46:24 -0000 1.249
+++ JChannel.java 20 Oct 2010 14:08:51 -0000 1.250
@@ -81,7 +81,7 @@
* the construction of the stack will be aborted.
*
* @author Bela Ban
- * @version $Id: JChannel.java,v 1.249 2010/10/06 09:46:24 belaban Exp $
+ * @version $Id: JChannel.java,v 1.250 2010/10/20 14:08:51 belaban Exp $
*/
@MBean(description="JGroups channel")
public class JChannel extends Channel {
@@ -295,11 +295,6 @@
receive_local_msgs=ch.receive_local_msgs;
}
- public ProtocolStack createProtocolStack() {
- prot_stack=new ProtocolStack();
- prot_stack.setChannel(this);
- return prot_stack;
- }
/**
@@ -311,6 +306,8 @@
public void setProtocolStack(ProtocolStack stack) {
this.prot_stack=stack;
+ if(prot_stack != null)
+ prot_stack.setChannel(this);
}
protected Log getLog() {
------------------------------------------------------------------------------
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