Ben,

Is there a reason that you inject directly into the service object. Recently, I was in a similar situation and decided for just passing the reactorFactory to the Service Objects. AFAIK, reactor with-in itself caches all the objects so calling one Gateway from several service CFC will always return the same instance. Is this a correct assetion?

Thanks

On 10/27/06, Porter, Benjamin L. <[EMAIL PROTECTED]> wrote:

This is what I have been doing also. You can always replace the reactor factory with another factory object if you pull reactor out, and have that generate your DAO, and TO objects.

 

The gateways I inject directly into the service object.

 


From: [email protected] [mailto:[email protected]] On Behalf Of Kurt Wiersma
Sent: Friday, October 27, 2006 1:18 PM
To: [email protected]
Subject: [coldspring-dev] Advice: Using Reactor Framework

 

I have run into this situation already have found it easiest to have CS inject the reactorFactory into my service layer. In the service layer it then uses the reactor factory to grab the gateways an record objects it needs. I can post a sample if anyone is interested.

--Kurt

On 10/27/06, Clint Miller <[EMAIL PROTECTED]> wrote:

This is an interesting question.  And a good forum for this follow on
question: how would you use ColdSpring to inject other objects into
Reactor-created ones--such as injecting a shopping cart into a user
record that is created by Reactor?

I think there are some interesting opportunities for more integration
between Reactor and ColdSpring (probably from the Reactor side,
correct?)

What are the best practices?  Well worded, Scott.

Clint

On Oct 27, 2006, at 7:13 AM, Scott Arbeitman wrote:

> I'm working on a project using ColdSpring, and I'd like to use an
> ORM framework (preferably Reactor). I'd like to inject Reactor
> objects into the service layer, but the way Reactor works, if I
> want to use record objects, it seems I have to inject an instance
> of the Reactor factory and create record objects from there. This
> differs from injecting home grown DAO's or gateways into a service,
> where the service implementation can be separated from the way the
> DAO's were generated.
>
> Does anyone have any suggestions on how best to incorporate this
> style of ORM (basically an Active Record pattern) using ColdSpring?
> What would best practice be?
>



 

****************************************************************************

This email may contain confidential
material. If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.

 ***************************************************************************

 

Reply via email to