ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button

ONJava.com Articles

51 to 100 of 810 Prev Next

Scheduling Jobs in a Java Web Application
By Chris Hardin
Web application frameworks are built to service requests when they come in, typically from web users. This seems fine, but what if you need to execute code at specific times (for example, to generate reports in the middle of the night when CPU use is low)? Quartz provides best-of-breed Java scheduling functionality, and in this article, Chris Hardin shows how to get Struts to load up Quartz and your scheduled work. Mar. 1, 2006

Getting Started with Maven
By Vincent Massol, Timothy M. O'Brien
In this excerpt from Maven: A Developer's Notebook, authors Vincent Massol and Timothy M. O'Brien show you how to install and start working with Maven, the do-it-all Java project builder/manager. Mar. 1, 2006

Integrating Ant with Eclipse, Part 2

It's one thing to be able to run Ant builds from within Eclipse, but the integration of the top Java build tool and IDE goes deeper than this. In this excerpt from Ant: The Definitive Guide, 2nd Edition, Steve Holzner shows how to customize your Ant/Eclipse integration. Feb. 22, 2006

Asynchronous Messaging Made Easy With Spring JMS
By Srini Penchikala
Java Messaging Service (JMS) requires a lot of work to set up sessions and manage messages, work that can distract you from your application-specific logic. The Spring framework's SpringJMS offers a simpler solution that keeps the JMS administration out of your face. Srini Penchikala takes a look. Feb. 22, 2006

Integrating Ant with Eclipse, Part 1

Ant and Eclipse are the top Java build system and IDE, both by wide margins, so it's only natural you'd want to integrate them. In this excerpt from Ant: The Definitive Guide, 2nd Edition, Steve Holzner shows how to create and run Ant build.xml files from within Eclipse. Feb. 15, 2006

Playing Together Nicely: Getting REST and SOAP to Share Each Other's Toys
By Jason R. Briggs
Convincing your colleagues and clients to consider a RESTful approach to SOA is difficult when the accepted standard is SOAP-style services. In this article, Jason R. Briggs introduces a SOAP interface that can be used to deliver SOAP messages from REST resources. Feb. 15, 2006

J2EE Without the Application Server
By Guy Pardon
J2EE apps sound big because they usually are big, running on big enterprise-class application servers--servers that often provide a lot of functionality that you don't really want or need. In this article, Guy Pardon advocates a mix-and-match approach to combining Spring with best-of-breed persistence and transaction frameworks to build enterprise applications without a traditional J2EE app server. Feb. 8, 2006

Using Spring with JDO and Hibernate

Everyone knows about Hibernate, but what about Java Data Objects? Both of these object-relational persistence frameworks are well supported by Spring, and in this excerpt from Spring: A Developer's Notebook, Bruce Tate and Justin Gehtland show you the advantages of each and how to integrate them with Spring. Feb. 8, 2006

What Is a Portlet, Part 2
By Sunil Patil
Portlets aim to be your next desktop, providing small pieces of web-based functionality that can be aggregated on a portal page. In this article, Sunil Patil delves deeper into the JSR-168 portlet spec by showing off edit mode, JSP integration, the portlet tag library and preferences API, and Pluto's admin console. Feb. 1, 2006

The Java Podcasters, Part 2
By Chris Adamson
In this second article on Java-oriented podcasting, some more unique voices are featured, including a single-product podcast, and an amusing show that kicks back its feet and declares itself "drunk and retired". In this article, we interview the voices behind the ZDot, NetBeans Podcast, and DrunkAndRetired.com podcasts. Feb. 1, 2006

The Java Podcasters, Part 1
By Chris Adamson
As podcasting takes off, a number of podcasts specifically tailored to the Java developer have become available. Ranging from the serious to the silly, covering the whole Java realm or just a single product, there seems to be something for every developer with a set of headphones. In this article, we interview the voices behind the Swampcast and Java Posse podcasts. Jan. 25, 2006

Twelve Best Practices For Spring XML Configurations
By Jason Zhicheng Li
Spring is powerful and popular, but in practice, the configuration files it needs for beans, dependencies, and services can quickly become confusing and hard to maintain. Jason Zhicheng Li offers some real-world advice on how to keep control of your configs. Jan. 25, 2006

Using Lucene to Search Java Source Code
By Renuka Sindhgatta
Most uses of the Java-based Lucene search engine are for searching typical text documents. But what if you want to search Java code itself? Renuka Sindhgatta argues that this would be a boon for finding reusable code, and shows how to adapt Lucene to parse Java code for maximum searchability. Jan. 18, 2006

