So with Web and J2EE we have this great integration with a FORM simple web page and passing the Principal to the Servlets and on to Services. This is great, easy to do.
But what if you have a Swing application and you have a Swing login page to login, How do you pass the Principal down to say EBJ3 Session Beans that are declared that the called needs to be in a role. I don't seem to find any nice integration like you have in Web UIs.