Yes, all RichFaces resources are processed using JSF servlet. You can check whether this is a resource request or not by checking return value of org.ajax4jsf.webapp.WebXml.getFacesResourceKey(HttpServletRequest) method or by checking request path directly.
I'm facing to the same problem but I don't understand your workaround ... where can I check the return value?
I'm a newbie with RichFaces...
Thanks in advance
This should be checked in Hibernate Filter, so you can create your own one wrapping Hibernate's.