aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Invoking Secure EJBs from Client App Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Invoking Secure EJBs from Client App" Watch "Invoking Secure EJBs from Client App" New topic
Author

Invoking Secure EJBs from Client App

Dushy Inguva
Ranch Hand

Joined: Jun 24, 2003
Posts: 264
All,

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 -Djava.security.auth.login.config=%APP_HOME%/conf/jaas.config where do i specify the server name and port for it to use for JAAS login?


SJCP, SCBCD, SJCD, SCDJWS, SCEA (Part I)
 
 
subject: Invoking Secure EJBs from Client App