Announcement Announcement Module
Collapse
No announcement yet.
tcServer listener order and templates Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X