On 10/07/06,
Simeon Bateman <[EMAIL PROTECTED]> wrote:
The problem you are having is probably because by default CS creates its beans as singletons, so that is fine for your gateway, but on a record that is bad news. You should set the singleton="false" on the bean for contactRecord to alleviate this problem.
As for dougs comments, he is perfectly right, he caches everything very well, so that attribute of CS does you Little good. I however like to use CS for my gateways and things so that I can pass them into my service objects and things as properties. It also allow me to have a simpler syntax knowing that all my objects come from CS and I don't have to work with reactor directly.
But in truth it shouldn't matter whether you just get your recordfactory and make your gateway, or whether you as CS for it. Its just a matter of preference.
HTHsimeon
PS. It can be very helpful to have the option to add advice to your reactor objects. So that is a benefit in using CS. you have the option to later add logging or caching without having to change any of your business layer code.On 7/10/06, Doug Hughes < [EMAIL PROTECTED]> wrote:Bingo. Not to mention that Reactor caches any stateless objects so, unless you're adding advice to the CFCs, I have a hard time seeing why you'd use CS to create them.
Doug
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
Nick Tong
web: http://talkwebsolutions.co.uk
blog: http://succor.co.uk
short urls: http://wapurl.co.uk
green link: http://wapurl.co.uk/?4Z2YDLX
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
