Re: best way to remotely display a java GUI

From: perry anderson (perry_at_cplusplus.org)
Date: 07/01/04


Date: Thu, 01 Jul 2004 11:11:52 -0300

one thing to consider if you want to use sockets or a packet approach
over ssh is that you may have to resort to a file sharing operation. i
would imagine ssh is designed to allow the ssh client to open files on
the server. this would also be a cool way to develop you app as you
don't need to develope it while using a ssh client session.

cheers

- perry

Zach wrote:
> This is all on linux using jdk1.3. My application is written in AWT,
> no swing.
>
> The application requires running it on the host machine and tunneling
> the GUI back to a client. I've been doing this via an ssh session.
> In the building the GUI works pretty much as if I was running it
> directly from the host machine, no lags or performance problems. Over
> longer distances I start to see some lagging, the GUI loses some
> responsiveness, it's not really a handicap at that point, but the
> delays are definitely noticeable.
>
> From home logged in via my roadrunner connection, I see substantial
> delays, that really impact the usefulness of the system. I can run
> GTK based applications over the same ssh session, and those respond
> beautifully.
>
> Obviously there's some performance problem there, and I'm trying to
> figure it out, and how to get around it. I've tried xhost from a
> telnet session, didn't really help much, so I'm guessing it's not SSH.
>
> So several questions come up:
> 1. What programming issues could I have ignored or missed that are
> causing this to happen? What things can I tighten up in my GUI code
> to add vigor to the GUI?
>
> 2. Is there a way of tunneling the GUI back that would get around
> these problems? The GTK based apps are rocking beautifully, even with
> the the poorer connection. Why don't they take the same performance
> hit? It doesn't seem like it's a straight java vs. native code issue.
> Is the support in X that different?
>
> I'd seen pretty horrible performance tunneling Swing applications
> before, so I've shied away from Swing.
>
> I tried the j2sdk v. 1.4.2, and actually got worse performance. Is
> that a clue?
>
> Thanks,
>
> -Charles
>
> ps. please email me at lockhart@ifa.hawaii.edu



Relevant Pages

  • Re: Secure file sharing without OS X server?
    ... So I poked the GUI a bit - Finder, cmd-K, hit `Browse' in the `Connect ... to server' window, open the required server in the network browser, and ... them says `Allow secure connections using ssh'. ... `Can't make a secure connection to server ...
    (uk.comp.sys.mac)
  • Re: putty x11 forwarding
    ... ssh with cygwin command line ssh -X ... backspace works fine in the gui program ... fire up the GUI installer ...
    (comp.security.ssh)
  • Re: Control Putty from another process [patch]
    ... this application should be in total control of the SSH connection. ... of apps like WinCVS, for example. ... ideally all configuration etc should be done via a GUI. ... The choice of authentication mechanism (passwords vs PK) shouldn't be ...
    (comp.security.ssh)
  • Re: SSH newbie question
    ... you really need GUI access so VNC is the go there: ... You can find out more about how to tunnel VNC over SSH here: ... If you have not already installed a SSH server on your W2K box, ... > I can perform remote administration for the windows 2k server and IIS ...
    (comp.security.ssh)
  • Re: a program to set up a secure private network?
    ... > possible to really explain what he needs to fix in order to use his web ... > root because some of the configuration I would do involves with root ... It would also needed that I access to his computer in GUI ... but you don't know about ssh? ...
    (alt.linux)