I put this into MM, would like to hear opinions on whether or not I'm on crack or if these idea is feasible. I'm no Java expert!
Snip: How about adding asynchronous messaging to CFCs functionality? Perhaps access="message" which would essentially wrap the cffunction logic as a message driven bean which could then be called form CF code to send asynchronous messages! Here's an example on how I would use it. Lets say I have a reporting application that allows a user to email a CSV file containing a recordset of the data they see summarized on the screen. In this particular case the recordset could be 50,000 in size. If this were approached normally each email request would be processed sequentially while the client waits for completion... If you have 20 users on the site at once all asking for large data dumps you could be in trouble memory wise unless you serialize the processes...lowering performance and now u have a slew of people waiting. CFCs with messaging to the rescue! You make the call to your CFC passing it XYZ parameters which dumps the request in a queue (JMS queue). The queue can then be regulated to use X number of threads to process requests...maintaining a predictable load on the server....meanwhile clients do not have to wait for the process to complete! Much more scalable approach? AVIS IMPORTANT: ------------------------------- Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. WARNING: ------------------------------- The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind. ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

