-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathModuleConfig.cfc
49 lines (40 loc) · 1.49 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
*********************************************************************************
* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
* www.ortussolutions.com
* ---
* Module Config.
*/
component {
// Module Properties
this.title = 'RabbitSDK';
this.author = 'Brad Wood';
this.version = '@build.version@[email protected]@';
this.cfmapping = 'rabbitsdk';
// this.dependencies = [ 'cbjavaloader' ];
function configure(){
settings = {
host : 'localhost',
username : 'guest',
password : 'guest',
port : 5672
};
}
function onLoad(){
// Stupid Lucee bug
// https://luceeserver.atlassian.net/browse/LDEV-2296
// This class represents the Rabbit Consumer instance which implements the Rabbit Consumer interface
// If not cleared on every server resetart, Lucee will stop recognizing that the class implements the proper interface
// and java reflection calls to channel.basicConsume() will start failing.
var luceeRPCProxyClassFile = expandPath('/lucee/../cfclasses/RPC/Vdc65763751ec3c6ac73173d2c2e627944384.class');
if( server.keyExists( 'lucee' ) && fileExists( luceeRPCProxyClassFile ) ) {
fileDelete( luceeRPCProxyClassFile );
}
/* var javaloader = controller.getWireBox().getInstance( "loader@cbjavaloader" );
controller.getConfigSettings().modules.cbjavaloader.settings.loadColdFusionClassPath = true;
javaloader.setup();
javaloader.appendPaths( expandPath( '/rabbitsdk/lib' ) );*/
}
function onUnload(){
}
}