Hey,
the reason i needed the logged in users was that i had a requirement to change the UI runtime if a admin goes and change the logged in user roles \ privileges.
i was able to the get the logged in flex clients with following code,
and from the flex client i got the flex sessions (HttpFlexSession) and the principal (UsernamePasswordAuthenticationToken) with following codeCode:FlexClientManager flexClientManager = messageBroker.getFlexClientManager(); String[] clientIDs = flexClientManager.getClientIds(); for (String ID : clientIDs) { FlexClient flexClient = flexClientManager.getFlexClient(ID); }
don't know if this is the best way to implement this. i'll be trying your solution this weekend.Code:List<HttpFlexSession> clientSessions = flexClient.getFlexSessions(); UsernamePasswordAuthenticationToken principal = clientSessions.get(0).getUserPrincipal();
thanks for you help![]()


Reply With Quote