This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes Load ID from login-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Load ID from login-config.xml" Watch "Load ID from login-config.xml" New topic
Author

Load ID from login-config.xml

Vanderson Assis
Greenhorn

Joined: Jun 27, 2012
Posts: 5
Hi everyone. My first post here, and i think it's gonna be the first of a lot more to come!

My question is ... is there a way to load the userID from the login-config.xml? ... below is a fragment of my login-config.xml where it loads the user and role.
On server-side i can load the user name by calling the method "SecurityAssociation.getPrincipal().getName();" Can i get the userID the same way i get the userName by some module-option in the following xml? With some kind of "principalsIdQuery"

Thanks in advance ;)

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Load ID from login-config.xml