Posted by editor
on September 16, 2005 at 7:20 AM PDT
Getting pro-active when Bad Things happen... Also:
Feature Article: Logging application errors via Yahoo! Instant Messenger
Projects and Communities: JXTA releases and Jini webinars and presentations
Weblogs: Java2D/JOGL interoperability, XStream, and REST principles
Also in Java Today: XML validation and XPath in J2SE 5.0 and AJAX with DWR
java.net Poll: I think AJAX...
Forum Postings: Career moves from desktop to server-side Java and JBoss and JAX-WS 2.0
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."
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
href="http://today.java.net/today/news/">java.net News Page using our
form . All submissions go through an editorial review before being
posted to the site. You can also subscribe to the
href="http://today.java.net/pub/q/news_rss?x-ver=1.0">java.net News RSS
Current and upcoming Java
- September 16-18, 2005 - Great Lakes Software Symposium
- September 20-21, 2005 - JCP Program Training and Communication sessions
- September 20, 21, 22, 28, and 29, 2005 - DataDirect Design Previews (five events: Washington DC, New York, Boston MA, Santa Clara CA, and Irvine CA)
- September 21-23, 2005 - BelJungle 2005
- September 22, 2005 - Hong Kong JUG - Monitoring and Managing in Java SE 5
- September 23-25, 2005 - New England Software Symposium 2005: Fall Edition
September 26-27, 2005 - JXTA Kitchen
September 28, 2005 - Lucent Developer Focus Event at CTIA Wireless Conference
- September 30-October 2, 2005 - Western Canada Java Software Symposium 2005
- October 7-9, 2005 - Greater Nebraska Software Symposium
- October 14-16, 2005 - Pacific Northwest Software Symposium
- October 16-20, 2005 - OOPSLA 2005
- October 17, 2005 - Workshop Eclipse RCP
- October 19-20, 2005 - 9th Jini Community Meeting
- October 21-23, 2005 - Greater Atlanta Software Symposium
- October 28-30, 2005 - Northern Virginia Software Symposium
- November 1-4, 2005 - Enterprise Java Architecture Workshop: San Francisco
- November 4-6, 2005 - Lone Star Software Symposium 2005: Dallas Edition
- December 7-10, 2005 - The Spring Experience 2005
- December 10-14, 2005 - ApacheCon 2005
- December 12-16, 2005 - JavaPolis 2005
Registered users can submit event listings for the
href="http://www.java.net/events">java.net Events Page using our
href="http://today.java.net/cs/user/create/e"> events submission form.
All submissions go through an editorial review before being posted to the
Archives and Subscriptions: This blog is delivered weekdays as
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
Getting pro-active when Bad Things happen