Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring security integration - setting properties in SpringAwareWebFilter #6438

mpusarla opened this issue Oct 12, 2015 · 2 comments


None yet
2 participants
Copy link

commented Oct 12, 2015

I am trying to integrate Hazelcast in spring security. Configured SpringAwareWebFilter instead of WebFilter. I used to have the following configuration in applicationContext.xml

<bean id="hazelcastWebFilter" class="com.hazelcast.web.WebFilter">
                <prop key="map-name">sessions</prop>
                <prop key="sticky-session">true</prop>
                <prop key="test1">${app.cookie}</prop>
                <prop key="test2">${}</prop>

but now, with springAwareWebFilter, the only way I can specify the properties is using the init-param.

I would like to keep the properties separate from the web.xml? Can you let me know how can i set the properties outside web.xml?


This comment has been minimized.

Copy link

commented Oct 13, 2015

@mpusarla you are right.
SpringAwareWebFilter should have a constructor which takes properties as argument like this:

public class SpringAwareWebFilter extends WebFilter {


    public SpringAwareWebFilter(Properties properties) {


I will add this to SpringAwareWebFilter then you can use SpringAwareWebFilter as WebFilter by constructor argument in applicationContext.xml.

Thanks for reporting this one.


This comment has been minimized.

Copy link

commented Oct 15, 2015


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.