Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accesing restricted EJBs from Swing Apps  RSS feed

Jose Ortuno
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks,

I've been crawling the web trying to find some info that could help me. This is my issue:

As per customer request, We have to implement a Rich client interface that uses/calls EJBs restricted methods.

I tried to find info about JAAS and ProgrammaticLogin with no success.

Some of the info I found, states that ProgrammaticLogin relays on the underlaying AppServer, therefore I lean towards using JAAS -- witch is not supported by all AppServer according to some reading.
However, I planing to deploy on Sun's AppServer, GlassFish and JBoss all of them support JAAS (According to som info I Found).

My core desing is based on Eclipse Rich Client platform authenticating to a GlassFish/JBoss server to gain access to EJB3 restricted (By role) components. I would like to relay on the AppServer Security/Audith system to kepp my desing simple.

Perhaps, this a simpla and silly Q, but I could not find enought info in regards. Additionally, If any of you have any suggestion, I will be willing to try it.

Any help will be really appreciate,

Thanks in advance.
Mark Spritzler
Posts: 17309
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be careful about duplicate posting. I deleted your duplicate.

I am a little confused at what "restricted EJB methods" mean. Are you talking about methods you create in the interface that you want restricted based on roles through JAAS? or somehow talking about getting objects and methods part of the EJB api that a client shouldn't call like passivate and activate?

If you are talking straight JAAS with EJB, then there are many links at on their wiki to explain using it, and also the EJB and JAAS specs should cover it as well.

Good Luck

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!