Constants

What’s the best way to handle constants in an application? Q: We frequently deal with constants, especially using LDAP security and retrieving attributes. Where should constants be defined, considering they can be either systemwide or applicationwide? A: Lately, I’ve been…

Deliver cellular messages with SMS

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…

J2EE project dangers!

J2EE project dangers!

Avoid these 10 J2EE dangers to ensure your enterprise Java project’s success In my various tenures as developer, senior developer, and architect, I have seen the good, the bad, and the ugly when it comes to enterprise Java projects! When…

Clean up your wire protocol with SOAP, Part 1

An introduction to SOAP basics Many developers have run into this dilemma: A CORBA client needs to obtain the services of a Distributed Component Object Model (DCOM) client or vice versa. The common solution is to use a COM/CORBA bridge,…

Java Product News (March 30, 2001)

Java Media Framework 2.1.1 extends J2SE’s multimedia capabilities Sun Microsystems’ new Java Media Framework (JMF) API software enables multimedia developers to incorporate audio, video, and other time-based media content into Java applications and applets. Designed for the Java 2 Platform,…

Java diamonds are forever

How does Java solve the multiple-inheritance diamond problem? Q: How does Java solve the famous diamond problem (caused by multiple inheritance)? That is, you can implement multiple interfaces, that in turn can be implemented by one class. I know that…

Dodge the traps hiding in the URLConnection class

Dodge the traps hiding in the URLConnection class

The URLConnection class’s generic design causes snags when posting to a URL A pitfall is Java code that compiles fine but leads to erroneous, and sometimes disastrous, results. Avoiding pitfalls can save you hours of frustration. In this article, I…

Tcl your Java apps

Enhance the customizability and flexibility of your enterprise Java apps Any viable company has to react quickly to gain or regain an edge over its competitors. For companies that rely on their Websites to generate revenue, this means frequent changes…