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

adrian@jboss.org do-not-reply at jboss.com
Wed Jul 30 04:37:09 EDT 2008


A better way of doing this would be to configure it explicitly.

Something like:


  | <bean name="HAJNDI">
  |    <property name="port">
  |       <value-factory bean="PortManager" method="getPort" parameter="HAJNDI" default="1100"/>
  |    </property>
  | ...
  | 

The value-factory can be reconfigured to do whatever you want,
e.g. use system properties, the binding manager, ldap, etc.
All the user has to do is replace the "PortManager" bean.

The only problem is that the JMX config doesn't 
currently support this value-factory style injection.

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

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



More information about the jboss-dev-forums mailing list