Results 1 to 2 of 2

Thread: tcServer listener order and templates

  1. #1
    Join Date
    Jan 2012
    Posts
    6

    Default tcServer listener order and templates

    According to the tcServer manual a SystemProperties listener needs to be the first element under System. However, when I add a SystemProperties listener in a template it appends it to the end of the file. This causes our start-up to fail.

    Is there any way that we can use the templates and add a listener at the top of a child list?

    My template server-fragment.xml files is:

    Code:
    <?xml version='1.0' encoding='utf-8'?>
    <Server>
    	 <add:Listener className="com.springsource.tcserver.properties.SystemProperties"
    		file.1="${catalina.base}/local/environment.properties"
    		file.2="${catalina.base}/local/credentials.properties"
    		immutable="false"
    		trigger="now"/>
    </Server>
    Thanks

  2. #2
    Join Date
    Oct 2008
    Location
    Melbourne, Florida
    Posts
    83

    Default

    At this time, there is no way to identify start and endpoints in the xml like you are needing.

    It adds the addition to the end of the parent tag.

    The only way I can think of possibly handling this right now, is if you create your own server.xml (based on the "base" template) and when you add your template it will overwrite the server.xml in the base template. Ordering of applying a template will be a factor, so you would want to add your template first since you want the bio template added to your server.xml. i.e tcruntime-instance create -t dev -t bio MyInstance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •