Hi,
I am new to the tomcat user group but have been using tomcat for some years.

My situation is odd -- the customer wants the product to remove an external
JAR which requires me to make the SSL mutual connection manually, and then
post the Soap message.

So far I have been successful in doing that.

However, this overall solution is installed on different computer
locations, I need to allow this to work flexibly.   Right now, I have hard
coded the path to the TrustStore and KeyStore so that my code can access
those and use the password which I know, so that my HttpClient side code to
build the correct SSL connection to the external SSL server.  (This is a
mutual peer authenticated SSL connection).

>From the ServletContext or when the java servlet starts (where my
httpclient component runs witihin), I need to get access to the tomcat
connector, and determine the attributes of it.  I guess one brute force
method is to get the environment variable for catalina.home or
catalina.base and then scan for the conf/server.xml and parse that.... But
I figure there must be a cleaner and better way.

I also scanned the objects that are acessible from the Response, Request,
or ServletContext.  None of them seem to point to the Connector in a way
that I can inspect it, or get current properties of it.   For example,
within the org.apache.catalina.connector.ResponseFacade, I noticed that its
embedded object of HttpResponse is protected but it has the Connector.
Seems like I need to hack that to get that Connector info.

There must be a better way.

-- 
Sean

Reply via email to