-
1. Re: namespaces in -service.xml
genman Dec 29, 2004 6:32 PM (in response to greydeath)
I don't see why not. The only use of this would be to pass XML elements to your MBean attributes, I suppose. The deployer in JBoss is probably namespace aware. -
2. Re: namespaces in -service.xml
greydeath Jan 10, 2005 1:42 AM (in response to greydeath)Well, I should have been more specific I guess.
The Xml Parser used by the JBoss deployer is not namespace aware.
But As it uses Xerces it could be, just by turning the flag on. The Question is can I do that in some configuration file or does this need a code change? -
3. Re: namespaces in -service.xml
starksm64 Jan 11, 2005 8:56 AM (in response to greydeath)Try describing what your trying to do.
-
4. Re: namespaces in -service.xml
greydeath Jan 11, 2005 9:38 AM (in response to greydeath)Check out the following -service.xml file
<mbean code="com.ftisoft.publishing.PublishingTypeFactory" name="ftisoft.jmx:service=PublishingTypeFactory"> <attribute name="XMLConfig"> <array xmlns="www.ftisoft.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <publishing-type binary="false" xsi:type="java:com.ftisoft.publishing.PublishingType"> <name>email</name> <type>destination</type> <config-class>com.ftisoft.publishing.destinations.email.EMailConfig</config-class> <config-mapping>com/ftisoft/publishing/destinations/email/EMailConfig.map.xml</config-mapping> <config-xsd>com/ftisoft/publishing/destinations/email/EMailConfig.xsd</config-xsd> </publishing-type> </array> </attribute> </mbean>
The XMLConfig property gets an XML Element and I would like that to be namespace aware. -
5. Re: namespaces in -service.xml
starksm64 Jan 19, 2005 4:58 AM (in response to greydeath)No, we have to enable namespace awareness in the SARDeployer using DocumentBuilderFactory.setNamespaceAware(true).
-
6. Re: namespaces in -service.xml
greydeath Jan 19, 2005 6:44 AM (in response to greydeath)Can this be done for 4.0.2?
-
7. Re: namespaces in -service.xml
starksm64 Jan 20, 2005 4:48 AM (in response to greydeath)A flag has been added to the SARDeployer to allow this to be toggled on/off.
-
8. Re: namespaces in -service.xml
greydeath Jan 20, 2005 5:52 AM (in response to greydeath)Well, I can't find any configuration for SARDeployer in 4.0.1. Can you give me a hint where that will be?
thanks -
9. Re: namespaces in -service.xml
starksm64 Jan 20, 2005 10:24 AM (in response to greydeath)conf/xmdesc/org.jboss.deployment.SARDeployer-xmbean.xml
-
10. Re: namespaces in -service.xml
greydeath Jan 20, 2005 10:25 AM (in response to greydeath)thanks