Hi,

Is there an easier way (I mean without the loop! I want to access the value 
directly...) to get the value of an attribute?

(here is a code sample of what im using now...)


  | InitialContext ctx = new InitialContext();
  | ObjectName objectName = new ObjectName("chap2.ex1:service=JNDIMap");
  | MBeanServer server = MBeanServerLocator.locateJBoss();
  | MBeanInfo mBeanInfo = server.getMBeanInfo(objectName);
  | MBeanAttributeInfo[] arrAttributeInfo = mBeanInfo.getAttributes();
  | for(int a = 0; a < arrAttributeInfo.length; a ++)
  | {
  |     AttrResultInfo attrResult = 
Server.getMBeanAttributeResultInfo("chap2.ex1:service=JNDIMap", arrAttributeInfo[a]);
  |     String attrValue = attrResult.getAsText();
  |     out.println(attrValue);
  | }
  | 

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

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


-------------------------------------------------------
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