2 Replies Latest reply on Mar 27, 2012 11:07 AM by Khosro Asgharifard Sharabiani

    Override JpaIdentityStore.java class in Seam security 3.1.0

    Khosro Asgharifard Sharabiani Newbie

      Hi,

      I want to override JpaIdentityStore.java class and use my own that extends JpaIdentityStore.java.

      I palced the follwing code in "seam-beans.xml" :

       

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:s="urn:java:ee" xmlns:security="urn:java:org.jboss.seam.security"
                xmlns:plidm="urn:java:org.jboss.seam.security.management.picketlink"
                xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd">
                <plidm:JpaIdentityStoreConfiguration>
                          <s:modifies />
                          <plidm:identityStoreClass>mypackage.CustomJPAIdentityStore
                          </plidm:identityStoreClass>
                           
                </plidm:JpaIdentityStoreConfiguration>
       </beans>
      
      

       

      ,but when i want to authenticate ,Seam3 uses JpaIdentityStore.java.When i debug JpaIdentityStoreConfiguration.java class "identityStoreClass" proeprty is null.

      Also i have tried :


      <plidm:JpaIdentityStoreConfiguration>
                          <s:replaces />
                           <plidm:identityClass>seam.example.confbuzz.model.Identity</plidm:identityClass>
                          <plidm:identityStoreClass>mypackage.CustomJPAIdentityStore
                          </plidm:identityStoreClass>
                           </plidm:JpaIdentityStoreConfiguration>
      
      

      It does not work either.

      What is wrong ?

       

      Khosro.