Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2007

Tip: Looking for answers? Try searching our database.

JNLP/Web Start Question

Thread view: 
Steve A - 22 Dec 2006 21:01 GMT
I'm on a project that has a GUI written in Swing and which is
downloaded and launched via Web Start. The user uses the web-based
application to navigate and find data and the Swing application is used
to view the data when the user clicks on the particular link. The JNLP
file is generated at request time so that it has request-specific
parameters. We are trying to avoid opening multiple Swing application
instances each time the user clicks a link. Also, we cannot run the
browser embedded in the Swing application, the browser has to be
running separately.

Is it possible for the user to click the JNLP link again and instead of
launching a new instance of the Swing application have the same
instance load some different data?

Any ideas or help is greatly appreciated,

-Steve A.
Thomas Hawtin - 23 Dec 2006 14:12 GMT
> Is it possible for the user to click the JNLP link again and instead of
> launching a new instance of the Swing application have the same
> instance load some different data?

There is a single instance service (from 1.5, IIRC).

Tom Hawtin
Steve A - 29 Dec 2006 00:35 GMT
Thank you, Tom.

I looked into the javax.jnlp.SingleInstanceService and from the
documentation it looks like exactly what I need. Unfortunately I can't
get a sample to work and the documentation is sparse. Can anyone who
has used this service provide guidelines or sample code?

Thank you,
Steve A.

> > Is it possible for the user to click the JNLP link again and instead of
> > launching a new instance of the Swing application have the same
[quoted text clipped - 3 lines]
>
> Tom Hawtin
Lukas Zapletal - 07 Jan 2007 15:51 GMT
Hello Steve,

did you get it working? Its not working for me too...

LZ

Steve A napsal:
> Thank you, Tom.
>
[quoted text clipped - 13 lines]
> >
> > Tom Hawtin
Lukas Zapletal - 07 Jan 2007 16:09 GMT
Maybe this will help:

http://lukas.zapletalovi.com/blog:jnlp_singleinstanceservice_not_working

> Thank you, Tom.
>
[quoted text clipped - 13 lines]
>
> > Tom Hawtin
Andrew Thompson - 08 Jan 2007 03:37 GMT
Please refrain from top-posting.

> I looked into the javax.jnlp.SingleInstanceService and from the
> documentation it looks like exactly what I need. Unfortunately I can't
> get a sample to work and the documentation is sparse. Can anyone who
> has used this service provide guidelines or sample code?

Example:
1) Launch file - sandboxed
<http://www.physci.org/jws/singleapp.jnlp>
2) Source (with source/JNLP/ant build file) - tiny
<http://www.physci.org/jws/singleapp.zip>

HTH

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.