![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I understand the difference between the two types (Singleton & SingleCall) but what affect does this have if the Remoting Server accepts multiple connections from multiple clients, and they're all sending messages or using methods? Does it (server) manage this automatically? |
#3
| |||
| |||
|
|
On Wed, 3 Aug 2005 13:55:00 -0700, JSheble wrote: I understand the difference between the two types (Singleton & SingleCall) but what affect does this have if the Remoting Server accepts multiple connections from multiple clients, and they're all sending messages or using methods? Does it (server) manage this automatically? Yes. If you published your object as a Singleton (or used Remoting.Marshall to publish your object), the server will make sure that there is always at most one instance of your object created and all your clients will always access the same object. If you publish your object as Single Call, then the server will alwasy create a new instance of the object whenever a client calls one of its method and will destroy the object afterwards, which ensures you that you'll never have 2 clients or the same client accessing the same instance twice. |
#4
| |||
| |||
|
|
Ok, but I'm still a bit confused about multiple clients connecting to a Singleton object... what if multiple clients all call the same method simultaneously? Say 3 clients all call the same method, does the 2nd and 3rd call wait until the first finishes? Meaning does it queue the calls? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |