tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: svn commit: r772142 - /tomcat/trunk/java/org/apache/catalina/manager/ManagerServlet.java
Date Wed, 06 May 2009 12:17:52 GMT
Remy Maucherat wrote:
> On Wed, 2009-05-06 at 10:49 +0000, markt@apache.org wrote:
>>          // Acquire global JNDI resources if available
>> -        Server server = ServerFactory.getServer();
>> +        Server server =
>> +            ((Engine)context.getParent().getParent()).getService().getServer();
> 
> Ouch, not pretty.

Any better ideas? I thought about pulling it out into a separate method but as
all of those parents should be non-null it seemed like overkill.

Mark


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


Mime
View raw message