I've got an example applet that calls and EJB in my book, "Enterprise
Javabeans : Developing Component-Based Distributed Applications " (ISBN
0201604469).

Here's the short version:
1) There's almost no difference between EJB code in an applet and EJB code
in a normal application.
2) If you need to do any setup calls to point to the EJB host (for example,
in Weblogic, you
need to give a URL for the JNDI provider), use getCodeBase().getHost() to
get the address.
                p.put(Context.PROVIDER_URL, "t3://" +
getCodeBase().getHost() + ":7001/");
3) You're probably better off using servlets to encapsulate your EJB logic
and passing only HTML/HTTP over the internet.
4) You need to make sure that all the classes your applet will need are
available in the "CODEBASE" tag. This includes the stubs generated during
compilation, as well as any vendor-specific classes required to support
underlying implementation details (i.e. classes that implement the wire
protocol).

Hope this helps,

Tom

===========================================================================
  Tom Valesky   -- [EMAIL PROTECTED]
       http://www.patriot.net/users/tvalesky

-----Original Message-----
From: Nittle Gupta <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, October 11, 1999 6:37 AM
Subject: help in calling EJB through applet


>Hi All,
>        How to proceed for writing an applet calling a simple session
EJbean
>"Hello World" or please refer me the web document for 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".

===========================================================================
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".

Reply via email to