If a class A has a reference to B and class C is also having the same composite reference to B,but by default bean scope is singleton so in the session if we want to access the two objects then both A & C will be holding the same object of B because its singleton.since it has no meaning why this is taking the singleton scope.Is it make sense.?


Reply With Quote