There isn't anything that provides what you need out of the box - however, what you could do is to create a factory component that handles the creation of new transient instances based on incoming requests. The factory component would be a singleton that would track identifies and cache transients relative to identifies.
public interface ThingFactory { UserThing getThingForUser(); } Given the above service, you could perhaps assign the user identity as a thread-local variable. The implementation could then check the identity and handle construction of "UserThing" based on state information relative to the identity together with caching of the returned object. You could also handle cache releases using garbage collection cycles (via dispose) and notifying the factory of instance disposal (which will keep your factory from burning memory with too many cached references). Steve. > -----Original Message----- > From: S V Subramonian [mailto:[EMAIL PROTECTED] > Sent: 09 September 2004 17:47 > To: [EMAIL PROTECTED] > Subject: Merlin Component lifestyle per user > > All, > > Let me briefly explain my requirement. > > My System should be able to provide an instance of > a component per user. That means there will be one and > only instance of a component created during the user's > first request and the system will be serving the same > instance to the user's all of the following requests. > Also system should be able to reconfigure any or all > of the instances of that component. > > > Could any one of you help me to find out a way for > implementing this using Merlin. > > Note: I was looking at the "lifestyle=transient", but > "transient" will return a new instance for every > request, where as I need the same instance of the > component for all of the user's requests. > > regards, > Subbu > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]