CFUNITED – The premier ColdFusion conference www.cfunited.com Using Event Gateways with CFMX7 By Jeff Tapper Tapper.net Consulting.

Slides:



Advertisements
Similar presentations
IEs Protected Mode in Windows Vista TM January 20, 2006 Marc Silbey Program Manager.
Advertisements

DISTRIBUTED COMPUTING PARADIGMS
Copyright © 2001 Qusay H. Mahmoud RMI – Remote Method Invocation Introduction What is RMI? RMI System Architecture How does RMI work? Distributed Garbage.
Module 5: Configuring Access for Remote Clients and Networks.
Introduction to push technology © 2009 Research In Motion Limited.
14.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Chapter 23: ARP, ICMP, DHCP IS333 Spring 2015.
SMS Gateway OZEKI NG Document version: v Adding SMS functionality to SysAid.
1 Chapter Overview Understanding Windows Name Resolution Using WINS.
1 © 2001, Cisco Systems, Inc. All rights reserved. Voice Connector Features Voic Interoperability – 4.0(5) Voice Connector features Rahul Singh.
© 2009 GroundWork Open Source, Inc. PROPRIETARY INFORMATION: Information contained herein is not for use or disclosure outside of GroundWork Open Source,
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Login Screen This is the Sign In page for the Dashboard Enter Id and Password to sign In New User Registration.
Lesson 4: Using the Calendar
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
DONE-10: Adminserver Survival Tips Brian Bowman Product Manager, Data Management Group.
The world’s libraries. Connected. Batchload Process for Alberta Libraries Carol Ritzenthaler Customer Support OCLC July 2013.
Login Screen This is the Sign In page for the Dashboard New User Registration Enter Id and Password to sign In.
Flash Remoting Chafic Kazoun Senior Flash Developer - B-Line Express Work: Play:
Exploring Real-time apps with ColdFusion and Blaze DS / Live Cycle Data Services ES Dan Blackman
Software Architecture for ColdFusion Developers Unit 4: Application Events and Global Variables.
What’s New in CF 8 Admin MDCFUG 8/14/2007 Ajay Sathuluri Sr. Web and Database Engineer TeraTech Inc.
Introduction to the WebBoard Terry Dennis. The WebBoard - Our Connection The WebBoard URL is
Creating a Web Site to Gather Data and Conduct Research.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Bonrix SMPP Client. Index Introduction Software and Hardware Requirements Architecture Set Up Installation HTTP API Features Screen-shots.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
ColdFusion 9 and Flex 4: Application Development Ryan Stewart Platform Evangelist, Adobe Systems
Introduction to Model-Glue Rachel Lehman Perpetual Intermediate Designer-Developer Introduction to Model-Glue.
Using Event Gateways with CFMX7 By Jeff Tapper Tapper.net Consulting.
1 ® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 1 Building Portlets with ColdFusion Pete Freitag Foundeo, Inc.
DISTRIBUTED COMPUTING PARADIGMS. Paradigm? A MODEL 2for notes
March 12 & 13, 2007 IIS 7.0 for CFML Developers Deploying on IIS 7.0 with Adobe ColdFusion and New.
4BP1 Electronic & Computer Engineering Paul Gildea th Year Interim Project Presentation.
It’s all about your mission. Francis Scudellari Trish Perkins Cloud Consultants Validation.
Client Call Back Client Call Back is useful for multiple clients to keep up to date about changes on the server Example: One auction server and several.
Caching for Performance Jeff Tapper Tapper.net Consulting.
CFUNITED – The premier ColdFusion conference ColdFusion Components Ajay Sathuluri Based on presentation.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
JS (Java Servlets). Internet evolution [1] The internet Internet started of as a static content dispersal and delivery mechanism, where files residing.
Theo Rushin, Jr. Senior Web Application Developer World Singles and DoubleBlack Technologies 12/26/
ColdFusion MX 7 “Blackstone” Macromedia, Inc. macromedia 2005 Living With Today’s Internet Chronic problems continue to exist for users and developers.
Interactions & Automations
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Page ADP Technology Training. 2 Page2 Confidential Copyright © 2007 Pearson Education, Inc. and/or one or more of its direct or indirect affiliates. All.
Business Objects XIr2 Windows NT Authentication Single Sign-on 18 August 2006.
Introduction to Macromedia Coldfusion MX 7, Part III Gateways, Charting, Searching, and other new goodness Presented by the Mid-Michigan Coldfusion User’s.
ColdFusion and SMS Kevin Schmidt. June 27 th - 30 th 2007www.cfunited.com What is SMS? Short Message Service (SMS) Secure, reliable, virtually everywhere.
Proctor Caching Overview. 2 Proctor Caching Diagram.
June 28 th – July 1 st 2006 Thomas Burleson Principal Architect Understanding Flex 2 Data Services “With ColdFusion, why should.
CFUNITED – The premier ColdFusion conference Undocumented CFMX Nate Nelson.
Thomas Burleson. Using MVC with Flex & Coldfusion Projects June 27, 2007 See how Coldfusion MVC is similar to Flex MVC…
IPOCC Chat handling. © 2015 Avaya Inc. All rights reserved. 22 Agenda  Basic chat setup  Chat features & configuration  Web chat.
ArcGIS for Server Security: Advanced
Project Management: Messages
Section 13 - Integrating with Third Party Tools
Advanced Regular Expressions
CF101: Welcome to ColdFusion
Data Virtualization Tutorial… CORS and CIS
Sarge Sr. Technical Support Engineer Adobe Systems
ColdFusion Performance Troubleshooting and Tuning
Nate Nelson I*LEVEL, Inc.
Configuration Of A Pull Network.
This is the Sign In page for the Dashboard
Tom Link CTO, Universal Mind
Intergral Team at CFUnited
Presentation transcript:

