Announcement Announcement Module
Collapse
No announcement yet.
loading spring security from properties. Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • loading spring security from properties.

    Hi i wonder if i need to implement this or is it already implemented but i want to be able to load url security from property file.

    <bean id="filterSecurityInterceptor" class="org.springframework.security.intercept.web. FilterSecurityInterceptor">
    <property name="authenticationManager" ref="authenticationManager"/>
    <property name="accessDecisionManager" ref="accessDecisionManager"/>
    <property name="objectDefinitionSource" ref="objectDefinitionService"/>
    <property name="validateConfigAttributes" value="true"/>
    </bean>

    i want to have a objectDefinitionService be something that can be loaded from property file if it is possible or bean id definition.

    <bean id="objectDefinitionSource" class="...">
    <value>
    </value>
    </bean>


    Thanks.

  • #2
    I think it is possible!
    First create your properties file with key values then refer those keys in your configuration file but remember to include the property file location like this
    <contextroperty-placeholder location="WEB-INF/ObjDefSrc.properties"/>
    and then refer your keys in configuration file like this
    <beans:bean id="objectDefinitionSource" class="....">
    <beansroperty name="driverClassName" value="${key1}"/>
    </beans:bean>
    Note: Replace Key1 with the name of your defined key
    I hope this will solve your problem

    Comment


    • #3
      never mind. here

      http://ksevindik.blogspot.com/2008/0...tions-out.html

      Comment

      Working...
      X