This content has been marked as final.
Show 3 replies
-
1. Re: Changing XslUrl in XslSubDeployer
vickyk Dec 25, 2008 1:01 AM (in response to makas)"makas" wrote:
Does somebody know how can change this value on my template.xsl?
Why would you like to make the changes in the .xsl file?
The required ConnectionFactoryTemplate.xsl is present in the $JBOSS_HOME/server//lib/jboss-jca.jar/stylesheets -
2. Re: Changing XslUrl in XslSubDeployer
makas Dec 25, 2008 5:13 AM (in response to makas)Why would you like to make the changes in the .xsl file?
When a -ds.xml is deployed, the XSLSubDeployer constucts MBeans.
createService() and init(DeploymentInfo) methods in this class transform -ds.xml into something like this<service> <mbean ...> <depends ...> ... <mbean code="org.jboss.resource.connectionmanager.RARDeployment" display-name="ManagedConnectionFactory for ConnectionFactory SomeName" name="jboss.jca:service=ManagedConnectionFactory,name=SomeName"> <attribute name="ManagedConnectionFactoryProperties"> <properties> ... </properties> </attribute> <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=SomeName</depends> </mbean> ... </depends> </mbean> </service>
I want to add some changes to persist some attributes:<service> <mbean ...> <depends ...> ... <mbean code="org.jboss.resource.connectionmanager.RARDeployment" display-name="ManagedConnectionFactory for ConnectionFactory SomeName" name="jboss.jca:service=ManagedConnectionFactory,name=SomeName" xmbean-dd=""> <xmbean> <description>PersistentServiceExample</description> <descriptors> <persistence persistPolicy="OnUpdate"/> <persistence-manager value="org.jboss.mx.persistence.DelegatingPersistenceManager"/> </descriptors> <class>org.jboss.resource.connectionmanager.RARDeployment</class> <attribute access="read-write" getMethod="getManagedConnectionFactoryProperties setMethod="setManagedConnectionFactoryProperties"> <name>ManagedConnectionFactoryProperties</name> <type>org.w3c.dom.Element</type> </attribute> </xmbean> <attribute name="ManagedConnectionFactoryProperties"> <properties> ... </properties> </attribute> <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=SomeName</depends> </mbean> ... </depends> </mbean> </service>
-
3. Re: Changing XslUrl in XslSubDeployer
vickyk Dec 25, 2008 10:09 PM (in response to makas)"makas" wrote:
anges to persist some attributes:
Rather than changing it in the xsl file you should take the generated/transformed xml service and deploy it as -service.xml. This -service.xml should have the required changes.