-
1. Re: Coldfusion Instant Message Example?
citation1 Aug 10, 2011 12:30 PM (in response to citation1)In the Coldfusion Admin, under Gateway Instances I have configured the following:
Gateway ID: helpdesk
Gateway Type: XMPP - Handles XMPP instant messaging
CFC Path: C:\ColdFusion9\gateway\cfc\helpdesk\im.cfc
Configuration File: C:\ColdFusion9\gateway\config\helpdesk_ejabberd_local.cfg
After I start the "helpdesk" event and check the eventgateway.log there is the following mesage:
Error invoking CFC for gateway helpdesk: Cannot lock APPLICATION scope. {ORIGINATORID={lucas@jabber.com},CFCMETHOD={onBuddyStatus},GATEWAYID={helpdesk},DATA={{buddystatus={OFFLINE},buddynicknam e={Lucas},RECIPIENT={me@localhost},buddygroup={Helpdesk Staff},timestamp={Wed Aug 10 15:11:29 EDT 2011},buddyname={lucas@jabber.com}}},CFCPATH={C:\ColdFusion8\gateway\cfc\helpdesk\im.cfc},GATEWAYTYPE={XMPP}}. Cannot use cflock to lock the application or session shared scopes without these scopes being established through the use of the cfapplication tag. To use the session scope you need to enable session management. Application and/or Session variables must also be enabled in the ColdFusion Administrator.
However, Event Status says that it is running.
When I run the sample index page and I do see a message that says "The helpdesk is currently ONLINE."
But when I attempt to Add a new issue --- I receive the following:
The error occurred in C:\Inetpub\wwwroot\DEV_Helpdesk\cfc\helpdesk.cfc: line 25
Called from C:\Inetpub\wwwroot\DEV_Helpdesk\index.cfm: line 5
Called from C:\Inetpub\wwwroot\DEV_Helpdesk\cfc\helpdesk.cfc: line 25
Called from C:\Inetpub\wwwroot\DEV_Helpdesk\index.cfm: line 523 : (id,status,subject,DateLogged,Assignedto,loggedby,loggedbyemail,body)
24 : values
25 : ('#createUUID()#','unassigned','#arguments.subject#',#CreateODBCDateTime(Now())#,'unassign ed','#arguments.name#','#arguments.email#','#arguments.body#')
26 : </cfquery>
-
2. Re: Coldfusion Instant Message Example?
brademp Nov 3, 2011 1:54 PM (in response to citation1)Did you ever have any luck with this? I'm getting ready to try the same thing and it would be great to know in advance if the example is broken or not?
-
3. Re: Coldfusion Instant Message Example?
BKBK Dec 11, 2011 5:46 AM (in response to citation1)Enable application variables and session variables in the 'Memory Variables' page in the ColdFusion Administrator. Then create the following application file and save it in the DEV_Helpdesk directory.
Application.cfm
<cfapplication name = "myHelpdesk" applicationTimeout = "#CreateTimeSpan(1, 0, 0, 0)#" sessionmanagement = "yes" sessionTimeout = "#CreateTimeSpan(0, 0, 20, 0)#">

