Your config/code looks fine to me, so I don't see any reason as to why this wouldn't fire.
Something you might try would be to create a new test app from the application template, paste in your message-listener and controller function, and then see if you have the same result (FWIW, I just did this as a sanity check, and the dump/abort executed as expected). -- Ezra Parker On Fri, Jan 28, 2011 at 5:35 AM, Jim Priest <[email protected]> wrote: > I've been reading this - and having similar issues with onSessionStart: > http://groups.google.com/group/model-glue/browse_thread/thread/beb675140175a6be/77c81192c3055bb5?lnk=gst&q=onsessionstart#77c81192c3055bb5 > > I've had onRequestStart wired up in this manner and it's always worked fine. > > This AM I'm attempting to do the same thing with onSessionStart and > having no luck whatsoever... > > > My ModelGlue.xml > ------------------------------- > <!-- CONTROLLERS --> > <controllers> > <controller id="Controller" type="credtrak.controller.controller"> > <message-listener message="onSessionStart" /> > <message-listener message="onRequestStart"/> > <message-listener message="onError"/> > <message-listener message="redirectUser"/> > <message-listener message="sendContact"/> > </controller> > </controllers> > > My Application.cfc > -------------------------- > <cffunction name="OnSessionStart" access="public" returntype="void" > output="false" hint="Fires when the session is first created."> > <!--- Set flag letting MG know it needs to broadcast onSessionStart > before onRequestStart ---> > <cfset request._modelglue.bootstrap.sessionStart = true /> > </cffunction> > > My main controller ( \credtrak\controller\Controller.cfc ) > --------------------------- > <cffunction name="onSessionStart" output="false" access="public" > returntype="void" hint="I run on every session start"> > <cfargument name="event" type="any" required="true"> > > <!--- CFDUMP: Debugging ---> > <cfdump var="#cgi#" top=2 label="My Dump On Session Start" > abort="true"> > </cffunction> > > > I've reloaded and restarted things - all with no luck. > > What am I missing? > > Thanks! > Jim > > -- > 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
