Make room for JavaSpaces, Part 4
Explore Jini transactions with JavaSpaces The Jini transaction model is one of the lesser known and least used aspects of Jini, yet it provides a powerful tool for writing distributed applications that operate correctly in the presence of partial failure.…
Letter from the editor
An update on JavaWorld and an explanation for that yellow and black navbar As most of our loyal readers have already noticed, we’ve been publishing a greater amount of content in JavaWorld lately. Our recent move to a weekly schedule…
News and New Product Briefs (April 14, 2000)
Oracle’s JDeveloper adds XML support Oracle has updated its JDeveloper 3.1 for Java with the addition of end-to-end XML support, which allows developers to create and deploy applications in Java and XML. Oracle JDeveloper 3.1 makes it easier to work…
JFC actions
Use the powerful Command pattern with the JFC Action interface to build a reusable GUI-command library The JFC Action interface provides a mechanism to detach application logic from GUI code. Unfortunately, Action implementations must usually be rewritten for each GUI,…
Can you securely read a password on the command line?
Securely reading a password from the command line in Java is difficult, but there are some (imperfect) solutions Q: I need to read passwords from the command line. Is there a way to easily read characters from the command line…
Build an object database, Part 2: Object storage backend
Implement relational database storage for Java objects Mapping objects into relational databases and vice versa is almost always a hassle. A general solution is difficult because of the inherent differences in the relational and object-oriented approaches to data modeling. Tools…
News and New Product Briefs (April 7, 2000)
INDEXHEAD: JavaOne 2000 conference approaching Registration has just started for Sun’s JavaOne Java Developer Conference, which will take place June 6-9 at San Francisco’s Moscone Center. The conference combines hands-on technology development with lectures, tutorials, and discussions. Topics for this…
Programming XML in Java, Part 2
Experience the joy of SAX, LAX, and DTDs If you read last month’s article, you already understand how you can use SAX (the Simple API for XML) to process XML documents. (If you haven’t read it yet, you may want…
Java Tip 92: Use the JVM Profiler Interface for accurate timing
Improve performance analysis by measuring Java thread CPU time The textbook approach to simple performance analysis is to call System.currentTimeMillis() before and after the code to be measured. This is comparable to using a stopwatch when testing GUI activity, and…
Java Tip 91: Use nested exceptions in a multitiered environment
Automatically capture the context of remotely thrown exceptions through nesting In this brave new world of business computing, multitiered applications based on RMI, or Remote Method Invocation, running across many computers have overrun the realm of the business application, also…