Hi Dan,

Have a quick question to ask regarding this thread.  The code we are
talking about resides inside our PROD instance.  I'm currently having
the code moved back from PROD because it's gotten out of SYNC with our
TEST instance.  However, I'm using the same instanceFactory code
inside another application in TEST and I'm not seeing the same
functionality there.  It clears the bean and doesnt replicate the
issue.  The only difference between TEST and PROD is that there is
EXTREME caching going on in PROD.  Is there anything in the CF caching
that might be causing this also.

Thanks,

Cliff


On Feb 18, 8:40 am, Dan Wilson <[email protected]> wrote:
> OK,
>
> That doesn't look bad at all.
>
> The createobject is in a return statement so it shouldn't be doing anything
> strange.
>
> Just for fun, replace the makeEventBean line in your controller with a
> path...
>
> event.makeEventBean( "it.EM.model.adminBean")
>
> Then turn reload off and try your app again. Does the value change? Does it
> stay the same when it should change?
>
> DW
>
> On Fri, Feb 18, 2011 at 9:36 AM, Clifford Moon <[email protected]>wrote:
>
>
>
>
>
> > Hey Dan,
>
> > Here it is:
>
> > <cfcomponent>
>
> >        <!---   Author: dwilson Date: 3/14/2007 Usage: I return an instance
> > object  --->
> >        <cffunction name="getBean" output="false" access="public"
> > returntype="any" hint="I return an instance object">
> >                <cfargument name="ObjectName" type="string"
> > required="true"/>
> >                <cftry>
>
> >                        <cfreturn createObject( "component",
> > structFind(getConfig(),
> > arguments.ObjectName ) ).init() />
>
> >                        <cfcatch type="any">
>
> >                                <cfthrow
> > message="BAD_OBJECT_CONFIG_IN_INSTANCEFACTORY"
> > detail="You provided [ #arguments.ObjectName # ] and I can't create
> > it. Go check the config." />
>
> >                        </cfcatch>
>
> >                </cftry>
>
> >        </cffunction>
>
> >        <!--- Usage: GetConfig / SetConfig methods for Config value --->
> >        <cffunction name="getConfig" access="public" output="false"
> > returntype="any">
> >                <cfreturn variables.instance.Config />
> >        </cffunction>
>
> >        <cffunction name="setConfig" access="public" output="false"
> > returntype="void">
> >                <cfargument name="Config" type="any" required="true" />
> >                <cfset variables.instance.Config = arguments.Config />
> >        </cffunction>
>
> > </cfcomponent>
>
> > Thanks,
>
> > Cliff
>
> > --
> > 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
>
> --
> Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."- 
> Hide quoted text -
>
> - Show quoted text -

-- 
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