This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var events = [ | |
{name = 'myevent'}, | |
{name= 'anotherevent'} | |
] | |
//Using the contructor | |
var application.cfem = createObject('component','com.andreacfm.cfem.EventManager').init(events = events); | |
//Or At Runtime | |
application.cfem.setEvents(events); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Default --> | |
<servlet> | |
<servlet-name>CFMLServlet</servlet-name> | |
<servlet-class>railo.loader.servlet.CFMLServlet</servlet-class> | |
<init-param> | |
<param-name>configuration</param-name> | |
<param-value>{web-root-directory}/WEB-INF/railo/</param-value> | |
<description>Configuraton directory</description> | |
</init-param> | |
<load-on-startup>1</load-on-startup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am github gist!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<target name="restartRailo" description="Restarts the Railo server."> | |
<get | |
src="http://${server.name}:${server.port}/server/railo_restart.cfm?admin_password=${admin.password}" | |
dest="${www}/server/temp/restart_output.txt"/> | |
<loadfile property="restart.status" srcFile="${www}/server/temp/restart_output.txt"/> | |
<echo message="Restart status: ${restart.status}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*/ | |
public class CFMLServlet extends HttpServlet implements EngineChangeListener { | |
private CFMLEngine engine; | |
/** | |
* @see javax.servlet.Servlet#init(javax.servlet.ServletConfig) | |
*/ | |
public void init(ServletConfig sg) throws ServletException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ws = new WebSocket('ws://{server_url}:{port}); | |
ws.onopen = function(){ | |
ws.send('hello'); | |
} | |
ws.onmessage = function(ev){ | |
do_things_with_incoming_message(ev.data); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sendGatewayMessage(String:name, Struct: data); | |
* name => the name of the gateway instance to invoke. | |
* data => a struct of data the gateway will process and will pass by to any listener function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfsetting requesttimeout="120"> | |
<cfscript> | |
param name="gateway" default="stocks"; | |
stocks = ['GOOG','APPL','MSFT','AMZN']; | |
thread action="run" name="stock_thread" stocks="#stocks#"{ | |
while(true){ | |
message = {}; | |
for(item in attributes.stocks){ | |
message[item] = randRange(1,5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function init() { | |
ColdFusion.Map.addEvent("mainMap","click",function(overlay,overlaylnglt) { | |
address = arguments[arguments.length-1]; | |
var loc = new GLatLng(address.lat(),address.lng()); | |
panoramaOptions = { latlng:loc }; | |
var myPano = new GStreetviewPanorama(document.getElementById("streetDiv"), panoramaOptions); | |
}); | |
} | |
</script> |
OlderNewer