ORM global event handler

2011-12-29 Thread Tom Small
Hi I am attempting to run a global event handler although get getting error: function keyword is missing in FUNCTION declaration. The CFML compiler was processing: A script statement beginning with component on line 7, column 2. A cfscript tag beginning on line 2, column 2. The error occurred

Re: ORM global event handler

2011-12-29 Thread Cameron Childress
Tom- I'd suspect the error is probably not what it appears. I'd look for a missing semicolon or mismatched {} brackets somewhere. Tomorrow when you start fresh you might try simplifying your code down to just the bare bones (one function) and keep adding to the code till you uncover the

Re: ORM global event handler

2011-12-29 Thread Tom Small
Hi Matt Thanks for your reply. I am following a book by John Whish ColdFusion ORM and have pasted his exmaple; component implements=cfide.orm.IEventHandler { public void function preLoad( any entity ) { logEvent( preload, arguments.entity ); } public void function postLoad( any entity ) {

Re: ORM global event handler

2011-12-29 Thread Tom Small
Hi Cameron, thanks for the reply and I am not running it directly from cfc. Maybe it is something that I have done wrong in the code, although have checked and re-checked. In addition, have included in application.cfc - this.ormsettings.eventhandling; this.ormsettings.eventhandler (which is

Re: ORM global event handler

2011-12-29 Thread Cameron Childress
Stab in the dark here, but are you trying to run this CFC directly? It's not intended to be run directly, but instead will be run automagically on entity CRUD actions as long as it's specified in the Application.cfc's this.ormsettings.eventhandler. Like Matt said, sometimes error line numbers

Re: ORM global event handler

2011-12-29 Thread Carl Von Stetten
Maybe an issue with the case of your function calls to setCreated. For example, you check if the arguments.entity has a setCreated method, but you try to call using setcreated (notice the c in created is not capitalized). HTH, Carl On 12/29/2011 9:02 AM, Tom Small wrote: Hi Matt Thanks

Re: ORM global event handler

2011-12-29 Thread Matt Quackenbush
The line number is misleading. You apparently are either a) missing a required function, or b) missing the `function` keyword in an existing function (as the error message says). By the way, all of the event handler functions are required, even if they're empty. On Thu, Dec 29, 2011 at 10:50

list of running cfthreads

2011-12-29 Thread Michael Dinowitz
Is there a way to view the threads created with cfthread. How many are in the queue, how long they've been waiting, etc. Thanks ~| Order the Adobe Coldfusion Anthology now!

Re: list of running cfthreads

2011-12-29 Thread Bryan Stevenson
Things like SeeFusion and other dashboards doand doesn't CF 9 have something like that bundled in CF Admin?? ...been a while since I was thread hunting ;-) On Thu, 2011-12-29 at 19:47 -0500, Michael Dinowitz wrote: Is there a way to view the threads created with cfthread. How many are in

Re: list of running cfthreads

2011-12-29 Thread Russ Michaels
yes you have the cf serve rmonitor in cf enterprise/developer edition that will allow you to view all threads. On Fri, Dec 30, 2011 at 1:06 AM, Bryan Stevenson br...@electricedgesystems.com wrote: Things like SeeFusion and other dashboards doand doesn't CF 9 have something like that

RE: list of running cfthreads

2011-12-29 Thread Bobby Hartsfield
Jconsole as well. .:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Bryan Stevenson [mailto:br...@electricedgesystems.com] Sent: Thursday, December 29, 2011 8:07 PM To: cf-talk Subject: Re: list of running cfthreads Things