| By Graham P. Harrison | Article Rating: |
|
| December 14, 2005 06:30 AM EST | Reads: |
91,076 |
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,076
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 |
||||
- The Top 150 Players in Cloud Computing
- Commercial vs Federal Cloud Computing
- Why IBM’s Server Chief Got Busted
- Industry Experts Discuss the State of Cloud Computing
- Cloud Expo New York Call for Papers Now Open
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- US Federal Government is Major Cloud Computing Innovator
- Google Wave
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Adaptivity & Cloud Computing: Exclusive Q&A with CEO Tony Bishop
- 4th International Cloud Expo: Photo Album
- The Top 150 Players in Cloud Computing
- SYS-CON.TV: Cloud Computing Expo Power Panel
- Commercial vs Federal Cloud Computing
- Why IBM’s Server Chief Got Busted
- 1st Annual GovIT Expo: Letter from the Technical Chair
- Industry Experts Discuss the State of Cloud Computing
- Deputy CIO of the CIA to Keynote 1st Annual GovIT Expo
- SOA World Power Panel on SYS-CON.TV
- CIA was Headed to an Enterprise Cloud All Along: Jill Tummler Singer
- Cloud Expo New York Call for Papers Now Open
- 1st Annual Government IT Conference & Expo: Themes & Topics
- Stock in Focus: Dragon Capital
- The i-Technology Right Stuff
- Who Are The All-Time Heroes of i-Technology?
- Get the Message
- Where Are RIA Technologies Headed in 2008?
- i-Technology Viewpoint: Is Web 2.0 the Global SOA?
- i-Technology Viewpoint: Thinking Outside the VC Box
- ESB Myth Busters: 10 Enterprise Service Bus Myths Debunked
- i-Technology Viewpoint: When to Leave Your First IT Job
- SOA Web Services Edge Conference Coverage on SYS-CON.TV
- Five Reasons Why Web 2.0 Matters
- SYS-CON.TV's "SOA Web Services" and "Enterprise Open Source" Programs To Air in December
- SOA World Conference & Expo SYS-CON.TV Power Panel Live From Times Square










Cloud computing is a game changer. The cloud ...




















