Nope, I’m still a newbie with CS. It
was an honest request for information!
That said, CS returns singletons by
default so your ContactRecord below is probably not working quite how you think.
I personally use CS to inject the
ReactorFactory into my MG controllers. From there I just call
getReactorFactory().createWhatever(“foo).
Doug
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Vega
Sent: Monday, July 10, 2006 2:50
PM
To: [email protected]
Subject: Re: [Reactor for CF]
Iterator & Coldspring
Doug,
The way you asked the question indicates how little I know of colspring and /
or what it should be used for. I take it I should not being using it for
records or gateways?
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/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
--
Dan Vega
[EMAIL PROTECTED]
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--