Pregunta

In Tomcat 6, RealmBase provided a "path" field. That apparently has been removed in Tomcat 7. I need to know how to determine the value of the context root inside my authenticate() method.

¿Fue útil?

Solución

I found a way to get this by looking at the 6.0 source code of RealmBase.

Fortunately the RealmBase-derived instance has a "context" property containing the context root path:

this.getObjectName().getKeyProperty("context");
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top