Posted by editor
on April 18, 2006 at 7:10 AM PDT
Hassle-free LDAP lookups... also:
Feature Article: LdapTemplate: LDAP Programming in Java Made Simple
Projects and Communities: DWR 2.0 and JavaOne Community Corner slide-show
Forum Postings: JWSDP and GlassFish and when you don't need a USB API
Weblogs: Napkin L&F, Substance L&F, and JComboBox for enums
Also in Java Today: SDN's JavaOne preview and did Java kill Smalltalk?
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
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."
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 java.net
News Headlines :
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