How do we restart coldfusion server from command prompt?
Restart in Unix/Linux: 1. /etc/init.d/coldfusion restart 2. /opt/coldfusionmx/bin/coldfusion restart
3. service coldfusion restart
4. /etc/init.d/coldfusionmx restart
Restart in Windows: There is no direct restart service command available in windows.
we have to use stop & startcommands.
net stop "ColdFusion MX Application Server"
net start "ColdFusion MX Application Server"
Common service names for varies CF versions
"ColdFusion MX ODBC Agent"
"ColdFusion MX ODBC Server"
I think SQL does a pretty good job with dates. Here is a very simple way to get the last day of any month. The example retreaves the last day of the current month.
If you have ever tried to return struct to Flex 3 from ColdFusion you may have run into this problem. If you use dot (.) notation to define your struct variable, the variable will get passed in UPPER CASE. This causes problems because Flex 3 and actionscript are case sensitive. Not knowing this little fact may cause you to bang your head on some walls.
Here is an example and a couple solutions:
{tag}cfset var myArray = ArrayNew(1){tag}
{tag}cfset var stItm = StructNew(){tag}
Using the brackets "[ ]" to define your struct variables will return the variables to flex in the proper case. IE (UPPPER = test, lower= test2 ).
If you must use dot (.) notation for what ever reason you are still in luck with a little motification of the remoting-config.xml which is normally located by default here (C:\ColdFusion8\wwwroot\WEB-INF\flex). Inside the file all you need to do is locate the {tag}property-case{tag} tag inside the proper {tag}destination{tag} (default is {tag}destination id="ColdFusion"{tag}) and modify the properties within. I have highlighted below the code to modify.