michael-o opened a new pull request, #624: URL: https://github.com/apache/tomcat/pull/624
A listener which creates context naming information environment entries. This is something which I have been using for years at work. It suited for all components which dot not have access to Tomcat internals, but need context information, e.g., In Logback: ``` <configuration> <insertFromJNDI env-entry-name="java:comp/env/context/baseName" as="contextName" /> <contextName>${contextName}</contextName> ... </configuration> ``` In Spring: ``` <beans:bean id="contextSource" class="org.springframework.ldap.pool2.factory.PooledContextSource"> <beans:constructor-arg> <beans:bean class="org.springframework.ldap.pool2.factory.PoolConfig" p:testOnBorrow="true" p:minEvictableIdleTimeMillis="300000" p:maxWaitMillis="5000" p:jmxNameBase="org.apache.commons.pool2:context=${context/name},type=GenericKeyedObjectPool,name=" /> </beans:constructor-arg> </beans:bean> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org