CFUNITED – The premier ColdFusion conference Using Event Gateways with CFMX7 By Jeff Tapper Tapper.net Consulting

June 28 th – July 1 st 2006 Agenda  Introduction to Event Gateways  Working with Events  Configuring Gateways  Listener Applications  Broadcaster Applications  Summary  Questions

June 28 th – July 1 st 2006 Who Am I  Jeff Tapper  Chief Technologist Tapper.net Consulting  Working with CF since 1995 (v 1.5)  Authored 7 books about CF, Flex and/or Flash  Certified MM Instructor for all Flex Flash, and CF courses

June 28 th – July 1 st 2006 Event Gateways  Allow access to CF without HTTP  Call CF code from anything Java can react to  Such as: Instant Messages Text Messages from Phones Java Messaging Service RMI File System Changes Etc.

June 28 th – July 1 st 2006 How it works  Message Generator  Event Gateway (Java)  Event Gateway Services (CF)  Listener CFC

June 28 th – July 1 st 2006 Understanding the Architecture Message Generator/Receiver SMSC Server IM Provider Etc. Event Gateway CF Event Gateway Services Listener CFC CFEvent Message Listener CFC or CFM Page

June 28 th – July 1 st 2006 Gateway Types  Event Listeners  Creates an event structure and queues it in the Gateway

June 28 th – July 1 st 2006 Gateway Types  Several gateway types are provided SMS XMPP CFML JMS Directory Watcher Etc.  Custom Gateway types can be built as needed

June 28 th – July 1 st 2006 Gateway Instance  Relates a gateway type to a Listener CFC  Each instance properties set with Configuration file

June 28 th – July 1 st 2006 Application Types  Listener Applications CFC reacts to outside events  Broadcaster Application CFML initiates a message to be sent

June 28 th – July 1 st 2006 Listener Applications  Listener CFC called by gateway instance  Method specified in Configuration is called  CFEvent Structure passed as argument

June 28 th – July 1 st 2006 Listener CFC  Contains methods for handling events  Optionally responds to sender with CFReturn  Method is passed CFEvent Struct RFAFileWatch.cfc

June 28 th – July 1 st 2006 CFEvent Structure  Java Object provided by gateway gatewayId – reference to Instance data – struct of incoming message  customized for each Event Type originator – who sent message  SMS phone #  IM handle  Etc. gateway Type – reference to gateway which heard the event

June 28 th – July 1 st 2006 Configuring a Gateway  Create config file  Build CFC with appropriate methods  Add Gateway Instance to CFAdmin  Start the Gateway CFAdmin