Spring: Integrating iBATIS

iBATIS is one of the object-relational (OR) frameworks embraced by the Spring framework, and it's an ideal choice for those seeking a middle ground between full-blown OR and hand-written JDBC. In this excerpt from Spring: A Developer's Notebook, Bruce Tate and Justin Gehtland show how to integrate iBATIS with Spring. Jan. 18, 2006

An Exception Handling Framework for J2EE Applications
By ShriKant Vashishtha
One common hassle in J2EE development is exception handling: many apps devolve into a mess of inconsistent and unreliable handling of errors. In this article, ShriKant Vashishtha introduces a strategy for predictably collecting your exception handling in one place. Jan. 11, 2006

Maven Project Reporting and Publishing, Part 2

Maven helps you not only with building and tracking your project, but also with releasing it. In this second excerpt from Maven: A Developer's Notebook, authors Vincent Massol and Timothy M. O'Brien show how Maven can publish artifacts like JAR/WAR/EAR files, automate announcements, generate changelogs, and publish a project website. Jan. 11, 2006

Maven Project Reporting and Publishing, Part 1

Maven's not just about building; it's about viewing, understanding, and managing your projects. In this first part of a two-part excerpt from Maven: A Developer's Notebook, authors Vincent Massol and Timothy M. O'Brien introduce Maven's reporting features for issue tracking, dependencies, code style, and more. Jan. 4, 2006

Using Dependency Injection in Java EE 5.0
By Debu Panda
Dependency injection, also known as inversion of control, is a programming technique being adopted by many programmers and frameworks, including the popular Spring framework. But using it in J2EE 1.4 requires a burdensome deployment-descriptor-based approach. Debu Panda shows how Java EE 5.0 provides relief in the form of annotations-based dependency injection. Jan. 4, 2006

ONJava: 2005 Year in Review
By Chris Adamson
2005 may not have seen a new version of Java, but it was a year of tremendous activity that saw Java assert its popularity, even while some wondered how well-suited Java is for its second decade. In this article, ONJava editor Chris Adamson wraps up the year in Java by looking back at some of the year's most popular articles. Dec. 21, 2005

Hibernate Class Generation Using hbm2java
By John Ferguson Smart
Hibernate uses mapping files to express the mapping of Java classes to database tables. In a complex project, keeping mappings in sync with your Java code can be burdensome and error-prone. Fortunately, the hbm2java tool can automate this by generating POJO classes from the mapping files. John Ferguson Smart shows how to use hbm2java with Ant and Maven, and how to customize the behavior of the generated classes. Dec. 14, 2005

Killer Game Programming in Java: A 3D Checkerboard, Part 2

In part one of this two-part excerpt from Killer Game Programming in Java, author Andrew Davison strode through some complex programming issues for developing Java 3D graphics, such as how to add shapes, lighting, and backgrounds to a Checkers3D application. Here in part two, Andrew continues the theme by demonstrating how to create a floating sphere for the Checkers3D app.  Dec. 14, 2005

Killer Game Programming in Java: A 3D Checkerboard, Part 1

Our book excerpt today is for all you Java gamers, especially the 3D junkies--we know you're out there. In part one of a two-part series taken from Chapter 15 of Killer Game Programming in Java, author Andrew Davison describes how to create a scene in a Checkers3D application, using Java 3D. And check back next week when Andrew shows how to create a floating sphere for the Checkers3D app. Dec. 7, 2005

Lightweight R/O Mapping
By Norbert Ehreke
O/R frameworks map Java classes to database tables and SQL code. While popular, this approach is unpopular among DBAs, with the database at the mercy of an external tool. Another approach is to go the other direction: write tables and stored procedures and generate Java classes from that. Norbert Ehreke introduces Amber, a framework that embodies this approach. Dec. 7, 2005

What Is On-Demand Computing
By Stephen B. Morris
On-demand computing is a much-repeated term, but what does it mean, and what does it deliver? As Stephen Morris explains, autonomic computing, policy-driven workflows, and grid computing are all part of the answer. Nov. 30, 2005

Managing and Monitoring JBoss, Part 2

In part one of this two-part excerpt from JBoss: A Developer's Notebook, authors Norman Richards and Sam Griffith covered how to use the Web Console and its MBeans to manage your web apps. In today's excerpt, learn how to create a monitor for your app, how to configure alerts to be sent via email, and how to manage JBoss from the command line.  Nov. 30, 2005

Managing and Monitoring JBoss, Part 1

