You may want to check this approach to applet/ejb interaction:

http://developer.java.sun.com/developer/technicalArticles/RMI/rmi/

The unstated fact seems to be, that applet-ejb communication is not
explicitly supported in J2EE, unlike the client/ejb situation which is
configurable via the application-client.xml configuration file (I'm not a
netbeans user, but this may be how your netBeans ide can get to your ejbs).
Another excellent reference on this issue is the 'Applet-Servlet
Communication' chapter in Java Servlet Programming, by Jason Hunter and
William Crawford (Pub. O'Reilly).

Bill.
----- Original Message -----
From: "Oscar Radio" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 1:34 AM
Subject: EJB from an Applet


> Hi all,
>
> I'm developing an application using swing that executes remotes EJB.
> The applications works fine if I executed from NetBeans, but if I executed
> from an applet it gives me the next error:
>
>
JERP.Applets.CO.bin.ConexionServidorEJB.jndiContext->javax.naming.InitialCon
> text@5e2ccd
> java.lang.ClassCastException
> at
> com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown
> Source)
> at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
> at
>
JERP.Applets.CO.bin.PanelAccesoJERP.inicializarComponentes(PanelAccesoJERP.j
> ava:142)
> at
> JERP.Applets.CO.bin.PanelAccesoJERP.<init>(PanelAccesoJERP.java:69)
> at
> JERP.Applets.CO.bin.AccesoJERP.inicializarComponentes(AccesoJERP.java:71)
> at JERP.Applets.CO.bin.AccesoJERP.<init>(AccesoJERP.java:56)
> at applet.init(applet.java:82)
> at sun.applet.AppletPanel.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
> The same code with JBoss it works. These are the jars that I put in
netbeans
> and in the jre:
>
> ejb.jar
> jdbc.jar
> jta.jar
> mail.jar
> orion.jar
>
> Thanks, Oscar.
>
>


Reply via email to