Thanks for your reply Chris.  It's been fixed now.  I was missing the
service in Coldspring.xml.  I was being thrown off because I was doing
a compare with the code that was actually working but that particular
file wasn't committed to svn at the time so the TestService changes
weren't being taken into account.

On May 4, 1:58 am, Chris Blackwell <[email protected]> wrote:
> It looks like you're trying to autowire the service in, but when the
> controller is instantiated SetTestService() is not being called.  Can you
> show us the relevant sections of ModelGlue and Coldspring xml config files.
>
> Chris
>
> On 4 May 2011 01:59, jet <[email protected]> wrote:
>
>
>
>
>
>
>
> > I've just set up a development environment on my local machine.  And
> > it's basically a mirror to what we've got on our company development
> > server.  So as of right now it's the exact same code but there's some
> > really odd behavior.  I'm having issues when implementing a new
> > Controller, Service, and Gateway module.  For example:
>
> > TestController
>
> > --------------------------------------------------------------------------- 
> > ---
> > <cfcomponent displayName="TestController"
> > extends="ModelGlue.unity.controller.Controller" output="false">
>
> >    <cffunction name="SetTestService" access="public"
> > returntype="void" output="false">
> >        <cfargument name="TestService" type="model.TestService"
> > required="true" />
> >        <cfset variables.TestService = arguments.TestService />
> >    </cffunction>
>
> >    <cffunction name="GetTestService" access="public"
> > returntype="model.TestService" output="false">
> >        <cfreturn variables.TestService />
> >    </cffunction>
>
> >    <cffunction name="randomFunction"  access="public"
> > returntype="void" output="false">
> >        <cfargument name="event" type="any">
> >        <cfset var thisTestService = GetTestService() />
> >        ...
> >    </cffunction>
> > ...
>
> > --------------------------------------------------------------------------- 
> > ---
>
> > In my config.xml I'll have a message broadcast to call
> > randomFunction(), but it gives me an error:
>
> >    Message     Element TESTSERVICE is undefined in VARIABLES.
>
> > The really weird thing is that it's just my local machine, the same
> > code works on the development server.  Is this a caching issue?  Any
> > ideas would be great.  Thank you.
>
> > --
> > Model-Glue Sites:
> > Home Page:http://www.model-glue.com
> > Documentation:http://docs.model-glue.com
> > Bug Tracker:http://bugs.model-glue.com
> > Blog:http://www.model-glue.com/blog
>
> > You received this message because you are subscribed to the Google
> > Groups "model-glue" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/model-glue?hl=en

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to