Digging into your desktop's address book from your mobile device
So what's wrong with running a servlet on your desktop machine? I mean, aside from any concerns about resource consumption or security, is there something intrinsically wrong about servicing HTTP requests from something other than a dedicated server?
The idea behind today's Feature Articlebasically requires you to be running Tomcat, GlassFish, Jetty, or some equivalent servlet container on your desktop. The idea is that you can put a servlet in place to serve up some custom data to a mobile client.
When I first heard the article pitch, I imagined some more exotic, Java-ish connection, like RMI or something. But on reflection, HTTP seems like a pretty good choice - it's well-understood, well-supported by Java ME, can run on known ports, passes unmolested through firewalls, can be proxied, etc. And hey, simple is good.
So take a look at how Biswajit Sarkar proposes to Access Desktop Data from Mobile Devices in today's article. He combines a custom MIDlet on the phone and a servlet to format HTTP requests for address book queries in a simple format, does the work on the desktop, then parses the result on the phone. In a nice trick, the MIDlet client can actually dial the returned number on the handset, which should save you a few keypresses.
In the Java Today section, the Semblance project has announced the release of Semblance 1.0B1, which incorporates the StrutsLive framework (formerly maintained as a separate project) a new Foundation framework, and a comprehensive example application. This is a major feature release that adds support for XHTML templating, dynamic query generation, and list management, including pagination, navigation, sorting, filtering, and selection management. Please see the release notes for further details.
Patrick Wright has announced that the SwingLabs website now has search: "We now have search enabled for SwingLabs-related topics on the SwingLabs website. This uses a new Google feature, Google Custom Search. The results come from Google, and are restricted (in this case) to a known set of websites, including the discussion forums, project sites, and blogs, among others. We can tune the CSE settings over time to get more accurate results."
One of Europe's most popular Java conferences, JavaPolisstarts in a little over a week, running from December 11 through 15 in Antwerp, Belgium. The first two days feature "University" sessions and hands-on labs, while the last three days are stuffed with 60-minute technical talks, 15-minute "quickies", BoFs, and "whiteboard" sessions that are proposed and assembled on-site, similar to an unconference. Registrationis still open, with a €200 entrance fee.