In part one of this two-part excerpt from JBoss: A Developer's Notebook, you'll learn how use the Web Console (an advanced version of the JMX Console), how to work with its enhanced monitoring capabilities and MBeans, and how to create snapshots of your data over regular intervals. Nov. 23, 2005

Hacking Swing: A JDBC Table Model
By Chris Adamson, Joshua Marinacci
Databases have tables, Swing has tables. Why should it be a hassle to bring the two together? In this excerpt from Swing Hacks, authors Joshua Marinacci and Chris Adamson show you how to put some JDBC behind your table model, and bring your database to life in Swing. Nov. 23, 2005

Ruby the Rival
By Chris Adamson
Bruce Tate's Beyond Java picks Ruby as the front-runner among languages that could succeed Java among enterprise developers. But what's so great about Ruby--and frankly, what's wrong with Java? We asked some top Java bloggers, authors, and developers what they think of Ruby's challenge. Nov. 16, 2005

Hibernate for Java SE
By Jason Lee
For many, Hibernate goes hand in hand with Java EE as part of their enterprise development strategy. But what if you need access to your data access objects outside of the EE container? Jason Lee offers some strategy for getting and using a Hibernate session from Java SE code. Nov. 16, 2005

Hacking Swing: Translucent Windows
By Chris Adamson, Joshua Marinacci
All Java windows are absolutely rectangular, so you can forget about creating a nice Winamp-like window for your Swing app, right? Wrong. In this excerpt from Swing Hacks, authors Joshua Marinacci and Chris Adamson show how you can use some imaging trickery to create arbitrarily shaped windows with Swing. Nov. 9, 2005

JBoss Cache as a POJO Cache
By Ben Wang
Typical in-memory cache systems can trip you up in ways you don't expect, from mangled object relationships to overly expensive serialization operations. A POJO cache offers a simpler, lower-maintenance alternative. Ben Wang uses JBoss Cache to show how POJO caches work. Nov. 9, 2005

The Community of Web 2.0
By Daniel H. Steinberg
In this 48-minute audio program from the Web 2.0 conference, Tim O'Reilly speaks with Sun Microsystems COO Jonathan Schwartz and Mozilla Foundation president Mitchell Baker about developer communities, distribution, architectures and expandability, and the value of open source. Nov. 2, 2005

What Is Struts
By Chuck Cavaness
Chuck Cavaness takes you on a whirlwind tour of the Struts framework--an open source Java framework for building web apps--with overviews of many of it most important features, including Struts controller components, model layers, the Struts tag libraries, and presentation validation. Chuck is the author of Programming Jakarta Struts, 2nd EditionNov. 2, 2005

Test-Driven Development Using StrutsTestCase
By John Ferguson Smart
JUnit and DbUnit can help test your web application, but they're not ideal for testing Struts Actions. Fortunately, the StrutsTestCase framework exists to help you close this gap in your testing coverage. John Ferguson Smart looks at how it works and what it can do for you. Oct. 26, 2005

AJAX: How to Handle Bookmarks and Back Buttons
By Brad Neuberg
The clever in-page dynamics of AJAX make for richer web applications, but they don't necessarily tolerate the use of bookmarks or the browser's back and forward buttons particularly well. In this article, Brad Neuberg shows off a new framework that brings bookmarking and back-button awareness to AJAX. Oct. 26, 2005

Constructing Web Services with the Globus Toolkit Version 4
By Birali Hakizumwami
Grid computing allows you to combine processing, storage, databases, and other resources across a network, hiding the details from callers. As Birali Hakizumwami shows, the Globus Toolkit makes this easier by exposing the grid as a normal web service. Oct. 19, 2005

Technologies to Watch: A Look at Four That May Challenge Java’s Development Dominance
Bruce Tate has a knack for identifying successful technologies. He was one of the early developers who identified the emergence of the Spring framework; he predicted the demise of EJB 2 technologies a full year before the EJB 3 expert group abandoned the older approaches. In his new book, Beyond Java, Bruce looks at four languages and technologies that may challenge Java's dominance in some development niches.  Oct. 19, 2005

Diagnostic Tests with Ant
By Koen Vervloesem
Determining what's gone wrong with your software--source or binary--in a remote location is no simple task. Before taking a call and walking the user through error-prone troubleshooting, why not collect information about the user's system and the application files? Koen Vervloesem shows how you can do this with Ant.  Oct. 12, 2005

