Link to home
Start Free TrialLog in
Avatar of namsu55
namsu55Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Client Server Observer In Java

I want to see a Java example of a Client Server using the Observer design pattern. A server should send client all updates of a variable for example. I am farmilar with the Observer pattern and its Java implementation. Not so good with client server implementation, i have viewed this example so far.

http://www.developer.com/java/ent/article.php/1356891

However the ClientThread when I compile it gives me an error saying the catch should not be contained within the try block.

If you have any examples or links that would help me with this more please do let me know.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

there won't be many of those around, why don't you just fix the error in the one you've got? btw why using Observer, its a bit of a dinosaur.

Avatar of namsu55

ASKER

Just so I can send some updates to a few GUI's. View the code not sure why its giving me that error. I cant see what is even wrong with it looks fine.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of namsu55

ASKER

That works just testing this code out.
but I answered your question didn't I?