tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Put URL in context.xml
Date Tue, 01 Mar 2011 18:44:53 GMT
> From: Gehrny [mailto:a1095380@jnxjn.com] 
> Subject: Put URL in context.xml

> I would like to store the URL and the port of the remote 
> site in the context.xml.

> So far I have added the following to the context.xml:
> <Resource name="http/mprm" auth="Container"
> type="java.net.HttpURLConnection;"
> url="http://remotehost:8080"/>

The stated need doesn't seem to have anything to do with what the <Resource> element
is for.  Look at using either a <Parameter> or <Environment> element nested inside
your <Context>

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Context_Parameters

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message