| By Graham P. Harrison | Article Rating: |
|
| December 14, 2005 06:30 AM EST | Reads: |
91,041 |
Caching
Some users have found that IE will cache the response from the AJAX request. This could be due to browser/page settings, but a forced workaround is to timestamp the URL:
var urlstr = "./admin?reqId=0&ts=" + new Date().getTimeStamp();
To XML or Not to XML
Not to XML. Some AJAX designers happily dispense with XML and send the response as plain text:
response.setContentType("text/plain");
This clearly depends on your client-side requirement and how loosely coupled the client is from the data required. A simple text response would suffice for a text alert. However, the advantage of the XML model for this article is that the response data can be elaborated further to refine both the status and status-related data. This article demonstrates how you'd parse a more complicated response that the client may have to code to accept.
Conclusion
AJAX presents architectural opportunities that shouldn't be overshadowed by the rich-client frenzy. This article has leveraged the architectural advantage AJAX can provide while addressing the technical requirements for both capacity and security that more exotic uses of this technology will demand.
References
- http://java.sun.com/j2ee/1.4/docs/api/javax/ management/NotificationFilterSupport.html - Details the alert types functionality
- http://e-docs.bea.com/wls/docs81/jmx/notifications.html - Details the use of WebLogic MBean Notifications for remote listeners
- http://e-docs.bea.com/wls/docs81/ConsoleHelp/startup_shutdown.html - Configuring start-up and shutdown classes in WebLogic Server 8.1
Published December 14, 2005 Reads 91,041
Copyright © 2005 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Graham P. Harrison
Previously a Senior Consultant with BEA, Graham is the author of Dynamic Web Programming using Java (Prentice Hall, 2000) in addition to a number of articles for the Java Developers Journal and IBM DeveloperWorks. He has a focus on Enterprise Architecture, Performance Tuning and Capacity Planning
![]() |
Mark 09/29/06 02:36:10 PM EDT | |||
I would like to get a copy of the source code that accompanies this article. Please send it to elihusmails[at]gmail[dot]com thank you. |
||||
![]() |
Mark 09/29/06 02:29:13 PM EDT | |||
I would like to get a copy of the source code that accompanies this article. Please send it to elihusmails[at]gmail[dot]com thank you. |
||||
![]() |
hong li 05/29/06 09:40:54 AM EDT | |||
My email address is : hongli3648@yahoo.com.cn |
||||
![]() |
hong li 05/29/06 09:38:44 AM EDT | |||
Could you please forward the whole source code to me which show those code to implement function of notification system useing Ajax and JMX? Thanks! |
||||
![]() |
Pete 02/05/06 09:10:28 AM EST | |||
Great article when you want to understand an integration point between AJAX and wider J2EE space. |
||||
![]() |
Bill Ley 01/31/06 07:44:42 PM EST | |||
This is an awful article. |
||||
![]() |
?? ???? 12/22/05 09:12:21 PM EST | |||
Trackback Added: AJAX with the JMX Notification Framework; blockquote>Integrating AJAX with the JMX Notifica |
||||
- 4th International Cloud Computing Conference & Expo Starts Today
- Publishing Synergy: Blog, Twitter and Ulitzer
- Performance Tuning Essentials for Java
- Cloud Expo New York Call for Papers Deadline December 15
- Google Wave
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Cloud Computing Can Revitalize Your Career as Software Developer
- SOA World Magazine "Readers' Choice Awards" Voting Is Now Open
- Oracle+MySQL Opponents Take to the Barricades
- Virtualization Expo Call for Papers Deadline December 15
- Oracle Faces Growing Price for MySQL
- SpringSource Moving to Spring 3.0
- 4th International Cloud Computing Conference & Expo Starts Today
- Deputy CIO of the CIA to Keynote 1st Annual GovIT Expo
- Publishing Synergy: Blog, Twitter and Ulitzer
- Performance Tuning Essentials for Java
- Cloud Expo New York Call for Papers Deadline December 15
- Cloud Computing Expo: Exclusive Q&A with Yahoo! SVP Cloud Computing
- Google Wave
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Cloud Computing Can Revitalize Your Career as Software Developer
- Oracle-Sun: IBM Reportedly Behind Delay
- Citrix Aims To Cripple VMware’s Cloud Designs
- Oracle Trashes HP Relationship for Sun
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- SCO CEO Posts Open Letter to the Open Source Community
- Simula Labs Launches Hosted Delivery Platform To Enable Enterprise Open Source Adoption
- Where Are RIA Technologies Headed in 2008?
- Source Claims SCO Will Sue Google
- How Open Is "Open"? – Industry Luminaries Join the Debate
- Latest SCO News is Plain Weird
- IBM Tells SCO Court It Can't Find AIX-on-Power Code
- SCO Claims Linux Lifted ELF
- Flashback: Investing in 'Professional Open Source' - Exclusive 2004 Interview with David Skok, Matrix Partners
- HP Starts Pushing Desktop Linux
- Linux Business Week Exclusive: Linux Kernel To Be Re-Written To Counter Microsoft FUD

































