I am testing locking mechanism by creating threads and each thread hold it own connection to the server, but after 50 or so connection I get connection exception.
This is a common problem and several people have reported it, including me. Apparently, Sun's RMI implementation is not industrial strength, and it gets choked when bombarded with multiple connection requests. Some app server vendors, such as Weblogic, opted to provide their own implementation of RMI. Just test with less than 50 connections, you will be fine. Or, you may want to sleep() a bit betweeen making connections. Eugene. [ December 10, 2002: Message edited by: Eugene Kononov ]
Joined: Oct 06, 2002
Eugene, Thank you for your reply, sleep() is a good idea for testing.One more thing I did not implement the unreference interface, instead I have a worker thread which clean the old clients locks and assumes they have crashed, do you think it is ok? Did people lost marks by doing so? Jawad [ December 10, 2002: Message edited by: Jawad Kakar ]
Joined: Oct 08, 2001
instead I have a worker thread which clean the old clients locks and assumes they have crashed, do you think it is ok? Did people lost marks by doing so?
Not sure about other people, but I didn't bother with any of this extra features and I got maximum score for my server design. Eugene.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com