A more logical approach:

<cfset reactor = application.cs.getBean ("reactorFactory") />
<cfset contactRecord = reactor.createRecord ("Contact") />
<cfset contact = contactRecord.load (contactId=url.id)>


On 7/10/06, Doug Hughes <[EMAIL PROTECTED]> wrote:
Why are you using CS to configure gateways and records?

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Dan Vega
Sent: Monday, July 10, 2006 2:38 PM
To: [email protected]
Subject: [Reactor for CF] Iterator & Coldspring

Thank you to all for the help with my iterator questions, everything is
running great & fast.

One more quicky, I just started to learn coldspring so this is prolly just a
lack of knowledge But all of reafctor components are setup in coldspring.

    <bean id="reactorFactory" class=" reactor.reactorFactory">
        <constructor-arg name="configuration">
            <value>config/Reactor.xml</value>
        </constructor-arg>
    </bean>

    <bean id="ContactGateway" factory-bean="reactorFactory"
factory-method="createGateway">
        <constructor-arg name="objectAlias">
            <value>contact</value>
        </constructor-arg>
    </bean>

    <bean id="ContactRecord" factory-bean="reactorFactory"
factory-method="createRecord">
        <constructor-arg name="objectAlias">
            <value>contact</value>
        </constructor-arg>
    </bean>



I am finding weird instances where this comes up, and the record is still in
the database


Record Deleted

The record you're using has been deleted. There are some properties which
will continue to function after a record has been deleted, but not all of
them. Please create a new record and go from there.


If i take away this

    <!--- get the contact --->
    <cfset contactRecord = application.cs.getBean("ContactRecord")/>
    <cfset contact = contactRecord.load(contactId= url.id)>

and re instantiate the object everything works great. I would imagine I am
missing something simple about object instatnces throgh coldspring.


--
Dan Vega
[EMAIL PROTECTED]
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
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/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




--
<cf_payne />
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to