Hi,
I hope this is the correct list for this question.
I am developing a JEE application with an ejb module, a web client (
netbeans 6.1 VWP) and two application clients.
I has setup a JDBCRealm on the Glassfish server which works well.
From each of the clients I want to identify who is logged in and show a
message as: "Welcome [keyHolder]", where keyHolder is the username used to
log in on the JDBCRealm.
I have managed to do this for the web client using the
String keyHolder =
FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal().ge
tName();
Is there a way that the application clients can get access the the
javax.security.Principal.
The application clients are both enterprise application clients started via
web start and use the same JDBCRealm for authentication.
Any help would be appreciated.
Regards
Gavin