does anyone know how I do to get the Principal object in the persistence layer?
happens that my application can not depend on request.getUserPrincipal coming fromservlet api.
need to somehow retrieve the security context and then get the authenticated user.
I tried to do the following:
but, getSubject is returning a null object.