Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Remote modal JDialog


  • From: ejfried@xxxxxxxxxxxxxxxxxxxxx (friedman_hill ernest j)
  • Subject: [Advanced-java] Remote modal JDialog
  • Date: Wed, 30 Jan 2002 07:11:40 -0800 (PST)

Use an RMI callback: Define a remote interface DialogPresenter that
includes an appropriate "showDialog" method. Implement it in the
client. When the client calls the server's "compute" method, pass a
remote reference to a DialogPresenter object (implemented in the
client) as an argument. When the server needs to show the dialog, it
calls the showDialog remote method and the client presents the
dialog. In this context, the "server" is the client and the "client"
is the server. This is why it's called distributed object computing
instead of client/server computing!


I think Christian Ribeaud wrote:
> Hi,
> 
> I got a bit puzzled with the following problem and I would be very
> grateful if someone could help me:
> By now the client starts a thread getting some data from the server over
> RMI.
> On the server side a loop controlling and merging the data is then
> started
> and at the end the data are sent back to the client. So far so good.
> Now, I have to enhance the application so that the user will be asked 
> about what to do before merging. I would like to implement a think
> like a remote JDialog. The server loop should hang up and wait for the
> user
> answer. First of all, is that possible? Secondly, what is the best way
> to do it?
> Thanks for any hint and have a nice day,
> 
> christian


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  ejfried@xxxxxxxxxxxxx
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550