How to store currently logged on user in DB?

Posted by stacker on Stack Overflow See other posts from Stack Overflow or by stacker
Published on 2010-06-08T15:28:37Z Indexed on 2010/06/08 15:32 UTC
Read the original article Hit count: 186

Filed under:
|
|
|

Using Seam 2.1.2 and JSF 1.2 I wonder how to store the users login name in the database.

In plain JSF I would simply lookup FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();in a backing bean and set the value into a persistent object.

How can I achieve that the users name will be stored in the DB?

© Stack Overflow or respective owner

Related posts about java

Related posts about jsf