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…
New Product Briefs (March 31, 2000)
Ezlogin.com adds LiveClips to customized offerings Ezlogin.com has expanded its suite of personalization tools with the addition of LiveClips, a tool that lets Internet users clip content, such as ski reports or news headlines, and post the clips on a…
JNDI overview, Part 4: the Doc-u-Matic, a JNDI application
Pull together your JNDI knowledge with a JNDI-enabled application Let’s dive in. I’ve spent the last three months describing the Java Naming and Directory Interface (JNDI). By now, you should feel comfortable with naming and directory services and the operations…
Interprocess communications in Java
How can Java processes communicate without RMI? Q: How can two Java processes (two JVMs) on the same computer interact — that is, read each other’s methods and exchange objects? I’m using RMI, but it seems that a simpler solution…
Cleaning up after Jini services
Standardize the way Jini clients release finite nonmemory resources In May 1998, I published “Object finalization and cleanup” in my Design Techniques column of JavaWorld. In this article, I gave advice on designing the end of object lifetimes. In particular,…