Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applet > JNLP

 
Ranch Hand
Posts: 498
Eclipse IDE Firefox Browser Fedora
  • 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.
 
Ranch Hand
Posts: 854
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
 
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.
 
Author
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: 854
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
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
 
Ranch Hand
Posts: 1246
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
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: 854
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
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: 1246
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys for clearing that up!
 
Always! Wait. Never. Shut up. Look at this tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic