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 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 the queue, how long they've been waiting, etc.
> 
> Thanks


-- 


Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
Please consider the environment before printing this e-mail





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349259
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 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 the queue, how long they've been waiting, etc.
> >
> > Thanks
>
>
> --
>
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> phone: 250.480.0642
> fax: 250.480.1264
> cell: 250.920.8830
> e-mail: br...@electricedgesystems.com
> web: www.electricedgesystems.com
>
> Notice:
> This message, including any attachments, is confidential and may contain
> information that is privileged or exempt from disclosure. It is intended
> only for the person to whom it is addressed unless expressly authorized
> otherwise by the sender. If you are not an authorized recipient, please
> notify the sender immediately and permanently destroy all copies of this
> message and attachments.
> Please consider the environment before printing this e-mail
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349258
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 the queue, how long they've been waiting, etc.
> 
> Thanks


-- 


Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
Please consider the environment before printing this e-mail



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349257
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349256
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 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 )
> {
> logEvent( "postload", arguments.entity );
> }
> public void function preInsert( any entity )
> {
> logEvent( "preinsert", arguments.entity );
> var timestamp = now();
> if ( StructKeyExists( arguments.entity, "setCreated" ) )
> {
> arguments.entity.setcreated( timestamp );
> }
> if ( StructKeyExists( arguments.entity, "setUpdated" ) )
> {
> arguments.entity.setupdated( timestamp );
> }
> }
> public void function postInsert( any entity )
> {
> logEvent( "postinsert", arguments.entity );
> }
> public void function preUpdate( any entity, Struct oldData )
> {
> if ( StructKeyExists( arguments.entity, "setUpdated" ) )
> {
> arguments.entity.setupdated( Now() );
> }
> logEvent( "preupdate", arguments.entity );
> }
> public void function postUpdate( any entity )
> {
> logEvent( "postupdate", arguments.entity );
> }
> public void function preDelete( any entity )
> {
> logEvent( "predelete", arguments.entity );
> }
> public void function postDelete( any entity )
> {
> logEvent( "postdelete", arguments.entity );
> }
> private void function logEvent( required string event, required
> CFC )
> {
> var message = "Entity: #getMetaData( cfc ).fullname#, Event:
> #event#";
> WriteLog( type="event", file="ormevent.log", text=message );
> }
> }
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349255
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 mapped 
to the cfc)

Will start afresh tomorrow as it is usually the small issues that take the 
longest to solve, although once found is always remembered.

Thanks again! 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349253
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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

Specifically, I would look carefully at that event handler interface and at
the ORM CFC that's implementing it.  The problem's location very well may
be misreported so I'd look at any code that might invoke that handler,
starting with your ORM entity CFC files.

-Cameron

On Thu, Dec 29, 2011 at 2:09 PM, Tom Small  wrote:

>
> 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
> mapped to the cfc)
>
> Will start afresh tomorrow as it is usually the small issues that take the
> longest to solve, although once found is always remembered.
>
> Thanks again!


-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook  |
twitter |
google+ 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349254
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 are misleading, so it could be
something generic like that going on.  Since you are reading John's book I
assume you are NOT running it directly, but just thought I would check to
be sure.

-Cameron

On Thu, Dec 29, 2011 at 12:02 PM, Tom Small  wrote:

>
> 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 )
> {
> logEvent( "postload", arguments.entity );
> }
> public void function preInsert( any entity )
> {
> logEvent( "preinsert", arguments.entity );
> var timestamp = now();
> if ( StructKeyExists( arguments.entity, "setCreated" ) )
> {
> arguments.entity.setcreated( timestamp );
> }
> if ( StructKeyExists( arguments.entity, "setUpdated" ) )
> {
> arguments.entity.setupdated( timestamp );
> }
> }
> public void function postInsert( any entity )
> {
> logEvent( "postinsert", arguments.entity );
> }
> public void function preUpdate( any entity, Struct oldData )
> {
> if ( StructKeyExists( arguments.entity, "setUpdated" ) )
> {
> arguments.entity.setupdated( Now() );
> }
> logEvent( "preupdate", arguments.entity );
> }
> public void function postUpdate( any entity )
> {
> logEvent( "postupdate", arguments.entity );
> }
> public void function preDelete( any entity )
> {
> logEvent( "predelete", arguments.entity );
> }
> public void function postDelete( any entity )
> {
> logEvent( "postdelete", arguments.entity );
> }
> private void function logEvent( required string event, required
> CFC )
> {
> var message = "Entity: #getMetaData( cfc ).fullname#, Event:
> #event#";
> WriteLog( type="event", file="ormevent.log", text=message );
> }
> }
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349252
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 )
{
logEvent( "postload", arguments.entity );
}
public void function preInsert( any entity )
{
logEvent( "preinsert", arguments.entity );
var timestamp = now();
if ( StructKeyExists( arguments.entity, "setCreated" ) )
{
arguments.entity.setcreated( timestamp );
}
if ( StructKeyExists( arguments.entity, "setUpdated" ) )
{
arguments.entity.setupdated( timestamp );
}
}
public void function postInsert( any entity )
{
logEvent( "postinsert", arguments.entity );
}
public void function preUpdate( any entity, Struct oldData )
{
if ( StructKeyExists( arguments.entity, "setUpdated" ) )
{
arguments.entity.setupdated( Now() );
}
logEvent( "preupdate", arguments.entity );
}
public void function postUpdate( any entity )
{
logEvent( "postupdate", arguments.entity );
}
public void function preDelete( any entity )
{
logEvent( "predelete", arguments.entity );
}
public void function postDelete( any entity )
{
logEvent( "postdelete", arguments.entity );
}
private void function logEvent( required string event, required
CFC )
{
var message = "Entity: #getMetaData( cfc ).fullname#, Event:
#event#";
WriteLog( type="event", file="ormevent.log", text=message );
}
} 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349251
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 AM, Tom Small  wrote:

>
> 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 in
> C:\ColdFusion9\wwwroot\orm\model\aop\GlobalEventHandler.cfc: line 7
> 5 : */
> 6 :
> 7 :  component implements="CFIDE.orm.IEventHandler"
> 8 :  {
> 9 :
>
> Thanks, Tom
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349250
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 in 
C:\ColdFusion9\wwwroot\orm\model\aop\GlobalEventHandler.cfc: line 7
5 : */ 
6 : 
7 :  component implements="CFIDE.orm.IEventHandler"
8 :  {
9 : 

Thanks, Tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349249
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm