"One good thing about music - when it hits, you feel no pain" <P>Bob Marley
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I have same desgin like Max's book. ... I have seprate Data class instance for each client
Second problem is, when I create 15 client(threads) it works fine but above that I get exception (something like SocketFactory) but program ends proper way.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
About exception I searched the forum and come to a conclusion that either my O.S(XP)or RMI has a bug.
May be I am wrong.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
System.setProperty("java.rmi.dgc.leaseValue", "10000");
SCJP 1.4 SCJD
Well, yes, but it is a little more complex than that - it is also important to work out when unreferenced is called with respect to when the client disconnected.My comprehension about it is that unreferenced() was called when Client unconnceted.
Try taking it out and see how the program workswhy this sentence used?
I don't understand what you are suggesting - perhaps you could post a code snippet so I can see.if i use command rmiregistry instead LocateRegistry.createRegistry(1234);then unreferenced() would not be called?
Take a look at Sun's jGuru: Remote Method Invocation (RMI) tutorial. I would recommend going through it thoroughly.Maybe what i need is some tutorial about interface Unreferenced.
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
You got style baby! More than this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|