• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web login page versus Swing Login UI

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks

Mark
 
Set Cruz
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark, I would declare my remote to take a Principal argument, and intercept the call to authenticate/authorize.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic