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 / General / June 2007

Tip: Looking for answers? Try searching our database.

Desktop app. coms. via sockets - test

Thread view: 
Andrew Thompson - 26 May 2007 16:04 GMT
I want a better (more information feedback) way of
launching JWS* based apps. from web pages.

This example tests for the problems that would be
encountered if using sockets (from the JWS app.
back to the applet) for that reporting.
<http://www.physci.org/test/kk/applet.html>

* The technique should also work for non-JWS apps.
launched from a web page, but JWS apps. have a
security sandbox - they are both a more interesting
challenge, and more relevant to my needs.

More test results would be appreciated - especially
for machines with a firewall (I tried to enable the
Firewall on my box - and got a Win. message
saying 'no can do' - I'll try again later..)

The sort of detail I'd like, is expressed in the results table
<http://www.physci.org/test/kk/applet.html#result>

All results/comments welcome.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Andrew Thompson - 26 May 2007 16:29 GMT
Also posted to the Sun 'web start' forum
<http://forum.java.sun.com/thread.jspa?threadID=5176903>

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Andrew Thompson - 11 Jun 2007 07:14 GMT
Note: this repost* is X-posted to
comp.lang.java.programmer and comp.lang.java.help
but *follow-ups* (replies) have been directed
to c.l.j.programmer only.  If you reply, please
follow it on c.l.j.p.

> I want a better (more information feedback) way of
> launching JWS* based apps. from web pages.
[quoted text clipped - 18 lines]
>
> All results/comments welcome.

* ..and yes, I feel entirely justified in
reposting the original message completely
untrimmed.  I have waited around 2 weeks to
get any replies, and the original may have
dropped off some people's news clients.

I am willing to supply the code for this.
It is not secret, I just thought that being
sandboxed and based closely on Sun's KnockKnock
server/client example, it was not especially
interesting.

So how about it?  Detailed, fragmentary, or
..*any* other test results would be appreciated.

Andrew Thompson
Tom Hawtin - 11 Jun 2007 07:57 GMT
>> I want a better (more information feedback) way of
>> launching JWS* based apps. from web pages.

> I am willing to supply the code for this.
> It is not secret, I just thought that being
[quoted text clipped - 4 lines]
> So how about it?  Detailed, fragmentary, or
> ..*any* other test results would be appreciated.

On my laptop running ye olde 32-bit software (Windows Vista Home
Premium, Opera and JDK1.6), it does the same as FireFox up as far as the
security dialog. Obviously I deny the random security request from an
unknown party.

A token in the URL would work better, but wouldn't give a constant URL
for the application. I don't think cookies get shared between applets
and WebStart applications unfortunately.

But show us your source anyway.

Tom Hawtin
Andrew Thompson - 11 Jun 2007 11:45 GMT
...
> On my laptop running ye olde 32-bit software (Windows Vista Home
> Premium, Opera and JDK1.6), it does the same as FireFox up as far as the
> security dialog.

Do you have a firewall enabled on that machine?
...
> A token in the URL would work better, but wouldn't give a constant URL
> for the application. I don't think cookies get shared between applets
> andWebStartapplications unfortunately.

I considered using URL parameters in various forms.
The problem is that I cannot guarantee that the original
page with the applet, and any page opened by the
BasicService.showDocument() (in which I would put the
URL parameters to indicate 'success'), would open in
the same browser, let alone the same VM (and thereby
be in the 'same AppletContext as'/'be easily accessible
to' the first applet).

So it then comes back to how two untrusted applets,
potentially in different VM's, might interact.
AFAIU, there is no way.

> But show us your source anyway.

Umm.. OK, sure..
<http://www.physci.org/test/kk/source.zip>
(About 8Kb, made with the Jar tool.  Includes
the java source, JNLP launch files and the
applet page)

But note.. I am *not* asking for a code critique
on this *code*.  It is horrid - hacked together,
rather than designed.  It is the security environment
that controls it, that interests me.

Andrew (the 'unknown party';) 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



©2009 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.