Flex, Java/JavaFX, Silverlight, AJAX & RIA Frameworks

RIA Developer's Journal

Subscribe to RIA Developer's Journal: eMailAlertsEmail Alerts newslettersWeekly Newsletters
Get RIA Developer's Journal: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


RIA & Ajax Authors: Javier Paniza, Pat Romanski, RealWire News Distribution

Related Topics: RIA Developer's Journal, Java EE Journal

RIA & Ajax: Article

Integrating AJAX with the JMX Notification Framework

Opposite Ends of the Systems Management Stack

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

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

Comments (7) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
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 : [email protected]

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