Hi Mounika,

No sorry I have had no luck with this yet.

My colleague has a theory on why some attributes are declared as write-only and I 
include details but this doesn't really get us closer to a solution.

I may look into writing my own version of the class that deals with reading mbean 
XML-hopefully by just subclassing.

Another alternative is to specify 2 deployment folders - the standard JBoss one and 
another one. We're already doing this here. We could then remove cluster-service.xml 
from the standard deploy folder and place a different cluster-service.xml file in the 
new deployment folder for each cluster i.e. with a different mcast_addr.

For example:

CLUSTER 1:
/root/jboss/server/all/deploy
/cluster1/deploy/cluster_service.xml  - mcast_addr X

CLUSTER 2:
/root/jboss/server/all/deploy
/cluster2/deploy/cluster_service.xml  - mcast_addr Y

Meantime I'm unfortunately working on something else so please let me know if you have 
any luck.

Regards

Mark

Write-only attribute theory...
anonymous wrote : 
  | I think i've worked out why that attirbute you found was write only... there is a 
case where that is the only way to solve a particular problem. Basically if an 
attribute is an object, then unless that object has a 'fromString' constructor then 
then jmx-console will error if the attribute is declared as readable.
  | 
  | Ive has to use a write-only attribute for the caches attribute on the main 
cacheManagement bean... here is my comment...
  | 
  |     <!-- property has to be write only, since it can only be written using a 
legitimate object ArrayList. the jmx-console will
  |       call the getter method (which will return a string form of the ArrayList), 
but then when any attribute is changed it will
  |       call the setter methods of ALL attributes that were read and displayed. 
However, the jmx-console has no idea how
  |       to convert the string version of the array list back into an array list 
object to call the setter with - hence it would
  |       error. The only way around this is to declare the proprty write-only which 
means the depends-list stuff in the jboss-service.xml
  |       file can correctly set up the pointers to the other MBeans that represent 
the caches, but the jmx-console cannot read the
  |       attribute and hence does not attempt to set it using a string version -->
  |     
  |         List of XmlData caches
  |         Caches
  |         java.util.ArrayList
  |     
  | 
  | Cheers
  | Bart
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842168#3842168

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842168


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to