[Opensource] Swing Client

Jan.Moons at alcatel.be Jan.Moons at alcatel.be
Mon Jan 27 23:36:19 PST 2003


Hi Prashanth,

Actually I am a web developer so I've never tried what I am going to explain
here.
But I think that it is the only "good" way to implement such a distributed
environment.

I would create a Swing client that communicates with a "Stateful" Session
EJB on your Application server. You use this bean to keep track of your
session information, and all you need in your Swing client is a pointer
(object referring) to this bean, reuse this object every time you need to
access your session information.

This session bean can communicate with other session or entity beans or even
your own utility classes.

Look at www.serverside.com if you need more information about EJB's.

Hopefully this helps a bit,
Jan


----- Original Message -----
From: "Manjaparairamakrishnan, Prashanth (Cognizant)"
<MPrashan1 at CHN.COGNIZANT.COM>
To: <opensource at jcorporate.com>
Sent: Monday, January 27, 2003 12:42 PM
Subject: [Opensource] Swing Client


Hi Geniuses,

Am a novice in the world of Java (just 2 years old). And want to have a
small insight into how to go about doing the following.
I have a requirement in which the client is a thick Java swing client. My
App server is WebSphere 4.0.1 and since this is not a web-based client, I
have difficulty in implementing session handlers for the application. Can
some one tell me if Session and Session handlers can be implemented in Swing
clients. If so, can you also provide a sample code of how I do it?

Thanx in advance.

Prashanth,
If you can dream- and not make dreams your master,
If you can think and not make thought your aim,
If you can meet with Triumph and Disaster
And treat those two impostors just the same...






More information about the Opensource mailing list