June 28 th – July 1 st 2006 Setting Config file  DirectoryWatcherGateway settings are defined in a Config file --{cfroot}\gateway\config\directory- watcher.cfg  Specifies: directory recurse extensions Interval addFunction changeFunction deleteFunction RFAUploadDirectory-watcher.cfg

June 28 th – July 1 st 2006 Config File gateway/config/directory-watcher.cfg # The directory you want to watch. If you are entering a Windows path either use forward slashes (C:/mydir) or escape the back slashes (C:\\mydir). directory= # Should we watch the directory and all subdirectories too Default is no. Set to 'yes' to do the recursion. recurse=no # The interval between checks, in milliseconds Default is 60 seconds interval=60000 # The comma separated list of extensions to match. Default is * - all files extensions=* # CFC Function for file Change events Default is onChange, set to nothing if you don't want to see these events changeFunction=onChange # CFC Function for file Add events Default is onAdd, set to nothing if you don't want to see these events addFunction=onAdd # CFC Function for file Delete events Default is onDelete, set to nothing if you don't want to see these events deleteFunction=onDelete

June 28 th – July 1 st 2006 DirWatch.cfc

June 28 th – July 1 st 2006 Customizing Directory Watcher  Problem: Needed easier way to remotely add songs to “Radio Free Astoria” play list  Solution: Using a modified Directory Watcher, I am now able to ftp songs to the server, have them moved to the appropriate directory and automatically added to play list

June 28 th – July 1 st 2006 RFA Directory Watcher Flow New mp3 ftp’d to server Directory Watcher triggers CFC File moved Added to playlist Confirmation Sent

June 28 th – July 1 st 2006 Broadcaster Applications  CFML can be used to broadcast out custom events  Some examples Send CFML Event to start new thread SMS site admin about system errors Send new events to JMS messaging queue Send Instant Message about application

June 28 th – July 1 st 2006 Sending an Event  CFMX7 introduced new sendGatewayMessage() function  Takes two arguments gatewayID - gateway instance configured in CFAdmin Message – struct containg message data  Return type varies based on gateway. Often true or false indicating success

June 28 th – July 1 st 2006 sendGatewayMessage <cflog file="rfafileupload" type="Information" text="#result#">

June 28 th – July 1 st 2006 getGatewayHelper()  Returns an object containing details about the gateway  Instant Message Helper ships with CFMX7  Example: myHelper = getGatewayHelper("JBuddyTest"); status = myHelper.getSignonTimeStamp();

June 28 th – July 1 st 2006 Communicating with IM Gateway Instance XMPP Gateway Jabber Network AIM/MSN/ Yahoo Transport AIM/MSN or Yahoo Network Zion Software’s JBuddy Or..

June 28 th – July 1 st 2006 Sending messages to Flex  Flex Data Services (FDS) can listen to messages sent via CF Gateways  Create a “FlexMessaging” event gateway in the CFAdmin  Dispatch the Event from CF with sendGatewayMessage()  Configure FDS to listen for the event  Configure Flex app to handle the event

June 28 th – July 1 st 2006 Sending a message to Flex

June 28 th – July 1 st 2006 Configuring FDS server  Edit messaging-config.xml in FDS *

June 28 th – July 1 st 2006 Handling incoming messages In flex, you listen for messages… <mx:Consumer id="consumer" destination="TypeSalesUpdate" message="messageHandler(event)" fault="faultHandler(event)"/>

June 28 th – July 1 st 2006 Other cool uses for Event Gateways  Brian Szoszorek of New Era Caps article on Event Gateways and Trusted Cache Uses Directory Watcher to automatically update trusted cache when files are deleted or edited  Asynchronous Events great for spawning new threads for long running processes.

June 28 th – July 1 st 2006 Where to learn more?  CFUnited Several “Flex 2 and CF” topics Sarge Sargent’s “Asynchronous Gateways” (Sat. 8am)  Adobe Developer Center Upcoming article from Brian Szoszorek on Event Gateways and Trusted Cache  Lots of docs  JBuddyCF –  Blogs: jeff.mxdj.com weblogs.macromedia.com/mxna/

June 28 th – July 1 st 2006 Summary  Gateways allow for CFML to be triggered by things other than HTTP requests  Gateways react to certain events and calls methods in a CFC  Gateway settings are specified in a Config File  Gateways can be registered using the ColdFusion Administrator

June 28 th – July 1 st 2006 Questions ?