users@glassfish.java.net

Re: app-client + jaas + swing = I am confused

From: <glassfish_at_javadesktop.org>
Date: Wed, 21 May 2008 23:38:38 PDT

Yes, I mean the entry point.

I am aware of both ways of doing authentication, and yes they seem to work fine.
However, for example, I try to access a session bean from a different thread - eg a swing event


I receive a (and forgive me, but for some reason my copy from console window is not working so going to keep it abbreviated)

java.rmi.AccessException: CORBA NO_PERMISSION
at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context()
<snip>

again, any EJB that is accessed from within the thread called by main(String[] args) is fine.

Any time I try to access an EJB outside of that thread, either by ProgrammaticLogin or the automatic login fails.
[Message sent by forum member 'sasq' (sasq)]

http://forums.java.net/jive/thread.jspa?messageID=275923