PDA

View Full Version : Problem understanding the .NET Remoting Quick Start


zeus
11-03-2007, 09:10 PM
Hello,

I've got the example running in the different configuration modes. In the doc under 31.5 Remoting Schema is mentioned:

"Note that the singleton nature of the remoted object is based on the Spring object definition. The "PrototypeCalculator" has its singleton property set to false to that a new one will be created every time a method on the remoted object is invoked for the SAO case."

That is reproducible. What i don't understand is that the initial behavior
differs in the two modes: "cao.xml and cao-aop.xml" When I'm using cao.xml on client-side the "memoryStore" isn't set to 217 so i get this result:

--- Press <return> to continue ---
Get Calculator...
Divide(11, 2) : Quotient: '5'; Rest: '1'
Memory = 0
Memory + 2 = 2
Get Calculator...
Memory = 0
--- Press <return> to continue ---

I would expect the init Memory to be 217, like when I'm using cao-aop.xml. What's my error in reason?

Greeting Zeus

Bruno Baia
11-07-2007, 07:00 PM
Hi,

u right, there was an error in the CaoExporter.
It was using GetObject(string name, object[] arguments) and we changed the behavior of that method recently.

I've commited a fix, it should be availaible in next nightly build or wait for the incoming final release.

Thks for reporting it !

- Bruno