Since servlet engine 3.0 you can use @WebListener and @WebFilter to programmatically start listeners and filters without the need of web.xml. So you need to sublass org.apache.shiro.web.env.EnvironmentLoaderListener and org.apache.shiro.web.servlet.ShiroFilter, apply the needed annotations and do the needed initialization.
More details and examples here: http://www.softwareengineeringsolutions.com/blogs/2010/08/01/programmatic-definition-of-components-in-servlet-specification-3-0/ https://today.java.net/pub/a/today/2008/10/14/introduction-to-servlet-3.html -- View this message in context: http://shiro-user.582556.n2.nabble.com/EnvironmentLoaderListener-for-shirofilter-in-shiro-ini-tp7577721p7579419.html Sent from the Shiro User mailing list archive at Nabble.com.
