Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking Secure EJBs from Client App

Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a remote EJB running on websphere. I'm trying to invoke it from a client program. It works fine. (I'm using Sun's com.sun.jndi.cosnaming.CNCtxFactory as the initial context factory).

Now, if i enable role based security for the ejb, how do i authenticate against the ejb server from the client ? Supplying the username & password in the JNDI lookup from the client does not work.

Now I am trying to do JAAS.

Now, even if i give it a jaas.config file, using the where do i specify the server name and port for it to use for JAAS login?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic