SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:I clearly understand that each request from the browser should be served by seperate instances of action classes
Jothi Shankar Kumar wrote:
, but what about the facade. Here my facade is responsible for starting the transactions and it is a one to one mapping to the method calls in the service layer. I do not have state in either of my service and facade. The question is which could be modelled as a singleton and which could be modelled as a prototype scope?
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:I understand it like this...Spring creates new thread for each subsequent request on the shared instance. Is my understanding correct here?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:Will the request B to the singleton instance has to wait for the Request A to complete its work so that it (Request B) can get hold of the Singleton instance to call Method B?
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Kengkaj Sathianpantarit wrote:
Jothi Shankar Kumar wrote:Will the request B to the singleton instance has to wait for the Request A to complete its work so that it (Request B) can get hold of the Singleton instance to call Method B?
If you do not synchronize your code, the answer is no.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:
Kengkaj Sathianpantarit wrote:
Jothi Shankar Kumar wrote:Will the request B to the singleton instance has to wait for the Request A to complete its work so that it (Request B) can get hold of the Singleton instance to call Method B?
If you do not synchronize your code, the answer is no.
Fine, how do you justify your answer. Can you explain me that?
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Will the request B to the singleton instance has to wait for the Request A to complete its work
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Don't get me started about those stupid light bulbs. |