RE: [JBoss-user] Setting XMBean attributes to read-only at run time

2003-06-20 Thread Adrian Brock
Director of Support Back Office JBoss Group, LLC > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Eric Jain > Sent: 20 June 2003 17:06 > To: jboss-user > Subject: [JBoss-user] Setting XMBean attributes

Re: [JBoss-user] Setting XMBean attributes to read-only at run time

2003-06-20 Thread Scott M Stark
AM Subject: [JBoss-user] Setting XMBean attributes to read-only at run time > What's wrong with the following code? It runs, but without any effect. > > /** >* @jmx.managed-operation >* impact="ACTION" >*/ > > public void setReadOnly() &

[JBoss-user] Setting XMBean attributes to read-only at run time

2003-06-20 Thread Eric Jain
What's wrong with the following code? It runs, but without any effect. /** * @jmx.managed-operation * impact="ACTION" */ public void setReadOnly() throws Exception { ModelMBeanInfo info = (ModelMbeanInfo) server.getMBeanInfo(name); // Direct invocation of getModelM