This file contains hidden or 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 string function createRandomString() | |
{ | |
var rules = { minLength = 8, maxLength = 12 }; | |
var length = randRange(rules.minLength,rules.maxLength,'SHA1PRNG'); | |
var passwd = ['2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','J','K','M','N','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','j','k','m','n','p','q','r','s','t','u','v','w','x','y','z','##','@','$','&','*','+']; | |
createObject('java','java.util.Collections').shuffle(passwd); | |
return arrayToList(arraySlice(passwd,1,length),''); | |
} |
This file contains hidden or 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
<cfscript> | |
QueueName = "QTransactions"; | |
durable = true; | |
loadPaths = arrayNew(1); | |
loadPaths[1] = expandPath("lib/rabbitmq-java-client-bin-2.8.4/rabbitmq-client.jar"); | |
// load jars | |
javaLoader = createObject("component", "lib.javaloader.JavaLoader").init(loadPaths); |
NewerOlder