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
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