[jboss-dev-forums] [Design of POJO Server] - Re: ProfileService equiv to ServiceBindingManager

bstansberry@jboss.com do-not-reply at jboss.com
Thu Jul 31 23:23:08 EDT 2008


This is done. https://jira.jboss.org/jira/browse/JBAS-5822

Only other thing to point out is that using an mbean as the value factory is also supported, but only if the type of any parameters is specifically listed:


  | <attribute name="Foo">
  |    <value-factory bean="jboss:service=FooProvider" method="getFoo" default="1100">
  |        <parameter class="java.lang.String">A</parameter>
  |        <parameter class="java.lang.Integer">1</parameter>
  |    </value-factory>
  | </attribute>
  | 

This is because if the value factory bean's ControllerContext is a ServiceControllerContext, metadata about the mbean operations exposed by the bean is not available (only attributes are available.)  Without that information there is no way to "guess" the parameter types.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168063#4168063

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168063



More information about the jboss-dev-forums mailing list