Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet > JNLP

 
Marcelo Sousa Ancelmo
Ranch Hand
Posts: 498
Eclipse IDE Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In our company, we have an applet in the intranet and i like to know how difficult is to migrate the applet for JNLP/Web Start?
Thank�s in advance.
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I understand it, Web Start is for installing/updating applications over the Web.
So, unless you're interested in turning your applet into an application, you don't need Web Start.
Burk
 
mukund kulkarni
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can do it with some modifications.
YOu can write a wrapper which will launch the applet inside a Panel. This wrapper class can be launched with the help of jnlp.
all other jars can be part of the jnlp including the codebase.
 
Mauro Marinilli
Author
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Burk is right, JNLP is mainly focused on J2SE applications. But you can use it for applets too, without any modification. That was originated also for easy migration of "fat" applets (often working within an Intranet).
Anyway, I suggest you to tranform your applet into an application in the near future. Maybe one that takes advanatge of the JNLP runtime API..
Cheers,
Mauro
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<furrowed eyebrows>Web Start for applets? I thought applets are normally delivered as part of a web page. If that's the case then wouldn't they be automatically installed/updated when you load the page?
Mauro, would you please elaborate?
Thanks,
Burk
Originally posted by Mauro Marinilli:
Burk is right, JNLP is mainly focused on J2SE applications. But you can use it for applets too, without any modification. That was originated also for easy migration of "fat" applets (often working within an Intranet).
Anyway, I suggest you to tranform your applet into an application in the near future. Maybe one that takes advanatge of the JNLP runtime API..
Cheers,
Mauro
 
Mauro Marinilli
Author
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Burk,
It's OK. Simply the JNLP mimics a bit the Applet container, pretending to be an "applet browser".
At page 284 of the book the magical "applet-desc" tag is described and some code is given.
Anyway, the support for applet is "shallow" in that it has been included only for easy migration of old "fat" applets into JNLP applications.
Anyway, the best way to use JNLP is through thick Java client applications.
I hope this clarifies the issue a bit..
Cheers,
Mauro
 
Fei Ng
Ranch Hand
Posts: 1245
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is interesting...
Since we have Webstart and JNLP now when should we use Applet or Webstart? Any example will be helpful! What is the advantage and disadvantage?
 
Mauro Marinilli
Author
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a rule of thumb,
use applet on the Internet, as lightweight, freely accessible components.
Applications (thick clients) can be used in an Intranet environment or deployed over the Web.
Essentially JNLP can be used for applications that substitutes thick applets.
Do not use JNLP for applets in the long run! There is the good old Sun Plug-In for applet deployment.
Cheers,
Mauro
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe I'm being dense, but I just don't get why, or how, you'd use web Start with an applet. Is there some way to get an applet other than loading it as part of a Web page?
Originally posted by Mauro Marinilli:
Burk,
It's OK. Simply the JNLP mimics a bit the Applet container, pretending to be an "applet browser".
At page 284 of the book the magical "applet-desc" tag is described and some code is given.
Anyway, the support for applet is "shallow" in that it has been included only for easy migration of old "fat" applets into JNLP applications.
Anyway, the best way to use JNLP is through thick Java client applications.
I hope this clarifies the issue a bit..
Cheers,
Mauro
 
Mauro Marinilli
Author
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Burk,
There's nothing wrong with you, I have to writemoreslowly ( ) my postings!
An applet runs in an applet container, as a servlet runs in a servlet container, and so on. You can even build by yourself an applet container. Sun's AppletBrowser isn't a Web Browser but it does run applets.
JNLP Applet support shouldn't be misused, it is just a facility for easing the migration of "fat" applets into JNLP-launched applications. The proper deployment tool for applets still remains the Sun PLug-In. But for a category of "fat" applets (stuff like Oracle JInitiator, for example) the best _temporary_ solution is to deploy it via JNLP.
I hope to have clarified better the point.
Thanks for your patience,
Mauro
 
Fei Ng
Ranch Hand
Posts: 1245
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys for clearing that up!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic