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

Closed
mpusarla opened this issue Oct 12, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@mpusarla
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">
        <constructor-arg>
            <props>
                <prop key="map-name">sessions</prop>
                <prop key="sticky-session">true</prop>
                <prop key="test1">${app.cookie}</prop>
                <prop key="test2">${app.secure}</prop>
            </props>
        </constructor-arg>
</bean>

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?

@serkan-ozal

This comment has been minimized.

Copy link
Contributor

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) {
        super(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.

@mpusarla

This comment has been minimized.

Copy link
Author

commented Oct 15, 2015

Thanks!

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.