-
15. Re: auto redeploy dynamic mbean on JBoss restart
dimitris Nov 9, 2006 7:42 AM (in response to cnsxxx09)'value' should work. Just make sure you don't override it from the -service.xml descriptor.
-
16. Re: auto redeploy dynamic mbean on JBoss restart
cnsxxx09 Nov 9, 2006 8:22 AM (in response to 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, and I cannot see that this attribute is overwritten anywhere. (SomeElement is the only one overwritten but I didn't try this one).
So, value should work, but doesn't.
Do you think this is a bug?
Chris -
17. Re: auto redeploy dynamic mbean on JBoss restart
cnsxxx09 Nov 10, 2006 2:44 AM (in response to 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 name="SomeString"]Test,Test,Test[/attribute], then I *do* get a deployment exception that the Attribute is not writable).
It -sounds- like a bug .... I can investigate further in the JBoss source if you can give me a clue where this is likely to be called (AbstractMBeanInvoker).
Chris -
18. Re: auto redeploy dynamic mbean on JBoss restart
cnsxxx09 Nov 10, 2006 10:56 AM (in response to 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 is not working?
Chris -
19. Re: auto redeploy dynamic mbean on JBoss restart
cnsxxx09 Nov 13, 2006 12:04 PM (in response to 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 -
20. Re: auto redeploy dynamic mbean on JBoss restart
cococ Nov 17, 2006 6:45 PM (in response to cnsxxx09)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 -
21. Re: auto redeploy dynamic mbean on JBoss restart
cnsxxx09 Nov 18, 2006 4:18 AM (in response to cnsxxx09)I have put it into JIRA at least:
http://jira.jboss.com/jira/browse/JBAS-3859