Actually the AccessControlException is a bit misleading. Our enterprise
apps connect applets directly to the EJBs so I have some experience with
this. This error usually occurs when the applet tries to access a class
that is in a jar file it doesn't have access to. More specifically the
stubs for the particular EJB that it's trying to access. What we have done
is include these files in either the applet's jar itself, or in a separate
jar file. This is pretty much the only way since to make them available for
download from the server you would have to place them somewhere in the
classpath of the server. This violates the EJB spec that says these files
should only be available to the server through the EJB jar file. In fact,
if you're using Weblogic 6.0, the server won't even deploy the EJB if any of
its files are in the server classpath.
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Leonard Wolters
Sent: Tuesday, June 26, 2001 06:56
To: [EMAIL PROTECTED]
Subject: Connecting applets to beans
Hi there,
I would like to gain some information about connecting
applets to enterprise beans. Right now, due to the heavy restrictions
applets have, I get java.security.AccessControlExceptions when
the applet queries the Context (i.e. Context.lookup) for a particular
bean. Most probably, I should configure ejb.xml file to let the
applet have access to the bean.
Particularly, I would like to have some information about
beans and access permissions. Does anyone know any good
documentation and / or web pages ?
Please note that the problem only occurs when an applet wants to
access the bean: an application can access the bean without any
problems......
Thanx !
Leonard Wolters
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".