[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-18 Thread cnsxxx09
I have put it into JIRA at least: http://jira.jboss.com/jira/browse/JBAS-3859 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3987048#3987048 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3987048

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-17 Thread cococ
Hi, I've also noticed this problem. Specifying a value (or a default) just does not work in the persistence.sar (using either method listed in the Wiki). Is there any news on getting this resolved? Thanks, Christopher View the original post :

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-13 Thread cnsxxx09
Hi, I couldn't find anything in JIRA for this ... so I don't know if it's a bug, or a 'to do' (or if I misunderstood how it is supposed to work). It's easy to reproduce, just by editing the persistence service sar file's jboss-service.xml file and adding one [value] XML tag. Chris View the

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-10 Thread cnsxxx09
Hi, In the source code for AbstractMBeanInvoker I see the following: public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { // TODO: __JBOSSMX_INVOCATION Could this explain why it

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-09 Thread [EMAIL PROTECTED]
'value' should work. Just make sure you don't override it from the -service.xml descriptor. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3984486#3984486 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3984486

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-09 Thread cnsxxx09
Hi, I simply deployed the docs/examples/jmx/persistent-service.sar Then in changing deploy/persistent-service.sar/META-INF/jboss-service.xml file all I did was added one [value] tag to the xmbean 'SomeString' attribute (as per previous post, deploys without error). I made no other changes,

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-09 Thread cnsxxx09
Hi, Are you sure that this setting of default values works? I have tried deploying the PersistentServiceExample and changing the META-INF/jboss-service.xml file using both suggestions from the Wiki (see the changes I made, below). In both cases when JBoss restarts and I look in the

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-09 Thread cnsxxx09
If I change the xmbean attribute for SomeString to read only, then I also do not see any error in the log from even attempting to set the now read-only [value] I specify. (If I instead then try to change the mbean attribute, outside the xmbean tag, [attribute

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-07 Thread cnsxxx09
I spoke too soon in solving one problem I created another ... I only want the attribute to be set upon the first ever deployment. Then, when a value changes, it is stored in XML in the xmbean-attrs/ directory so that when JBoss restarts it always loads the last known value. But if I set

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-07 Thread [EMAIL PROTECTED]
You just need to set the initial value in the xmbean descriptor instead. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3983851#3983851 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3983851

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-07 Thread cnsxxx09
Hi, I've tried this, and I must have got something wrong ... I have tried 2 ways (below) and either way my values are ignored. Option 1. [xmbean] [attribute access='read-write' getMethod='getId' setMethod='setId'] [description]MBean Attribute.[/description]

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-07 Thread cnsxxx09
Hi, The Wiki just describes what I did in option 2. - or suggests a new syntax which is to wrap my value in option 1. with a [value] XML tag. Neither of which work. Chris View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3983892#3983892 Reply to the post :

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-06 Thread cnsxxx09
Hi, I -think- I can get 2. working by creating a new attribute tag outside the [xmbean] tag: [attribute name=Id]$Id[/attribute] so that now leaves 1. and 3. Chris View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3983514#3983514 Reply to the post :

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-05 Thread cnsxxx09
Hi, Three final problems before I have this working 100%. 1. Classloader. I have all my code neatly contained in a .war package. Now, when I use the Deployment Service it creates an independent XML service file in the deploy/ directory. JBoss cannot then find my MBean class file to load it.

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-05 Thread cnsxxx09
(ok, the XML in my post wasn't escaped, so I'll try that bit again ... the default value I pass in like this lt;attribute access='read-only' getMethod='getId' setMethod='setId'gt; lt;descriptiongt;MBean Attribute.lt;/descriptiongt; lt;namegt;Idlt;/namegt;

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-03 Thread cnsxxx09
Just to let you know ... it worked exactly as expected and has solved my problem. I'm impressed with the DeploymentService approach. The only issue I have now is that, after my MBean has finished and I call destroy(), I want it to self-destruct and delete itself from the deploy/ directory .

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-03 Thread [EMAIL PROTECTED]
There was a remove() or something to remove the descriptor. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3982975#3982975 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3982975 ___

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-03 Thread cnsxxx09
What haven't you thought of ? ! Many many thanks ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3983017#3983017 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3983017 ___

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-02 Thread [EMAIL PROTECTED]
No. You need to re-create those xmbeans as part of the start-up of another service of yours. Or if you want to play with descriptors you could try something like this: http://www.jboss.org/wiki/Wiki.jsp?page=DeploymentService View the original post :

[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart

2006-11-02 Thread cnsxxx09
Thanks for the info, this experimental feature sounds interesting ... So, I need to do the following: 1. deploy the Deployment Service file found here: $JBOSS_HOME/docs/examples/varia/deployment-service/deployment-service.sar (keeping the default settings) 2a. create a template file(s) for my