2 Replies Latest reply on Mar 21, 2009 7:26 PM by zmicer harachka

    Session always return null (@In)

    Gustavo Lira e Silva Newbie

      I can not do inject a Seam Session for me to hibernate, follow the documentation and nothing!
      Please help me something, I stopped the project because of it ...
      Here is my part of my components.xml:


      <persistence:hibernate-session-factory auto-create="true"
        name="sessionFactory" scope="application"/>
       <persistence:managed-hibernate-session auto-create="true"
        name="session" session-factory="#{sessionFactory}"/>
       <transaction:hibernate-transaction session="#{session}"/>




      In my code I use @ In Session session and he always returns null, which is that I can be doing wrong?