[Opensource] Swing client

Tsanko Stefanov tsanstef at hotmail.com
Thu Jul 4 08:56:44 PDT 2002


Hi Turgay,

We are also thinking to use a client that will complement the Web Based 
comunications. For me the pros in that approach are more then the cons. A 
client will increase the speed (the processing of the Input and Output 
Elements will be performed there, and many more) and decrease the number of 
queries one makes with the server. Plus there are things that you simply 
can't do with the web based interface. For example I want to control or at 
least get a feedback about the printing proces from the client's side.
The communication could be achieved by sending forwards and backwards 
Controllerrequest and ControllerResponse. Thus the Controllers will stay the 
same.
For me the major problem is Expresso integration. From your letter I got the 
feeling that you are not considering RMI client-server. The client will be 
exchanging Requests and Responses with the server.
You need a "server" the will conduct the RMI communication with the client. 
(it could be something simple - owr own primitive RMI, because the variety 
of the Objects being passed is limited to 2). That "server" will have to 
deel with the controllers.
So far so good, but then one is bypassing the Expresso Security - unless we 
work with the expresso team and they consider integrating this in one of 
their next releases. This will realy give expresso a boost.
The other issue is the protection of the information being passed. We don't 
want someone intercepting the communication.


Anyway, this issue is something that I am interested in and we could 
collaborate on it in the neer future.

>From: "Turgay Zengin" <turgay_zengin at hotmail.com>
>Reply-To: opensource at jcorporate.com
>To: opensource at jcorporate.com
>Subject: [Opensource] Swing client
>Date: Thu, 04 Jul 2002 15:02:04 +0300
>
>Hello all,
>
>A strange(?) idea occured to me yesterday. Being tired of dealing with the
>ugliness of jsp(for me at least), being a very bad web page designer, I
>thought of getting rid of the browser altogether, and build a swing client.
>Will work like this:
>
>1) In the swing app, construct an object holding everything you want to 
>send
>to the Expresso Controller (this may be an ArrayList of Strings?)
>2) Call the controller, don't forget to send the object
>3) The controller will get the object, do its processing, and will 
>construct
>its own object holding what it needs to send back to the client
>4) The client receives the resulting object, and updates its interface.
>
>Did anyone try this? What is your opinion?
>
>My reasons are:
>-I am building apps for the intranet only, so I have control over the
>clients, absence of the browser will not be bad.
>-I'll be able to make nice GUI's (with the help of a GUI designer - did a
>say I was bad at GUI design?)
>-jsp, tag libraries will be history for me
>
>disadvantages:
>-I'll need to install the app to every client machine (use Java Web Start?)
>-I'll have to change the behaviour of Expresso Controllers. I'll need to
>de-serialize the object from the client, do the processing, serialize and
>send an object containing the reults. All other functionality need not be
>changed however.
>-Do you see any more disadvantages? I can't think of anything else. As I
>said, all my apps will be for internal use, I'll not need access from
>internet. If needed, I can still build web interfaces, since Expresso will
>be there.
>
>I already did some tests using basic servlets, and this approach works.
>Right now I am trying to login from swing (LoginController.processLogin). 
>If
>successful, I'll continue.
>
>Will be happy to hear your comments.
>
>-Turgay Zengin
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the Opensource mailing list