• Post Reply Bookmark Topic Watch Topic
  • New Topic

correct syntax...?

 
Muhammad Shahzad
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is it correct syntax to embea a Bean within an Applet:

<APPLET ACHIVE="MyResources.jar"
CODE=MyApp.class
WIDTH=200
HEIGHT=200>
</APPLET>
Thanking in anticipation.
Regards
M.Shahzad
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean how should you include the remote interfaces of an EJB for an applet acting as an EJB client, then yes, the remote interface .class files (and any parameter classes) need to be included in the applet's .jar file.
Here's a sample of the HTML code block for an applet using .jar archives:
http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html#plugin
EDIT: I forgot to mention that you might need some client libraries for your particular application server in addition to the EJB interfaces. Refer to your appserver's documentation for details.
[ August 12, 2003: Message edited by: Lasse Koskela ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!