Neil This is as expected, I would expect Application.cfc to be called once before the page with the createObject() call is executed.
HTH k > -----Original Message----- > From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] > Sent: 17 July 2006 08:19 > To: CF-Talk > Subject: Application.cfc problem - bug or expected behaviour? > > All, > > We are building a seperate API layer for an application which sits in it's > own folder to be called by either a Web Service or a normal component call. > The API does not and will not have any .cfm pages within it's folder struct > - it is literally a loose collection of cfc's. > > The API has it's own Application.cfc which I was expecting to be called when > we call the wrapper CFC (the gateway for both the internal createObject > calls and external cfinvoke web service calls. > > What I have found is that, as expected, the Application.cfc is called when > the wrapper is called via a Web Service call but it is not called when > called via createObject? Is this expected behaviour? Is it a bug? It is odd > as you would expect both methods to trigger the Application.cfc as they are > effectively doing the same thing - calling the wrapper cfc. > > Anyone know why? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246750 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

