"ron.sigal(a)jboss.com" wrote :
| 1. Does what I've done conform to what JBREM-63 calls for?
|
No, because the config object is not a bean that encapsulates the configuration metadata
for the invoker, at least as far as I can see. The configuration separation is really not
expressable as mbeans, but the closest would be something like this:
| <server>
| <mbean code="org.jboss.remoting.transport.ConnectorConfig"
|
name="jboss.remoting:service=TerranceAndPhillip,transport=bisocket,type=legacyConfig">
|
| <!-- CHANGE: added xmlns, serialDataType -->
| <attribute name="Configuration"
|
xmlns="http://www.jboss.org/remoting/connector.xsd"
| serialDataType="jbxb">
|
| <config>
| <invoker transport="bisocket">
| ...
| <attribute name="timeout"
isParam="true">0</attribute>
| ...
| </invoker>
| <handlers>
| <handler>...</handler>
| </handlers>
| </config>
| </attribute>
| </mbean>
|
| <mbean code="org.jboss.remoting.transport.Connector"
|
name="jboss.remoting:service=TerranceAndPhillip,transport=bisocket">
| <depends optional-attribute-name="ConfigInterface"
|
proxy-type="attribute">jboss.remoting:service=TerranceAndPhillip,transport=bisocket,type=legacyConfig</depends>
| </mbean>
|
| </server>
|
where the org.jboss.remoting.transport.ConnectorConfigMBean would essentially be the
interface for the pojo metadata.
What is really needed though is a true ConnectorConfig pojo that exposes all of the
configurable properties so that they can be set as properties on a kernel bean.
| <deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jboss:bean-deployer
bean-deployer_1_0.xsd"
| xmlns="urn:jboss:bean-deployer">
| <bean name="Iface0"
| class="...">
| <property name="alias">loopback</property>
| <property name="address">127.0.0.1</property>
| </bean>
| <bean name="Iface1"
| class="...">
| <property name="alias">lan1</property>
| <property name="address">192.168.1.10</property>
| </bean>
|
| <bean name="BisocketInvoker"
| class="...">
| <property name="addresses">
| <array>
| <value><inject bean="Iface0"/></value>
| <value><inject bean="Iface1"/></value>
| </array>
| </property>
| <property name="handlers">
| <array>
| <value><inject bean="Iface0"/></value>
| <value><inject bean="Iface1"/></value>
| </array>
| </property>
| </bean>
|
| </deployment>
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041236#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...