Tobias,

You understand perfectly what I'm trying to achieve.

I actually managed to configure the filter successfully for Spring Security in 
web.xml as you describe. I did not exclude anything in the filter chain because 
I did not add servlets.

However now I'm struggling with Hibernate integration. Usually I would put an 
OpenSessionInViewFilter in web.xml to have a transparent session management, 
but I'm not sure that it's OK just to add the usual filter to web.xml, like 
this:

[code]  
<filter>
    <filter-name>
        
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-name>
    <filter-class>
        
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
    <init-param>
      <param-name>flushMode</param-name>
      <param-value>AUTO</param-value>
    </init-param>
    <init-param>
      <param-name>singleSession</param-name>
      <param-value>true</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>
        
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>   
  <filter>
[/code]

and have it work. (Actually I tried it and I don't think that it works since I 
don't have the usual context listener:

[code]
<listener>
  
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
[/code]

Have you done any Spring with Hibernate integration through Blossom? Should I 
try the FilterDecorator for this filter instead of attempting to modify 
web.xml? Or need I manage the sessions more manually?

Evidently I'm am not an expert in these technologies; I apologize if my 
questions are not appropriate to this forum.

Thank you,
Claudia

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=e8fc4df7-15bd-49de-ae4f-27dc66ed6a45


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to