Import overhead
Does importing an entire package slow down code? Q: Does importing an entire package cause any runtime or compile time overhead? For example, does: import java.util.* compared with: import java.util.Vector cause any added overhead? A: In answering your questions a…
Robust event logging with Syslog
Syslog is a fast, flexible, and easily extendable logging system An important part of any project, logging can be used as a debugging tool during development, and a troubleshooting tool once a system has been deployed in a production environment.…
How many times do you restart your server during development?
Is the lack of Java class reloading a problem? Ever since I began developing server-side Java applications, I’ve had to constantly restart the server. Whether it is a Java HTTP server, RMI server, EJB application server, or custom server, restarting…
Program multimedia with JMF, Part 1
Go multimedia by learning how the Java Media Framework compares to your stereo system The Java Media Framework (JMF) is a large and versatile API used to process time-based media. However, JMF’s complexity can take weeks to understand. With that…
Breathe intelligence into Java
Making AI work in your Java programs is easier than you think Evolutionary computation is crucial for the next generation of applications. Evolutionary computation is software that adds and removes methods, parameters, and iterators, as well as generally modifies the…
Java Tip 110: Implement the Observer pattern with EJBs
Use this convenient framework to assign event listeners to EJBs The Observer pattern is probably one of the best ways to reduce coupling between objects. For example, if you are writing a typical application, you may decide to provide a…
Deliver cellular messages with SMS
SMS: A shortcut to providing information services to cell phones The mobile communication device market is growing exponentially. A survey by Gartner Dataquest predicted that worldwide mobile phone sales will have totaled 412.7 million units in 2000, a 45.5 percent…
Working in Java time
Learn the basics of calculating elapsed time in Java This article builds on the information presented in my Calculating Java Dates article (JavaWorld, December 29, 2000). Here I’ve listed some key points from that article that should be familiar to…