coldfusion-9

Check health of scheduled tasks?

▼魔方 西西 提交于 2019-12-01 09:28:04
问题 We recently had an issue where a ColdFusion scheduled task didn't resume after a Windows upgrade and a CF server restart. Is there a way to monitor the health of scheduled tasks and be alerted if they are not running properly? Or would I need to write a task to parse the log files for that information? 回答1: you can use the admin api to get information on your scheduled tasks. the following returns an array of structures with info about each scheduled task. you can then loop through the array

Adding to ColdFusion Classpath for Particular Instance in Multi-Server Adobe Coldfusion 9

不羁岁月 提交于 2019-12-01 08:33:10
Adobe ColdFusion 9 Multi-Server doesn't have the "JVM and Java Settings" page in the CF Admin, so to add something to the CF classpath, for a given instance, that instance must be started with an alternate jvm.config. I don't have a problem with starting with an alternate jvm.config. I do, however, have a problem knowing precisely how to edit that file in the proper way. My stock jvm.config looks like this (ignore line breaks--they are not in the actual file): java.args=-server -Xmx512m -Dcoldfusion.sessioncookie.httponly=true -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:

Adding to ColdFusion Classpath for Particular Instance in Multi-Server Adobe Coldfusion 9

心不动则不痛 提交于 2019-12-01 05:51:59
问题 Adobe ColdFusion 9 Multi-Server doesn't have the "JVM and Java Settings" page in the CF Admin, so to add something to the CF classpath, for a given instance, that instance must be started with an alternate jvm.config. I don't have a problem with starting with an alternate jvm.config. I do, however, have a problem knowing precisely how to edit that file in the proper way. My stock jvm.config looks like this (ignore line breaks--they are not in the actual file): java.args=-server -Xmx512m

Coldfusion 9.0.1 Standard 64bit and Oracle 11g 64bit ODBC connection results in “architecture mismatch”

拜拜、爱过 提交于 2019-12-01 03:48:23
问题 I have a freshly built 64-bit Windows Server 2008 R2 box that I have installed 64-bit Coldfusion 9 Standard on. I've upgraded and hotfixed it up to the most current version of CF. I also had 64-bit Oracle 11g (11.1.0.7.0) Client installed on the box. I've created a System DSN using the 64-bit ODBC Data Source Administrator in Windows and can successfully test the connection of the data source. All of these installations went smoothly, however, when I went to add a datasource in the Coldfusion

Sorting on Column in Type Table with ColdFusion ORM

扶醉桌前 提交于 2019-12-01 03:09:37
I have three tables, with the following structure: http://dl.dropbox.com/u/2586403/ORMIssues/TableLayout.png The three objects I'm dealing with are here: http://dl.dropbox.com/u/2586403/ORMIssues/Objects.zip I need to be able to get a PartObject, and then pull all of its Attributes, sorted by the AttributeName in the Types table. Here are the problems I'm running into: I can't sort the Attributes property in PartObject by its Attribute.AttributeName property I can't add the Attribute.AttributeName property to the ObjectAttribute entity because I get an error regarding column names. Hibernate

How to restart Coldfusion Application Server when application times out?

我的未来我决定 提交于 2019-12-01 01:15:07
Is there any way to restart the CF server through the Application.cfc, when the application times out? As per Adobe documentation, they showed as follows: <cffunction name="onApplicationEnd"> <cfargument name="ApplicationScope" required=true/> <cflog file="#This.Name#" type="Information" text="Application #Arguments.ApplicationScope.applicationname# Ended" > </cffunction> What I would like to do is replace the <cflog> above with <cfexecute> as follows: <cfexecute name = "C:\CFRestart.bat" outputFile = "C:\output.txt" timeout = "1"> </cfexecute> So OnApplicationEnd will run the CFRestart.bat

ColdFusion cfmail special characters in subject line

百般思念 提交于 2019-11-30 20:58:57
Special characters in the subject line of the mail getting converted in to question marks or boxes. I have tried to wrap the dynamic string of the subject line in URLEncodedFormat , however ended up in vain. <cfset strSubject= URLEncodedFormat(s)> <cfmail from="xxxxx@xx.com" to="yyyyyyy@yyy.com" subject="#strSubject#" type="html" > #testText# </cfmail> Prabhu Thomas Assuming the special characters are unicode charactes, you will have to encode the string to a base64 format and use that in the subject line. Like this, <cfset strSubject="Demande d’chantillons supplémentaires"> <cfset strSubject

how to loop through Query Columns in ColdFusion

霸气de小男生 提交于 2019-11-30 18:11:14
I have a query in a my CFC. The function contains a simple query as such. <cfquery name="qrySE" datasource=#mydatasource#> SELECT NAMES,SALARY FROM tblTest </cfquery> I want to display my resultset as such (horizontally): NAME1 NAME2 NAME3 NAME4 10 20 45 62 Is there a way to loop through the columns of my query and create a virtual query for this purpose? If anyone has done this, please let me know. Just wanted to add Al Everett's solution returns the columns back in alphabetical order. If you would like to get the column names back in the same order as the query you can use: ArrayToList(

Memory Leak Looping cfmodule inside cffunction

风流意气都作罢 提交于 2019-11-30 08:28:48
问题 Googlers if you've got a heap dump with a root of coldfusion.runtime.CFDummyComponent read on. Update 2/22/2011 Marc Esher of MXUnit fame found the exact same bug in a different context. His solution involves a large loop over a query solved by going from query="name" to from="1" to="#name.recordcount#" index="row" . Another approach that works is using <cfthread> inside the loop as such: <cfloop ...> <cfset threadName = "thread" & createUuid()> <cfthread name="#threadName#"> <!--- do stuff -

ColdFusion cfmail special characters in subject line

柔情痞子 提交于 2019-11-30 05:26:58
问题 Special characters in the subject line of the mail getting converted in to question marks or boxes. I have tried to wrap the dynamic string of the subject line in URLEncodedFormat , however ended up in vain. <cfset strSubject= URLEncodedFormat(s)> <cfmail from="xxxxx@xx.com" to="yyyyyyy@yyy.com" subject="#strSubject#" type="html" > #testText# </cfmail> 回答1: Assuming the special characters are unicode charactes, you will have to encode the string to a base64 format and use that in the subject