There is no such thing as a "session-scoped" (or user-scoped) service model in HiveMind. So, the singleton model will instantiate exactly one implementation which will be used by everyone. If you want to lookup an ASO in your HiveMind service, you use the ApplicationStateManager. Just declare a property of type ApplicationStateManager and provide a setter for it. When HiveMind builds your service implementation (assuming you're using BuilderFactory), it will automatically inject the ApplicationStateManager into your implementation object. Then, you can use it to lookup the ASO you want by name.
-----Original Message----- From: xVik [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 9:18 AM To: [email protected] Subject: RE: global hivemind service i really dont know how to invoke application state object into hivemind service. and about singleton model.. i think it creates instance of service on first reference and this instance is also individual for each user.. may be im wrong in general i need somthing like global application state object to store some common data. -- View this message in context: http://www.nabble.com/global-hivemind-service-tf2003454.html#a5503015 Sent from the Tapestry - User forum at Nabble.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]
