Should I write applets or applications?

 


Whether you write applets, servlets, or applications depends on the connection that you want to use and from where you want to run the programs.

The main differences between applets, servlets, and applications are:

  • Applets are run with an applet viewer or in a Web browser, servlets are run in a Webapp server, and applications are run standalone.

  • Applets can be downloaded from a Web server to a Web browser machine, but applications and servlets are not.

  • Applets run with additional security rules limiting what they can do.

The following general rules apply:

  • If you want to run your programs from machines that do not have WebSphere MQ classes for Java installed locally, write applets.

  • The native bindings mode of WebSphere MQ classes for Java does not support applets. Therefore, if you want to use your programs in all connection modes, including the native bindings mode, write servlets or applications.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.