3 Replies Latest reply on Dec 25, 2008 10:09 PM by vickyk

    Changing XslUrl in XslSubDeployer

    makas

      Hi all.
      jbossjca-servce.xml has XslSubDeployer MBean. This Mbean has XslUrl attribute with default value "stylesheets/ConnectionFactoryTemplate.xsl".
      Does somebody know how can change this value on my template.xsl?

        • 1. Re: Changing XslUrl in XslSubDeployer
          vickyk

           

          "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

             

            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

               

              "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.