What Is Spring, Part 2
By Justin Gehtland,
In part one of this two-part excerpt from Spring: A Developer's Notebook, authors Bruce Tate and Justin Gehtland showed you how to automate a simple application and enable it for Spring. Today, the authors will cover how to use Spring to help you develop a simple, clean, web-based user interface. Oct. 12, 2005

Eclipse Web Tools
By Jeffrey Liu, Lawrence Mandel
The Eclipse Web Tools Platform (WTP) project aims to make web application development easier by attacking the problem from the tool side, providing Eclipse-based tools for creating and manipulating EJBs (optionally exposed as web services), data stores, and JSPs. Committers Jeffrey Liu and Lawrence Mandel introduce this new toolset. Oct. 5, 2005

What Is Spring, Part 1
By Justin Gehtland,
In this first of a two-part series excerpted from Spring: A Developer's Notebook, authors Bruce Tate and Justin Gehtland help you understand how you can use Spring to produce clean, effective applications. In part 1, they take a simple application and show you how to automate it and enable it for Spring.  Oct. 5, 2005

ONJava 2005 Reader Survey Results, Part 2
By Chris Adamson
Is there anything else you'd like to tell our Java editors? Well, 226 people responding to the 2005 ONJava Reader Survey did. In this article, we show what they said and discuss what we're doing with the site. Sep. 28, 2005

What Is Quartz
By Chuck Cavaness
Java programmers: if you've ever needed an application to perform a task at a specific time, automatically, Chuck Cavaness suggests you check out the Quartz Scheduler. Cavaness looks at this open source job-scheduling framework, explains where to get it, how it works, and reviews its feature set.  Sep. 28, 2005

ONJava 2005 Reader Survey Results, Part 1
By Chris Adamson
We asked who you are and what you're doing, and 988 people replied in just 12 days. In this first article of a two-part series, we reveal the results of the 2005 ONJava Reader Survey. Sep. 21, 2005

What Is Hibernate
By James Elliott
Hibernate is a free open source Java package that makes it easy to work with relational databases. James Elliott describes the "enlightened laziness" that resulted in the development of Hibernate, how it works, and when it makes good sense to use it in your projects. James is the author of Hibernate: A Developer's NotebookSep. 21, 2005

Announcing the 2005 ONJava Reader Survey
By Chris Adamson
The 2005 ONJava Reader Survey is underway. This is your opportunity to steer the site by helping us understand what you use, what you're interested in, and where you think Java is going. Sep. 7, 2005

Building J2EE Projects with Maven
By Vincent Massol
Vincent Massol offers some real-life experience building J2EE applications with Maven. Using the example of a Petstore app, Massol shows you how to generate J2EE artifacts (EJB JARs, WARs, EARs) with Maven. He is coauthor of Maven: A Developer's NotebookSep. 7, 2005

Using Drools in Your Enterprise Java Application
By Paul Browne
Enterprise Java developers have many fine framework choices at the presentation and persistence levels, but what about the business logic that sits in the middle? Do you want to recompile a mass of if ... then spaghetti code every time a manager drops a new gotcha in your lap? In this article, Paul Browne suggests that a rule engine like Drools may be an ideal fit for this task. Aug. 24, 2005

Introduction to the ASM 2.0 Bytecode Framework
By Eugene Kuleshov
J2SE 5.0 made major changes to the language, and version 2.0 of the ASM bytecode manipulation toolkit is well-suited to handle them. In this article, Eugene Kuleshov shows how ASM 2.0 makes working with bytecode easier, and even offers an example of how to map the external dependencies in an arbitrary .jar file. Aug. 17, 2005

Important Notice for ONJava Readers About O'Reilly RSS and Atom Feeds

O'Reilly Media, Inc. is rolling out a new syndication mechanism that provides greater control over the content we publish online. You'll notice some improvements immediately, such as better standards compliance, graphical tiles accompanying article descriptions, and enclosure support for podcatching applications. We've tested the new feeds using a variety of popular newsreaders and aggregators, but we realize that there may be a few bumps along the way. If you experience problems, please don't hesitate to send mail to webmaster@oreilly.com. Please include detail about your operating system and reader applications. We also welcome your suggestions. Thank you for your continued support of ONJava.

The following URLs represent ONJava's article and weblog content in a variety of popular formats:

Atom 1.0
RSS 1.0
RSS 2.0

We will begin automatically redirecting the existing feeds to the new feeds above, but we recommend that you update your feedreader's subscription settings to ensure continuous and uninterrupted service.

O'Reilly Media, Inc.'s Online Publishing Group

 Aug. 11, 2005