I have a question for the list concerning components. I have been using the XMPP gateway to write a bot that responds to various commands and helps with debugging by reporting the last line of log files... restarting coldfusion services (after asking everyone working on said server) running sql jobs etc... all from a chat window. Its been working great.
Currently I parse the incoming message for the command which should be the first word in an incoming message. I then do a cfswitch on the command for further processing. This all happens within the specified CFC for my xmpp event gateway and all inside the onIncomingMessage() function. I had the idea of breaking each command into a separate component and then instantiating it when someone ran the command. I am wondering what would be considered best practice. How should I instantiate the components? or in what scope? Should I be creating an instance of a command component at the application, session, var level? Any other tips would be great or even a pointer to a resource or perhaps a pattern that I should try to implement. I am not sure the components will be faster then the cfswitch but the one cfc is getting unweildly. ~Matt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315202 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

