[Microcontainer] - Re: Code example for a basic parsing deployer
by alesj
"david.lloyd(a)jboss.com" wrote :
| It accepts the new property but it doesn't seem to notice the jboss-remoting.xml file which is in the same place as the jboss-beans.xml that contains the above.
Sure. As expected. ;-)
When this bean is installed, we're passed PARSE stage.
Which is where this new deployer will kick in, for the next deployments.
Try deploying jboss-remoting.xml separately, after you've deployed this jboss-beans.xml.
btw: you could write this xml config with the new stuff :-)
| <jbossxb-parser xmlns="urn:jboss:deployers:2.0"
| name="RemotingMetaDataParser"
| metadata="org.jboss.cx.remoting.metadata.RemotingMetaData"
| name="jboss-remoting.xml"
| register-with-jbossxb="true"
| />
|
just add this before
| <bean name="SchemaResolverConfig" class="org.jboss.xb.binding.sunday.unmarshalling.SchemaResolverConfig">
| <property name="bindingClasses">
| <map keyClass="java.lang.String" valueClass="java.lang.String">
| <entry>
| <key>urn:jboss:deployers:2.0</key>
| <value>org.jboss.deployers.vfs.plugins.xb.SchemaResolverDeployerMetaData</value>
| </entry>
| </map>
| </property>
| </bean>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139100#4139100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139100
18 years
[Microcontainer] - Re: Code example for a basic parsing deployer
by david.lloyd@jboss.com
I tried this out using jboss-deployers from trunk:
| <?xml version="1.0" encoding="UTF-8"?>
| <!--
| JBoss Remoting Deployer
| -->
|
| <deployment xmlns="urn:jboss:bean-deployer:2.0">
| <bean name="RemotingMetaDataParser" class="org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer">
| <constructor>
| <parameter>org.jboss.cx.remoting.metadata.RemotingMetaData</parameter>
| </constructor>
| <property name="name">jboss-remoting.xml</property>
| <property name="registerWithJBossXB">true</property>
| <!-- TODO - build management info from annotations -->
| </bean>
| </deployment>
|
It accepts the new property but it doesn't seem to notice the jboss-remoting.xml file which is in the same place as the jboss-beans.xml that contains the above.
To verify that it's finding my jboss-beans.xml, I tried changing "true" to "banana" and it blew up as expected. :-)
I'm just using a StandaloneBootstrap with Beta11, using the deployer jars I built from trunk.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139095#4139095
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139095
18 years