Untangle your servlet code with reflection

Simplify servlet structure by breaking down functionality into separate methods Despite the elegance of the Servlet API, real-world servlet classes tend to have pages of code in their doGet() and doPost() methods, often with complex conditional logic. Over time, more…

Java Product News (December 21, 2000)

INDEXHEAD: Sun unveils Forte for Java, release 2.0 Sun Microsystems’s updated Forte for Java, its cross-platform development environment, relies on an open source framework that allows developers to create applications using a modular design. Release 2.0 also lets developers add…

JUnit best practices

Techniques for building resilient, relocatable, multithreaded JUnit tests JUnit is a typical toolkit: if used with care and with recognition of its idiosyncrasies, JUnit will help to develop good, robust tests. Used blindly, it may produce a pile of spaghetti…

C#: A language alternative or just J–?, Part 2

The semantic differences and design choices between C# and Java In Part 1 of this series, I covered the similarities between C# and Java, explained C#’s role in .Net, speculated on the possible outcomes of using multiple languages in application…

Buy, don’t build

With search engines, it’s best to purchase one off the shelf Q: How would you go about designing a search engine? A: Whenever I get such emails, I have to wonder why anyone would want to reinvent the wheel. In…

star

Java threads: A comparative book review

Choose the best tutorial for learning to program with Java threads Ever since the first editions of Java Threads from O’Reilly and Concurrent Programming in Java from Addison-Wesley came out several years ago, I’ve been recommending them to people who…

Java Product News (December 15, 2000)

INDEXHEAD: InstallShield simplifies multiplatform deployment strategies InstallShield Software has created three new multiplatform edition offerings (previously known as InstallShield Java Edition) that supply software developers with the ability to deploy applications across multiple platforms, including Linux, Solaris, AIX, Windows, and…

Secure thread collaboration across protection domains

Secure thread collaboration across protection domains

Build solid applications with the AccessControlContext and the GuardedObject classes Let’s consider two related but slightly different scenarios. You’re building an application with two threads, a server and a client,at its heart. The design requirements permit the server thread to…

Make an EJB from any Java class with Java Reflection

Make an EJB from any Java class with Java Reflection

Make any single-tier Java application into an enterprise application Every EJB application server allows you to install an EJB if you provide a bean implementation, remote interface, and a home interface but, in most cases, you have to write them…