[jboss-jira] [JBoss JIRA] Reopened: (JGRP-270) can't get correct values when using jmx.JChannel

Ivan Martinez (JIRA) jira-events at jboss.com
Thu Aug 10 07:54:14 EDT 2006


     [ http://jira.jboss.com/jira/browse/JGRP-270?page=all ]

Ivan Martinez reopened JGRP-270:
--------------------------------

             
This part of patch still necessary with your changes :

Index: src/org/jgroups/JChannel.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/JChannel.java,v
retrieving revision 1.86
diff -u -r1.86 JChannel.java
--- src/org/jgroups/JChannel.java	31 Jul 2006 09:29:09 -0000	1.86
+++ src/org/jgroups/JChannel.java	9 Aug 2006 22:17:49 -0000
@@ -838,6 +838,10 @@
             	return receive_blocks ? Boolean.TRUE : Boolean.FALSE;
             case SUSPECT:
             	return Boolean.TRUE;
+            case AUTO_RECONNECT:
+                return auto_reconnect ? Boolean.TRUE : Boolean.FALSE;
+            case AUTO_GETSTATE:
+                return auto_getstate ? Boolean.TRUE : Boolean.FALSE;
             case GET_STATE_EVENTS:
                 return Boolean.TRUE;
             case LOCAL:


> can't get correct values when using jmx.JChannel
> ------------------------------------------------
>
>                 Key: JGRP-270
>                 URL: http://jira.jboss.com/jira/browse/JGRP-270
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.3 SP1
>            Reporter: Ivan Martinez
>         Assigned To: Bela Ban
>            Priority: Minor
>             Fix For: 2.4
>
>         Attachments: jgroups_jmx_gets.patch
>
>
> I'm looking at jmx.JChannel class and I found this atributes :
> private boolean receive_blocks=false;
> private boolean receive_local_msgs=true;
> private boolean auto_reconnect=false;
> private boolean auto_getstate=false;
> String group_name="TestGroup";
> The problem when using the object using the constructor jmx.JChannel(JChannel) : 
> when the object is initialized the values are not initialized using the real channel options.
> The get methods use this values instead of using channel.getOpt
> The values will be correct only after the set** methodas are called on jmx object.
> when the bean is created using jmx.JChannel() constructor and the create() method called then it will works fine, because the real channel will be created inside the bean with the current values.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list