
ONJava.com Articles
1 to 50 of 748
Next
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
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
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
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
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
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
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
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
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
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
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
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
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
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 Edition. Nov. 2, 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
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
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
Technologies to Watch: A Look at Four That May Challenge Javas Development Dominance
By Bruce A. Tate
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
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
What Is Spring, Part 2
By Justin Gehtland, Bruce A. Tate
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
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 1
By Justin Gehtland, Bruce A. Tate
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
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 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 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 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 Notebook. Sep. 21, 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 a Portlet
By Sunil Patil
The Portlet API establishes a standard for building a web page out of smaller constituent parts, all managed by a portlet container to create a portal page. In this introduction, Sunil Patil shows how to create a basic "Hello World" portlet and deploy it in the Apache Pluto portal server. Sep. 14, 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 Notebook. Sep. 7, 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
Configuring Eclipse for Remote Debugging
By Deepak Vohra
Debugging a server-side application? You probably don't want to dig through the log files and wonder what happened. Instead, you can run your server application in debug mode and attach to it with Eclipse, bringing the IDE's powerful debugger to bear on the remote application. Aug. 31, 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
- http://www.oreillynet.com/pub/feed/7
- RSS 1.0
- http://www.oreillynet.com/pub/feed/7?format=rss1
- RSS 2.0
- http://www.oreillynet.com/pub/feed/7?format=rss2
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.
Thanks,
O'Reilly Media, Inc.'s Online Publishing Group Aug. 11, 2005
Hacking Swing with Undocumented Classes and Properties
By Joshua Marinacci
Joshua Marinacci, coauthor of Swing Hacks, shows you six undocumented features, classes, and properties that let you hack into Swing. From how to hide a frame from the Windows task bar to how to make Mac OS X windows truly transparent, these undocumented hacks can add a level of polish that will make your apps stand out from the rest. Aug. 10, 2005
iBatis DAO
By Sunil Patil
The J2EE Data Access Object pattern calls for encapsulating access to a data source behind an API, giving you the freedom to change implementations or use different persistence strategies for different operations. As Sunil Patil shows, the Apache iBatis DAO framework helps you develop such a strategy. Aug. 10, 2005
Hibernate 3 Formulas
By Dai Yifan
Hibernate's formula element has been limited in previous versions of the popular object-relational mapping framework, but in Hibernate 3, your formulas can be used in many new ways that will simplify and empower your programming. Dai Yifan shows you what's new. Aug. 3, 2005
Give Your Business Logic a Framework with Drools
By Paul Browne
It's almost too easy to express your business logic as a spaghetti-code fiasco. The result is hard to test, hard to maintain, and hard to update. Rule engines offer an alternative: express your business logic as rules, outside of your Java code, in a format even the business side of the office can understand. Paul Browne uses the open source Drools framework to introduce the idea. Aug. 3, 2005
Web Services Messaging with Apache Axis2: Concepts and Techniques
By Srinath Perera, Ajith Ranabahu
The messaging strategies needed for web services vary, and Apache Axis2 has addressed this problem by creating basic building blocks from which many messaging schemes can be built. Srinath Perera and Ajith Ranabahu show how it works. Jul. 27, 2005
Eclipse Plugins Exposed, Part 3: Customizing a Wizard
By Emmanuel Proulx
Emmanuel Proulx's series on Eclipse plugin development continues by showing how to put together a useful data model and a wizard GUI. Jul. 27, 2005
IntelliTXT FAQ
Jul. 21, 2005
What Is Business Process Modeling?
By Michael Havey
Business Process Modeling (BPM) is a set of technologies and standards for the design, execution, administration, and monitoring of business processes. In this article, Mike Havey, author of Essential Business Process Modeling, briefly describes the state of BPM today and the BPM standards, then builds an ideal BPM architecture using the example of a retailer process. Jul. 20, 2005
Bean-Managed Transaction Suspension in J2EE
By Dmitri Maximovich
Container-managed transactions seem more capable than bean-managed transactions in the EJB spec, with the latter unable to, for example, suspend and resume transactions. But what looks like a limitation isn't necessarily so, according to Dmitry Maximovich, who shows you how to get to the underlying TransactionManager, making BMT as powerful as CMT. Jul. 20, 2005
Upload Files with JSF and MyFaces
By Andrei Cioroianu
Want to support uploading of files from the user's browser to your web application? You could parse the multipart form data yourself--or you could let Java do it for you. JSF doesn't support this out of the box, but, as Andrei Cioroianu shows, several JSF-based frameworks do. Jul. 13, 2005
Taking JUnit Out of the Box
By Amir Shevat
JUnit is practically ubiquitous among Java developers as a way to test code, but it's somewhat limited by the fact that it's only meant to run in one JVM on one box, hampering its usefulness when developing distributed applications. In this article, Amir Shevat shows how the open source JUnit extension Pisces helps JUnit overcome this limitation. Jul. 13, 2005
Generics in J2SE 5.0
By Budi Kurniawan
Generics are one of the most prominent language features in J2SE 5.0, but are you using them yet? Properly used, they allow greater flexibility, compile-time type safety, and fewer annoying and potentially unsafe casts. In this article, Budi Kurniawan shows how they work. Jul. 6, 2005
Getting Started with Maven
By Timothy M. O'Brien, Vincent Massol
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. Jul. 6, 2005
POJO Application Frameworks: Spring Vs. EJB 3.0
By Michael Juntao Yuan
Spring and EJB 3.0 are both reactions, in their own ways, to the complexity of EJB 2.1 and the complaints piled upon it. Both support developing with Plain Old Java Objects (POJOs) and give the framework responsibility for handling transactions, security, persistence, etc. But the two use substantially different approaches. In this article, Michael Yuan puts the two frameworks up against one another to see how they stack up. Jun. 29, 2005
JavaOne 2005: Participate in the Future of Java
By Chris Adamson
JavaOne 2005 is touting the successes of Java, charting the next versions of Java's standard and enterprise editions, and calling on members of the Java community to participate in Java's future. Jun. 29, 2005
Java City: The Java Enterprise Ecosystem
By Jim Farley
Should we worry about promoting a healthy Java community? Or is everything just fine in Java City? Jim Farley asks you to weigh in on these questions, and others, in the Talkbacks, and next week at JavaOne. He plans a followup article
summarizing what you have to say. Your comments may help to shape content in Jim's upcoming book, Java Enterprise in a Nutshell, 3rd Edition, due out in the fall.
Jun. 22, 2005

|