2 Replies Latest reply on Oct 15, 2008 7:04 AM by Martin Capote

    Question about WritingDeploymentTemplates

    Martin Capote Newbie

      Hi, sorry for my english, I speak spanish.

      I'm trying to deploy MDBs at runtime using the deployment templates, but I get an InstanceAlreadyExistsException.

      I think (correct me if I am wrong) the solution is to dynamically establish the jar name

      in this url there is a similar case

      https://www.jboss.org/community/docs/DOC-12762 :

      <template-config copydir="files">
       <template-list>
       <template input="vm/jboss-service.xml.vm"
       output="console-mgr.sar/META-INF/jboss-service.xml"></template>
       <template input="vm/jboss-web.xml.vm"
       output="web-console.war/WEB-INF/jboss-web.xml"></template>
       </template-list>
      </template-config>
      


      In this example, how can I set dynamically the .sar and .war names?

      Someone use the templates to deploy MDBs? Thanks