RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Horn, Rob
Title: RE: Is it possible to include via a directive snippets into the server.xml file





Spot on !


Thanks


Rob


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 09 August 2002 11:28
To: Tomcat Users List
Subject: AW: Is it possible to include via a directive snippets into the
server.xml file



AFAIK tomcat 4.1 has something like that. (Can't 
find the pointer to that, but there was a post from 
Craig about that a while ago in this list)


If you have to use 4.0 you could use a preprocessor
and an shellscript that create server.xml from seperate 
files from the two teams:


E.g.:


conf/server.xml.m4:
 !-- Everything before the contexts from the 
 infrastructure team 
 --


 include('conf/context.xml')
 !-- Everything after the contexts from the 
 infrastructure team 
 --


conf/context.xml
 !-- Everything from the development --


bin/htstart:
 #!/bin/sh
 JAVA_HOME=/usr/local/java/jdk1.3.1
 CATALINA_HOME=/usr/local/java/jakarta-tomcat-4.0.3
 CATALINA_BASE=/www/develop/www.tomcat.de


 export JAVA_HOME CATALINA_HOME CATALINA_BASE


 cd ${CATALINA_BASE}
 m4 conf/server.xml.m4  conf/server.xml


 ${CATALINA_HOME}/bin/startup.sh



-Ursprüngliche Nachricht-
Von: Horn, Rob [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. August 2002 11:19
An: '[EMAIL PROTECTED]'
Betreff: Is it possible to include via a directive snippets into the
server.xml file



Within our project we have an overlap of responsibility between the
infrastructure team who are responsible for building the application
servers and the development team who are responsible for delivering an
application ready for deployment.
The overlap centres on server.xml 
The infrastructure guys need to put host specific information into
server.xml 
The development guys are dependent on a context definition and resources
defined within it. 
My question is therefore ... is it possible to include a snippet for
the context that the development team can maintain into the
infrastructure maintain server.xml file.
Cheers 
Rob Horn 


--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Andrew

in Tomcat 4.1.x you can put XML files containing context information
into your webapps directory and TC adds them as contexts.  this is how
the admin and manager apps are added.
 
 
- Andrew

-Original Message-
From: Horn, Rob [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 5:19 AM
To: '[EMAIL PROTECTED]'
Subject: Is it possible to include via a directive snippets into the
server.xml file



Within our project we have an overlap of responsibility between the
infrastructure team who are responsible for building the application
servers and the development team who are responsible for delivering an
application ready for deployment.

The overlap centres on server.xml 

The infrastructure guys need to put host specific information into
server.xml 

The development guys are dependent on a context definition and resources
defined within it. 

My question is therefore ... is it possible to include a snippet for
the context that the development team can maintain into the
infrastructure maintain server.xml file.

Cheers 

Rob Horn 




RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Horn, Rob
Title: RE: Is it possible to include via a directive snippets into the server.xml file





Thanks Andrew,


is there a naming convention that must be followed or do you know where I can get further info on this.


Cheers


Rob


-Original Message-
From: Andrew [mailto:[EMAIL PROTECTED]]
Sent: 09 August 2002 14:12
To: 'Tomcat Users List'
Subject: RE: Is it possible to include via a directive snippets into the
server.xml file



in Tomcat 4.1.x you can put XML files containing context information
into your webapps directory and TC adds them as contexts. this is how
the admin and manager apps are added.


- Andrew


-Original Message-
From: Horn, Rob [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 5:19 AM
To: '[EMAIL PROTECTED]'
Subject: Is it possible to include via a directive snippets into the
server.xml file




Within our project we have an overlap of responsibility between the
infrastructure team who are responsible for building the application
servers and the development team who are responsible for delivering an
application ready for deployment.


The overlap centres on server.xml 


The infrastructure guys need to put host specific information into
server.xml 


The development guys are dependent on a context definition and resources
defined within it. 


My question is therefore ... is it possible to include a snippet for
the context that the development team can maintain into the
infrastructure maintain server.xml file.


Cheers 


Rob Horn 




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Horn, Rob wrote:

 Date: Fri, 9 Aug 2002 15:12:22 +0100
 From: Horn, Rob [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Is it possible to include via a directive snippets into the
 s erver.xml file

 Thanks Andrew,

 is there a naming convention that must be followed or do you know where I
 can get further info on this.


One approach is to do what Tomcat 4.1 itself does for the admin and
manager webapps -- for a context at path /foo, create a foo.xml file.
If you put that in $CATALINA_HOME/webapps, it will get auto-deployed.

 Cheers

 Rob

Craig



 -Original Message-
 From: Andrew [mailto:[EMAIL PROTECTED]]
 Sent: 09 August 2002 14:12
 To: 'Tomcat Users List'
 Subject: RE: Is it possible to include via a directive snippets into the
 server.xml file


 in Tomcat 4.1.x you can put XML files containing context information
 into your webapps directory and TC adds them as contexts.  this is how
 the admin and manager apps are added.


 - Andrew

 -Original Message-
 From: Horn, Rob [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 5:19 AM
 To: '[EMAIL PROTECTED]'
 Subject: Is it possible to include via a directive snippets into the
 server.xml file



 Within our project we have an overlap of responsibility between the
 infrastructure team who are responsible for building the application
 servers and the development team who are responsible for delivering an
 application ready for deployment.

 The overlap centres on server.xml

 The infrastructure guys need to put host specific information into
 server.xml

 The development guys are dependent on a context definition and resources
 defined within it.

 My question is therefore ... is it possible to include a snippet for
 the context that the development team can maintain into the
 infrastructure maintain server.xml file.

 Cheers

 Rob Horn




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Andrew

actually, I don't believe that the name of the xml file has to be the
context name, but don't quote me on that.  The important information is
the context information within the XML file.  From my understanding, you
just have to use Context / as your root element, and you can add any
sub elements necessary.

- Andrew

-Original Message-
From: Horn, Rob [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 10:12 AM
To: 'Tomcat Users List'
Subject: RE: Is it possible to include via a directive snippets into the
server.xml file


Thanks Andrew, 
is there a naming convention that must be followed or do you know where
I can get further info on this. 
Cheers 
Rob 
-Original Message- 
From: Andrew [mailto:[EMAIL PROTECTED]] 
Sent: 09 August 2002 14:12 
To: 'Tomcat Users List' 
Subject: RE: Is it possible to include via a directive snippets into the

server.xml file 


in Tomcat 4.1.x you can put XML files containing context information 
into your webapps directory and TC adds them as contexts.  this is how 
the admin and manager apps are added. 
  
  
- Andrew 
-Original Message- 
From: Horn, Rob [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 5:19 AM 
To: '[EMAIL PROTECTED]' 
Subject: Is it possible to include via a directive snippets into the 
server.xml file 



Within our project we have an overlap of responsibility between the 
infrastructure team who are responsible for building the application 
servers and the development team who are responsible for delivering an 
application ready for deployment. 
The overlap centres on server.xml 
The infrastructure guys need to put host specific information into 
server.xml 
The development guys are dependent on a context definition and resources

defined within it. 
My question is therefore ... is it possible to include a snippet for 
the context that the development team can maintain into the 
infrastructure maintain server.xml file. 
Cheers 
Rob Horn 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]