>I now need access to this session service from one of the Gateways.

CS won't be able to autowire your model, but it can still wire those cfcs for 
you.  In your services.xml file, define your façade and then define your 
gateway with the façade as a property like:

<bean id="yourGateway" class="path.to.your.gateway">
        <property name="sessionFacade"><ref bean="sessionFacade" /></property>
</bean>

<bean id="sessionFacade" class="path.to.sessionFacade" />

Then when you ask CS for your gateway, it will have the session façade wired 
in.

HTH

Rich Kroll


> -----Original Message-----
> From: Robert Rawlins - Think Blue
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 10, 2007 9:36 AM
> To: CF-Talk
> Subject: Access my SessionService from Gateway (MG, CS, Reactor)
> 
> Hello Guys, this should be a quick and easy one I hope.
> 
> 
> 
> I've made a habit of accessing all my scopes like Application and Session
> through a facade cfc passed to me by one of the other developers. When I
> need to access it from my controllers i just have CS auto wire it to the
> controller. I now need access to this session service from one of the
> Gateways. How can I access this service from my gateway? Some form of
> getBean() function perhaps? It seems that ColdSpring cant auto wire
> directly
> to the model components.
> 
> 
> 
> Thanks,
> 
> 
> 
> Rob

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274937
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to