473,383 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

best way to remotely display a java GUI

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 lo******@ifa.hawaii.edu
Jul 17 '05 #1
5 4420
Have u heard of code mobility? Its a bit complicated - it invloves
sending class files over from the remote host to the local machine.
Once there, the classes can be loaded and the application can be run
locally.

Of course this requires some advanced coding and makes some
assumptions such as the local host having the JRE etc. read up on it
if interested.

--
Fahd Shariff
http://www.fahdshariff.cjb.net
"Let the code do the talking..."
Jul 17 '05 #2
isn't Linux beautiful....!

i've got a dual boot machine here and right now i'm writing to from
windows xp..... AWK!!!!!!!!!!!!!!!!

what the hell am i'm doing.....??????

one moment please....

- 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 lo******@ifa.hawaii.edu


Jul 17 '05 #3
zach:

i think what you have to consider are the fundamental differences
between how the GTK applications and Java. for one thing the gtk apps
over ssh have had a long time to be engineered properly to run most
efficiently over an ssh connection, whereas the defaul behaviour for ssh
to run an application that it may not be directly familiar with is to do
a literal binary copy (upload) to the client with respect to java. Now
java does not have to run in this fashion, however.

the big question is, what exactly is the java app you are sending over?
is it just the jar file or the whole jre ? and once it gets over, why
the lag in performance ? alot depends on the client/server framework
your app is based on. are you relying on the default remote protocol for
java apps, that is, RMI? that can be a bit taxing when on by default...

Sockets maybe a much better way to go.....

Typically, in a distributed app, java applications need to be
distributed in a jar file. This can require an initial d/l lag
accordingly. Here's where the brains of a good architect come into play.
Trying to design slim clients and not fat ones....

just a few ideas...

- perry
ps.
i'm now writing to you from my red hat client (shrike), ouitside of the
sound card problem, everything else is working beautifully...
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 lo******@ifa.hawaii.edu


Jul 17 '05 #4
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 lo******@ifa.hawaii.edu


Jul 17 '05 #5
hey zach,

Code mobility is a very new thing which is mainly used in mobile and
adaptive systems. I have to admit, i do not know much about it nor
have i actually programmed anything that uses it but i can point you
to some research papers that i have read:

Adaptable Mobile Applications: Exploiting Logical Mobility in Mobile
Computing
http://www.cs.ucl.ac.uk/staff/c.mascolo/www/mata03.pdf

Understanding Code Mobility
http://www.elet.polimi.it/upload/pic.../icse00tut.pdf

--
Fahd Shariff
http://www.fahdshariff.cjb.net/
"Let the code do the talking..."
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: Frank | last post by:
What is the best IDE for developing PHP applications? What do you use and why? Thanks.
1
by: John | last post by:
Hi We have our web site remotely hosted by a service provider. What we need is to from time to time remotely upload transactions to the site from our office vb.net database app, so the site can...
6
by: RS | last post by:
Hi, What's the best practice to save user preferences for a .NET application . For example if the user does not want anymore to see Tip-Of-The-Day (TOTD), the user can tick a checkbox on the...
0
by: Marc Melancon | last post by:
I have a situation where accessing perfmon counters remotely does not display the same list of Performance Objects remotely as it does when doing it from the host of SQL Server. From the host of...
4
by: Ron Brennan | last post by:
Good evening, Windows 2000, JDK 1.5. What opinions do people have on what way and tool programmaticly produces the best quality thumbnails from larger images? On the web I've seen Java...
5
by: Ike | last post by:
Through Java, I am attempting to connect to a MySQL 4.12 server on a remote computer. I can connect fine via php. I cann connect fine via Java, through a servlet, when the servlet is on the same...
2
by: camma0001 | last post by:
Hi. I'm in a jam... I restored a DB2 database from one win 2003 DB2 8 server system to another DB2 8 server system now I can't connect. I'm trying to connect my tomcat app server to the remote...
8
by: Sean DiZazzo | last post by:
Is there something special you have to do to get a wxPython app to run remotely under xwindows? My Tkinter apps always automatically work that way, so I was surprised to even be confronted with...
2
by: ashutoshrawat | last post by:
Hi I had 2 AIX system.i want to run a shell script on one machine, which will execute another shell script on another AIX machne. the 2nd remotely executed shell script will execute a java...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.