Going for the One
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
DirContextand 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
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 java.net 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."
prungepoints 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."
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
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 java.net
News Headlines :
- JSR 266 - Unified Message Box Access API Draft Review
- mvnForum 1.0 GA
- AjaxTags 1.2 Beta 2
- Compass 0.9
- JAPI 0.9.0
- Jameleon 3.2
- ZK 1.2.0 RC2
- Wicket 1.2-rc1
Registered users can submit news items for the
href="http://today.java.net/today/news/">java.net News Page using our
form. All submissions go through an editorial review before being
posted to the site. You can also subscribe to the href="http://today.java.net/pub/q/news_rss?x-ver=1.0">java.net News RSS
Current and upcoming Java
- April 20-21, 2006 - Sun Tech Days - Moscow
- April 21-23, 2006 - Western Pennsylvania Software Symposium 2006
- April 22-23, 2006 - Maker Faire
- April 24-27, 2006 - MySQL Users Conference 2006
- April 25-28, 2006 - Enterprise Java Architecture Workshop Toronto
- April 28-30, 2006 - Northern Virginia Software Symposium
- May 3-4, 2006 - Sun Tech Days - Johannesburg
- May 7-9, 2006 - Rocky Mountain Software Symposium: Spring Edition
- May 8-10, 2006 - Eclipse Forum Europe 2006
- May 8-12, 2006 - Enterprise Architektur Konferenz
- May 8-12, 2006 - JAX 2006 - Konferenz fÃ¼r Java, XML, Web Services
- May 10-12, 2006 - The Ajax Experience 2006
- May 16-19, 2006 - JavaOne 2006
- May 19-21, 2006 - Central Ohio Software Symposium
Registered users can submit event listings for the
href="http://www.java.net/events">java.net Events Page using our
href="http://today.java.net/cs/user/create/e">events submission form.
All submissions go through an editorial review before being posted to the
Archives and Subscriptions: This blog is delivered weekdays as
Today RSS feed. Also, once this page is no longer featured as the
front page of java.net it will be
archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.
Hassle-free LDAP lookups