At this point I think we're getting to "deep into the weeds" as they say. I
know autowiring of Mach-II framework objects works because I've used it on
several projects. So I would recommend backing up and creating a simple 1
listener, 1 bean application and setting that up to autowire the bean into
the listener. Once you can confirm that you have it working, then you can
move forward one step and time looking for the place or condition where it
starts failing.
I should ask, have you *ever* had the Mach-II autowiring working? Or did you
just try to add on ColdSpring to your application and can't get it to work?
On 9/5/07, Bryan S <[EMAIL PROTECTED]> wrote:
>
> O.K. I now have no init method in my listener. I do have the configure
> method below. If I comment out the code inside of it I get the error message
> Element INSTANCE.SECURITYSERVICE is undefined in VARIABLES.
>
> <cffunction name="configure" returntype="any" output="false"
> hint="Constructor">
> <cfset variables.instance.BeanFactory = createObject("component","
> coldspring.beans.DefaultXmlBeanFactory").init() />
> <cfset
> getBeanFactory().loadBeansFromXmlFile("/actionpacks/security/config/ColdSpring.xml",true)
> />
> </cffunction>
>
> These are my getter/setter methods. The setter is NOT getting called. The
> getter is being called.
>
> <cffunction name="setSecurityService" access="public" returntype="void"
> output="false">
> <cfargument name="securityService" required="true" type="any" />
> <!---
> <cfdump var="#arguments#" label="arguments SETSecurityServicee"><cfabort>
> --->
> <cfset variables.instance.securityService = arguments.securityService/>
> </cffunction>
> <cffunction name="getSecurityService" access="public" returntype="any"
> output="false">
> <!---
> <cfdump var="#arguments#" label="arguments GETSecurityService"><cfabort>
> --->
> <cfreturn variables.instance.securityService />
> </cffunction>
>
>
>