Thanks guys for all your help on this one, Sorry I didnât get back to you yesterday, it was getting late and I decided to call it a night. So let me explain a little more about what I'm trying to achieve with this, you're probably right, I'm no doubt going about this arse about tit, hopefully you can prod me in the right direction with it.
This gateway is for my users credentials, and the function in questions is my 'verify' function, that takes the username and password they have and validates it against the database, if a record is found then it logs the user is. The form is submitted by the user with their username and password, my controller first validates the form, passing them back if they have not entered the correct fields. Once validated the form variables for username and password are set into the users 'credentials' bean which is sat inside the session scope. My gateway then tries to validate the users details, so my idea was that my gateway had access to the session scope, it would then be able to not only pull the username and password from it, but it could also then update the session scope with results of the query. The query returns a full user record which includes all their profile information and entitlements, The idea was to have the gateway then 'set' all this information into the users beans which are inside the session. In hind sight perhaps I should just have the gateway return the basic query and nothing more, and then have my controller take all that query information from a successful login and place it into the session. What are your thoughts chaps? Rob -----Original Message----- From: Richard Kroll [mailto:[EMAIL PROTECTED] Sent: 10 April 2007 14:49 To: CF-Talk Subject: RE: Access my SessionService from Gateway (MG, CS, Reactor) >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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274989 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

