The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


Nothing Bad Ever Happens

Posted by editor on September 16, 2005 at 7:20 AM PDT

Getting pro-active when Bad Things happen

OK, so you know your application is going to have problems at some point. Maybe it won't be your fault, maybe it will be, but in any case, how will you find out and what will you do about it>

One unfortunately typical approach is to wait for something to go wrong, wait for the customer to complain, and then try to get the log files -- you did remember to log things in your code, right? -- and start reading through them. That's assuming, of course, that you can even get to the log files. After all, they might be on an unreachable remote machine, or the time you want to investigate may have already rolled off the logs.

Author Romin Irani proposes an alternate approach:

Someone supporting live, deployed applications would probably appreciate the importance of getting notified of application errors as early as possible. It is much better to be proactive dealing with errors, rather than waiting to hear from the customer that something seems to have gone wrong. How about getting notified immediately, by utilizing an Instant Messenger client like Yahoo Messenger?

In the Feature Article, Receive Application Errors via Yahoo Messenger, Romin shows how to extend the log4j logging framework, and to use the jYMSG library to provide a logging extension that sends log messages via instant messenger. With this arrangement, you can use your IM client as a fairly light-weight remote monitoring system, without going for the more complex and difficult options like JMX, SNMP, etc.


In Projects and Communities, the JXTA Community has just announced two releases. The JXME 2.1 (Tantà) release provides a "reliable bidirectional communication profile" along with "significant bug fixes". Meanwhile, the JXTA Java 2.3.5 "Shebakia" release offers a number of bug fixes and "significantly improved performance for the rendezvous and relay peers."

The next Jini webinar is scheduled for Wednesday, Sept 21 at noon EDT (16:00-17:00 UTC) and features Richard Nicholson speaking on "Complex Adaptive Systems, Jini, and the Enterprise DataCenter" Meanwhile, an MP3 of Jim Waldo's May 25 talk at the NYJava SIG, "An Architecture for Service-Oriented Architectures", is now available as well.


Chris Campbell has good news about Java2D/JOGL Interoperability in today's Weblogs, including: "details (and screenshots) on the improved Java2D/JOGL interop story in the latest Mustang and JOGL builds... More improvements to the OpenGL-based Java2D pipeline in Mustang b51 (and b53)... And a big thank you to the attendees and event staff at JavaChina 2005..."

Scott Schram says The XStream library offers clean, easy XML serialization of POJOs: "XStream serializes and restores very clean, readable XML from POJOs, with only two lines of code, no dependencies, and a BSD-style license."

In Declarative UI and Principles of REST, Jacob Hookom writes: "HTML is declarative, XML is declarative, so is URI access (as REST promotes). If we can capture component frameworks in a truely declarative nature, then we can operate statelessly. How are we going to get there?"


In Also in Java Today, "the Java API for XML Processing (JAXP) SAXParser or DocumentBuilder classes were [before J2SE 5.0] the primary instruments of Java technology XML validation. The new Validation API, however, decouples the validation of an XML document from the parsing of the document. Among other things, this allows Java technology to support multiple schema languages." The article XML Validation and XPath Evaluation in J2SE 5.0 looks at validation, XML schema, and the XPath API.

"BackPack, Google Suggest, Google Maps, PalmSphere... All these websites show that web applications don't need to rely solely on pages being reloaded from the server to present changes to the user. Everything seems to happen almost instantly. In short, when it comes to designing a responsive user interface, the bar has now been set much higher." But client-side trickery is not easy to accomplish, and coordinating it with the server is even harder. In An Introduction to AJAX, David Teare examines the challenges of AJAX, and shows how the java.net project Direct Web Remoting (DWR) simplifies client-server communication.


The latest java.net Poll asks how you would complete the sentence "I think AJAX..." Cast your vote on the front page, and then check out the discussion on the results page.


In today's Forums, bhills wants to know how to switch to A Server Side Career: "I was wondering if anyone here during their Java career has moved from writing desktop Java to server side Java and how they did it. I have been working on a desktop Java application for three years but this is now complete and there is no more Java work in the pipeline with my current employer and so I am looking to move on. Most of the Java jobs I see advertised here in the UK are for server side developers and this is the area I would like to move in to. The problem is, all these jobs seems to require at least three years server side Java experience, but of course to gain this experience I need a job as a server side developer first! - So I am kinda stuck."

platinumdragon is trying to work out problems with JBoss and JAX-WS 2.0: "Obviously, some of you out there have successfully deployed applications using JAX-WS 2.0 and JBoss. I am new to web services, and have been trying to piece together how to do this, but since all of JBoss' documents are for JAX-RPC 1.x, and the JAX-WS 2.0 docs are out-of-date and for Sun AS, I'm having a heck of a time getting this to happen. I've done the WSDL->Java import, JSE, web.xml, webservices.xml, and I still can't quite get this to deploy. Does anyone have a working sample for JBoss that you could post or send for analysis? It would be extremely helpful."


In today's java.net News Headlines :

Registered users can submit news items for the java.net News Page using our news submission form. All submissions go through an editorial review before being posted to the site. You can also subscribe to thejava.net News RSS feed.


Current and upcoming Java Events :

Registered users can submit event listings for the java.net Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.


Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of java.net it will be archived along with other past issues in the java.net Archive.



Getting pro-active when Bad Things happen
Comments
Comments are listed in date ascending order (oldest first)