[
http://jira.jboss.com/jira/browse/JBAS-4009?page=all ]
Ales Justin resolved JBAS-4009.
-------------------------------
Resolution: Done
When injecting mbean's property we force uppercase first character:
protected static String getAttributeName(String name)
{
if (name == null || name.length() == 0)
throw new IllegalArgumentException("Illegal name: " + name);
char firstCharacter = name.charAt(0);
if (Character.isLowerCase(firstCharacter))
{
String attributeName = String.valueOf(Character.toUpperCase(firstCharacter));
if (name.length() > 1)
attributeName += name.substring(1);
return attributeName;
}
return name;
}
public Object get(String name) throws Throwable
{
return getMBeanServer().getAttribute(objectName, getAttributeName(name));
}
public void set(String name, Object value) throws Throwable
{
Attribute attribute = new Attribute(getAttributeName(name), value);
getMBeanServer().setAttribute(objectName, attribute);
}
Add tests to validate mc-bean, jmx-bean property reference usage
----------------------------------------------------------------
Key: JBAS-4009
URL:
http://jira.jboss.com/jira/browse/JBAS-4009
Project: JBoss Application Server
Issue Type: Task
Security Level: Public(Everyone can see)
Components: JMX, MicroContainer bus
Reporter: Scott M Stark
Assigned To: Ales Justin
Fix For: JBossAS-5.0.0.Beta3
Right now there are some differences in property case that show up as unexpected
exceptions when one uses javabean vs jmx attribute naming conventions due to the stricter
jmx case sensitivity. We needs tests to cover the range of usecases where mbean attributes
are injected into mc bean properties and vice versa.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira