1 Reply Latest reply on May 13, 2010 8:31 PM by rebody

    Custom IdentitySession

    boyakki

      Hello,

       

      I'm trying to build my implementation of IdentitySession.

      Do you have any suggestion to take the db session?

      In the standard IdentitySession implementation, the session is injected throught the wiring mechanism. There is a way to do it in the same manner?

      Sorry but I'm new to jbpm

      Thanks

        • 1. Re: Custom IdentitySession
          rebody

          Hi Mario,

            You could get DbSession from Environment. like this:

           

          DbSession dbSession = EnvironmentImpl.getFromCurrent(DbSession.class);
          

           

          And of course, you could inject DbSession as your mentioned.

           

          <object class="yourIdentitySession" auto-wire="true"/>