Jan 7th, 2009, 11:54 PM
Spring Controller behaviour
If I store an object within a controller as its private member, for example i have a hibernate entity called Contact and I store List<Contact> contacts as a Controller's private member and the Controller's scope is prototype. Will the user get the same Contact everytime he refreshed ? or is it possible for a user met another Controller which has other user's Contact ?
Jan 8th, 2009, 02:38 AM
You shouldn't keep state inside your Controller. Your Controller should be stateless.