Skip to main content

Going for the One

Posted by editor on April 18, 2006 at 7:10 AM PDT

Hassle-free LDAP lookups

Today's feature article makes an interesting comparison between JNDI as a means of looking up LDAP information, and JDBC as a means of getting data from a database, noting some common and unpleasant traits: "They require extensive plumbing code, even to perform the simplest of tasks. All resources need to be correctly closed, no matter what happens.
Exception handling is difficult."

Pointing out that the Spring framework's Spring JDBC dramatically simplifies database access for the Spring programmer, they wonder why it shouldn't be just as easy to look up LDAP records.

In the Feature Article, LdapTemplate: LDAP Programming in Java Made Simple
, Mattias Arthursson and Ulrik Sandberg introduce LdapTemplate, a library modeled on Spring JDBC's JdbcTemplate, for simplifying LDAP programming in Java:

It completely eliminates the need to worry about creating and closing DirContext and looping through NamingEnumeration. It also provides a more comprehensive unchecked exception hierarchy, built on Spring's DataAccessException. As a bonus, it also contains classes for dynamically building LDAP filters and distinguished names.

In Projects and
the Direct Web Remoting (DWR) project, popular for providing "easy AJAX for Java", recently reached milestone 1 of version 2.0. This new version will introduce the concept of "reverse AJAX", in which server-side Java can asynchronously call client-side JavaScript, making interactive applications much easier.

In between the mini-talks at the JavaOne Community Corner, we'll be running a slide show on the screen. We'd like to show pictures of groups of developers from projects, project screenshots, and other visuals of your project or community. To upload your picture, visit the 2006 JavaOne Slide Show document folder.

In today's Forums,
vijaysr clears up a web services misconception in
Re: JWSDP and Glassfish:
"There is no need for you to integrate JWSDP into GF. GF has all JAX* technologies integrated in itself. All apps developed using JavaWSDP2.0 will deploy and run on GF as is (although the app will not be recognized as a webservice by GF because they are not JSR109 compliant). Having said that, the problem you are seeing is because of a late change in the spec. For uniformity, spec was changed to change the API (like for example, AccessType got changed to XMLAccessType). you are probably using the old JavaWSDP2.0 release a while back which is not in sync with GFb42 which has the (almost) final spec implementation."

prunge points out cases where a Java USB library isn't necessary, in
Re: Usb support (especially for windows):
"Having low-level USB access from Java is similar to having direct access to the physical layer on network cards or directly accessing the SCSI bus. You don't need direct USB access to use card readers or USB mass storage devices - that should be handled by the OS. You should be able to simply create a file in the appropriate section of the file system, write to it, and the OS should take care of the rest."

Claudio Miranda thinks about How your apps look on a napkin in today's Weblogs:

I noticed today on nbusers mailing list, an email from Alex Lam L. S. (an active NB community member), that Napkin Look and Feel were updated. Some parts were updated to work with JDK 5 apps. As I use NetBeans 5 with JDK 6 (AKA Mustang), it looks even better. I think it's because of the fonts Napkin uses (Felt Tip Roman).

Color up, Scherbatsky, Kirill Grouchnikov writes:
"Substance LAF has turned one year old during a ten-hour flight over the Atlantic (on April 14) and celebrated this joyous event by providing even more color themes than before."

Joshua Marinacci has some
Stuff to Play With: the EnumComboBoxModel, in which
"Joshua shows how to display enums in a JComboBox"

In Also in
Java Today
the blog We're Niche Players looks at the role of Smalltalk within the broader software community and discusses whether Java "killed" Smalltalk. "I probably have astigmatism when it comes to this event, but I think Java didn't kill Smalltalk. Smalltalk is not dead, as Michael points out. But Smalltalk developers have not become thought leaders, as was asserted. I think we've become niche. And we cannot blame Java."

The SDN previews JavaOne 2006 in their article The Power of Java Hits San Francisco: "Thousands of passionate Java technology advocates, developers, and experts from across the globe will descend upon San Francisco, May 16 to 19, for the 2006 JavaOne conference. This annual exchange of all things about Java technology will include hundreds of expert-led technical sessions, real-world tips and examples, Birds-of-a-Feather sessions, Hands-on Labs, previews and demonstrations of technical advances, and exciting evening events with industry leaders."

In today's
News Headlines

Registered users can submit news items for the href=""> News Page using our
news submission
. All submissions go through an editorial review before being
posted to the site. You can also subscribe to the href=""> News RSS

Current and upcoming Java