Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Java client instead JavaScript and AJAX, Flash

  Asked By: Anpu    Date: Dec 12    Category: Java    Views: 904

there are lots of web client technologies for RIA (Rich Internet Application)
most of them use JavaScript and AJAX as techniques or Flash as underlying technology or both
for example ADF RC uses JavaScript and AJAX, Flex uses Flash and Lazlo uses both

recently I saw this statistics in Adobe flash download site:


it says the availability of technolies is like this:
Flash 98.8%
Java 84.6%
MS Windows Media Player 83%
QuickTime 68.4%
Shockwave 59.3%
Real 52.6%
SVG 9.9%

it was really interesting for me that Java is available on 84.6% of world computers!
the other interesting fact is flash plug-in is 1.5 MB

on the other hand the the download size for consumer JRE (small version of JRE has minimum VM and load needed packages later)
is 2MB for a hello world application and less than 4MB for a complex swing application like SwingSet2 demo application as claimed by sun below:

due to above facts, I am thinking why not use Java web start at client instead of heavy weight AJAX components and bypass the web layer?
this way architecture will be SWING on client (loaded by Java Web start), EJB in middle tier, ...
then developers can omit the web layer and all related complexities of it!



3 Answers Found

Answer #1    Answered By: Caitlin Brown     Answered On: Dec 12

You should consider restrictions of using JavaWebStart-An implementation of JNLP technology:

Your code must be followed of JNLP restrictions. All classes & resources(including xml, property and other files) must be archived. All resources must be read from ClassLoader(& not from file system).
Your client-side code must be always in up-to-date state(maintaining resource versions in server side), otherwise client  will be in inconsistent mode.
First time, all client-side artifacts(and JRE & JWS Plugin, if they does not exist in client-side) will be downloaded from server-side to client side. This issue should be considered in low-speed internet/intranet lines.
For more information about JNLP & its restrictions,please refer to attached document.

Answer #2    Answered By: Mamie Wallace     Answered On: Dec 12

thanks for very informative attachment,
so you agree with using JWS instead of AJAX and Flash?

Answer #3    Answered By: Randy Warren     Answered On: Dec 12

In theory, yes. but in practical, it should be experimented.

Didn't find what you were looking for? Find more on Java client instead JavaScript and AJAX, Flash Or get search suggestion and latest updates.