[jboss-dev-forums] [Design the new POJO MicroContainer] - Case sensitivity in injecting a bean's property
bstansberry@jboss.com
do-not-reply at jboss.com
Mon Jan 22 13:53:00 EST 2007
There seems to have been a recent change that affects the handling of property injection.
I want to inject the value of the naming service port into another bean. Previously this worked:
<property name="namingServicePort"><inject bean="jboss:service=Naming" property="port"/></property>
Now it doesn't. I have to use 'property="Port"' with a capital P on Port. Otherwise I get:
javax.management.AttributeNotFoundException: not found: port
| at org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanIn
| voker.java:335)
| at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java
| :565)
| at org.jboss.system.microcontainer.ServiceControllerContext.get(ServiceC
| ontrollerContext.java:129)
| at org.jboss.beans.metadata.plugins.AbstractDependencyValueMetaData.getV
| alue(AbstractDependencyValueMetaData.java:150)
| ....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004942#4004942
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004942
More information about the jboss-dev-forums
mailing list