No, there is your problem. That creates a Singleton, so there is only going
to be one instance of the record, which is why you keep getting the same
object back every time you ask for a record. You can set singleton="false"
to make this a per-request object instead, but you're incurring a lot of
overhead due to the mechanics of how ColdSpring looks up and resolves
dependencies. You'd be better off just writing your own factory, or simply
passing Reactor itself into whatever components need it and calling
createRecord() directly on it to get a new record.

On Feb 18, 2008 1:23 PM, Byron Raines <[EMAIL PROTECTED]> wrote:

> Yes that was my next step.  I create modeled this after your bookstore
> app.  I actually have another MG app that this is happening to and just
> noticed it (since I forgot to change reload to false).  I changed the
> controller for that to Fusebox 5/CS and still happening.  I took out the
> CS part in the fuseactions, and changed to using reactor lexicons to get
> and save record and it works.  So I'm think it has something to do with
> Coldspring and beans.
>
> Does
>
>    <bean id="physicianDAO" factory-bean="reactorFactory"
>        factory-method="createRecord">
>        <constructor-arg name="objectAlias">
>            <value>tblPhysician</value>
>        </constructor-arg>
>    </bean>
>
> create the record when to bean is referenced?
>
> byron
>
> Brian Kotek wrote:
> > I would also try removing Model-Glue and ColdSpring from the equation
> > and just attempt to duplicate the issue with a simple CFML page using
> > only Reactor.
> >
> >
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > -- -- -- --
> > Reactor for ColdFusion Mailing List
> > [EMAIL PROTECTED]
> > Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > -- -- -- --
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [EMAIL PROTECTED]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>
>


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to