0 Replies Latest reply on Jun 3, 2009 6:50 PM by Allan Topp

    Inject Identity.username into Spring bean

    Allan Topp Newbie

      I'm hoping someone has a good idea on how I can accomplish this. Currently I have this defined


      <seam:instance name="org.jboss.seam.security.identity" proxy="true" type="org.jboss.seam.security.Identity" id="seamIdentity"/>



      And then for the injecting the username into Spring bean part I have


      <util:property-path path="seamIdentity.username"/>



      When this runs I get an exception that the proxied class does not have a property called username. I also can't go directly to the username using seam:instance since username is a String and it can't be proxied.


      Anyone have a good idea how I can accomplish this?