Skip navigation
ANNOUNCEMENT: is currently Read only due to planned upgrade until 29-Sep-2020 9:30 AM Pacific Time. Any changes made during Read only mode will be lost and will need to be re-entered when the application is back read/write.

Sea Of Joy Blog

Posted by kfarnham Dec 23, 2008

Dive into the holiday season

Today's front page is the last update we'll be making before the holiday break. Thanks as always to the team at Sun (Marla Parker, Gary Thompson, Sonya Barry, et. al.), O'Reilly (Nancy Abila, Sarah Kim, Jennifer Palm, Kevin Farnham), Collabnet (Andrew Kelly and crew), and elsewhere (Eric Renaud, community leaders one and all). We hope we've been able to continue a sense of community in, and that it will continue to be valuable to you in 2009.

In Java Today, Danny Coward's year-end post points us to Infinity Labs' interesting list of Ten Amazing Java Applications. "Java is such a great language and platform for any kind of application. It is open, fast, powerful, runs on any platform, and there are more jobs for Java than any other programming language. After reading more FUD and Java bashing from Ruby land I thought it would be fun to put together a list of truly amazing uses of Java that covers a wide spectrum." projects on the list includeProject Looking Glass andFlying Saucer.

Kirill Grouchnikov has announced a core feature freeze and release schedule for the Flamingo Swing component suite. New features for 4.0 are: Contextual task groups,Taskbar, Application title bar, Main application menu button, Pluggable resizing policies, Minimizing the ribbon,Horizontal scrolling for content under small widths, Better support for placing core controls and button groups in ribbon bands, Key tips, and Screen tips (AKA rich tooltips). A release candidate is due January 26, 2009, with final release following on February 9.

The Mobile, Media, and eMbedded Developer Days are just four weeks from now. Read the featured segments on embedded sessions in the third of our weekly M3DD newsletters. This edition of the newsletter includes profiles of speakers Joe Polastre of Sentilla and Eric Arseneau, Primary Investigator on the Squawk project.

Today's Weblogsbegin with James Gosling's year-end greeting, Merry Christmas Everyone! "It's been a great year in the Java universe: JavaFX 1.0 launched; NetBeans 6.5; Glassfish V3; JDK6u10/11; MSA; OpenJDK&jdk7... OpenSolaris 2008.11, OpenStorage, OpenSSO, VirtualBox, OpenOffice 3, MySQL 5.1..."

Jacob Hookom offers some ideas for Accelerating Applications with Java 5 Concurrency. "Does your service tier or web tier processor sit wastefully idle under peak use? A look at Java 5 concurrency and ways to increase efficiency of linear processes and services, especially for high throughput situations. This blog deals with shared Thread Pool use and preventing resource starvation."

In today's Forums, the LWUIT project's Chen Fishbein announces a New Code Drop available for download! "We have uploaded a new version to the site. The new version highlights are: * Bug fixes and performance are the major aspects of this drop, * Major refactoring of the implementation code moving it into a public package to allow extending using a standard approach. *Improved touch functionality in LWUIT including support for multi-touch devices and click screen devices (pointer hover). * Improved the edt loop including performance improvements and perceived performance issues. * New auto-testing and recoding framework for LWUIT debugging. * Memory/Performance improvements for bitmap font drawing, using WeakReferences for better caching and removing the current hack with light mode. * Added the encoded image class which is designed to load the image as a byte array and only show it as a weak reference.* LWUIT Makeover is now a part of the binary drop. Enjoy!"

xyonanexus wants to know Why do I have to restart GlassFish on every single little change? "Maybe it's just my particular installation of glassfish but it seems for even the most trivial change I have to restart the entire application server for the changes to take effect. Particularly for entries such as JNDI or enabling certain log monitoring features. Does it really have to be like that? Does changing my password really mean I have to shut down the entire application server for it to take effect? Enabling precompile means that again the WHOLE server has to be shutdown and rebooted again? Maybe I'm the only one annoyed by this but it certainly seems ridiculous."

Finally, malm may have a tricky request in WSIT - How to sign without encryption?. "I have a requirement for a webservice client to do soap message body signing (using RSA-SHA) but no header encryption. And can't figure out how to write the appropriate WS-Policy for that. Signing the body is easy with the combination of an AsymmetricBinding and a signedPart/Body declaration. However, the generated messages seem to always have their headers encrypted (same when using SymmetricBinding). How can tell Metro to leave the headers unencrypted?"

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Oh, and for those of you playing the Editor's Daily Blog game, here's the answer key for 2008. You can scan through the blogs in the archives. How many did you get?

Week ofArtist / theme
1/2/08Bend Sinister
1/7/08Travelling Wilburies
1/14/08The Mighty Mighty Bosstones
1/28/08dEUS (Dalibor Topić's suggestion)
2/4/08Foo Fighters
2/11/08The Replacements
2/18/08Belle & Sebastian
2/25/08Death Cab for Cutie
3/3/08The Jam
3/10/08Tokyo Police Club
3/17/08Tori Amos
3/24/08Aimee Mann
4/14/08Neil Young
4/21/08Spilt Enz
4/28/08The Polyphonic Spree
5/12/08Sonic Youth
5/19/08Jason Mraz
6/2/08Herman's Hermits
6/9/08Duran Duran
6/16/08Barenaked Ladies
6/30/08Chris Isaak
7/7/08The Black Keys
7/21/08Modest Mouse
7/28/08Von Bondies
8/4/08The Apples In Stereo
8/11/08Hüsker Dü
8/25/08Kevin F guest blogs + Born Ruffians
9/1/08Juliana Hatfield
9/8/08The Killers
9/15/08The Stills
9/22/08The Verve Pipe
9/29/08Lucinda Williams
10/6/08The Decemberists
10/13/08Daryl Hall & John Oates
10/20/08Fall Out Boy
10/27/08Mustard Plug
11/3/08The All-American Rejects
11/10/08Gentle Giant
11/17/08Love and Rockets
11/24/08Seven Mary Three
12/1/08Joel Plaskett Emergency
12/8/08The Cribs
12/15/08Mandy Moore
12/22/08Blind Faith

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Dive into the holiday season  

Well All Right Blog

Posted by kfarnham Dec 23, 2008

Swing finally gets testable?

It's no surprise that so many of the testing advocates are those who work in middleware or on the server side. It's a lot easier to whip up some some mock data or to can an http request than it is to exercise GUIs in exacting, reproducible ways. Modeling the clicking and dragging is hard, evaluating how the visual part of the interface responds is even harder.

Many Swing developers gave up on testability, or never even tried. But some continued to tough it out. For example, Alex Ruiz says:

I started by creating some very small Swing apps just for fun. Following my curiosity for testing, I found that testing UIs was a very fascinating challenge for many reasons. I realized that, to test UIs, unit testing was not as helpful as I wanted. Sure, I could test that my ActionListener performs some logic correctly, but I thought that it was not good enough. Unit testing of UI classes was as fragile as using mock objects: developers need too much knowledge of the internals of the UI. And, if the internals change without changing the actual UI behavior, tests can fail miserably. I also understood that testing UI-related classes in isolation could not give us confidence that the UI, as a whole, behaved as expected in front of the user. In order to be effective, tests needed to verify the behavior of a UI as if a user was actually using it.

I started looking into open source tools for functional tests of Swing UIs. Although all of them could simulate user input successfully by using the AWT Robot, they were not as usable as I desired. My first impression was that their APIs were too verbose, making creation and maintenance of UI tests quite tedious.

Then my wife, Yvonne, and I started doing some experiments with fluent interfaces, which ended up as FEST. From that point on, the project has grown thanks to the feedback and contribution of its users.

In Swing, UI testing and beyond - interview with Alex Ruiz, Kirill Grouchnikov talks with Alex about FEST (Fixtures for Easy Software Testing). He discusses whether testing tools and APIs should be part of UI toolkit core distributions, what Swing's pain points are and what Swing needs going forward, the feasibility of extending FEST to SWT and JavaFX, and more.

Also in Java Today, Sean Brydon and Aravindan Ranganathan introduce OpenSSO as a Java EE security solution in the SDN article Protecting Java EE Applications With OpenSSO Policy Agents, Part 1: Basic Steps. "By installing a Policy Agent at the application-server instance on which your applications are deployed and then configuring the Policy Agent, you can enforce authentication, single sign-on (SSO), and authorization. During installation, classes that can secure the deployed applications are added to your application-server instance. Subsequently, you can also enable Web-service security, personalize applications for users, and map to the Java EE security mechanisms."

Paul Reiners shows how to animate images in unexpected and artistic ways using the Java 2D API and cellular automata in the article Pointillism meets pixelation. In the process, he demonstrates implementation of an image operator in Java code and explains cyclic space, a type of 2D cellular automaton. You can use the ideas from this article to create your own image operators and artistic programs using Java technology.

The latest Java Mobility Podcast is Java Mobility Podcast 65: Eric Arseneau, Go Small or Not at AllEric Areseneau, M&E Governance Board member and Squawk project lead, was recently written up as a Contrarian Mind. Listen to his ideas on getting a Java Virtual Machine in small embedded systems.

Today's Weblogsbegins with Terrence Barr showing off the mobile version of the popular CloudDVR JavaFX demo in JavaFX Mobile: See and learn at M3DD "When I do this demo and show the application run consistently in parallel on a desktop as well as on a mid-range phone I typically get raised eyebrows and hear things like "Hmm - this is impressive. Where can I find out more?" . Well, in January you can find out more - at Java Mobile, Media, and eMbedded Developer Days (M3DD)."

Felipe Gaucho has posted My slides from Devoxx 2008 Quickies are a nice opportunity to introduce a new project and train your presentation skills during Devoxx conference and, in 2008, I had the privilege to present 3 Quickies about my Open-Source projects.

Masoud Kalali announces that his Using XML in Java refcard is available for download as free as speech. "If you are new to using XML in Java then this refcard is definitely for you. It discuss XML utilization in Java along with performance comparison of DOM, SAX and STAX, validation, XSD, DTD, Xpath and general XML descriptions."

In today's Forums,tonhinbm needs help, because Query.getResultList() don't show database updates. "The problem is that the first time I execute query.getResultList() it reads data from database, but if database change after, I can't see that changes until I close or clear entity manager. Is there any way to force query.getResultList() reads data ALWAYS from database without clearing or closing entity manager."

davyp explains phoneME Advanced configuration in Re: No console output. "For my pMEA builds you need to install a command shell to see messages printed on standard out (pMEF CLDC has its own shell environment). Follow the instructions in the "Run phoneME Advanced" section at:"

V B Kumar Jayanti is asking for feedback on New Features in Metro Security, Trust and SecureConversation. "We would like to solicit your feedback/comments on the following proposed New Features in Metro Security, Trust and SecureConversation areas 1. Support for Password Derived Keys : 2. Issued Token Caching and Sharing, SSO among services : 3. WS-Trust Renew and Cancel Protocols : 4. Support for WS-Trust version 1.4, WS-SecureConversation version 1.4 and WS-SecurityPolicy version 1.3 : Please note that the review period is 1 week. Comments received after that may not be considered for this release."

Finally, jstansel has a suggestion for distro-specific installers, in Re: Java/Plugin installation on Linux. "You may want to check out the jdk-distros I know it's used by several distros including Debian and Ubuntu. The icedtea project is also used by several distros. In ubuntu this is used for the openjdk6 packages, which have a system installation / integration design nearly identical to the sun-java6 packages. In Linux it's generally better for a user to install using a distro package, rather than downloading from Sun, but I wouldn't hold my breath for the deployJava script to help with that."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Swing finally gets testable?  

Can't Find My Way Home Blog

Posted by kfarnham Dec 22, 2008

Parting shots from departing conference attendees

Last week it was Devoxx attendees casting whiteboard votes for proposed Java 7 language changes, this week, it's the attendees ofJavaEdge. In both cases, Stephen Colebourne has compiled the feedback and applied a little statistical analysis, provided today in JDK 7 language changes - JavaEdge votes!

These results are in more depth than the Devoxx figures simply because we could extract information about each persons preferences. For academics or statisticians theraw data is available in Open Office format.

So, the question is the same basic question as we asked at Devoxx, but with a different selection of changes to pick from. The results show that 171 people voted correctly (starting from 1 for the first preference, 2 for the second and so on). Another 41 attendees voted mostly correctly, skipping one of the preferences (for example marking a 1st, 2nd, 3rd and 5th preference, but not a 4th). A final 113 attendees didn't follow the instructions at all, and marked multiple 1st preferences, multiple 2nd preferences and so on.

The results?

As with the Devoxx results, there is a clear winner - null handling. Null handling had 50 first preference votes, double that of second place string switch and almost a third of all first preferences. This trend continued with almost two thirds placing it in their top four.

Other popular options were String Switch, Multi-catch of exceptions, enhanced for-each loop for Maps, enhancing the for-each loop to be able to remove or find the index and ARM-style resource management.

In Java Today, Ed Ort and Carol McDonald offer the second installment of a tutorial on enterprise application development in a new SDN article, GlassFish and MySQL, Part 2: Building a CRUD Web Application With Data Persistence. In this article, "you'll learn how to develop a create, read, update, delete (CRUD) web application that uses GlassFish and MySQL. The application uses the Java Persistence API implemented in GlassFish to manage data persistence."

The Java TV team has released the Java TV API TCK 1.1.1, and its Reference Implementation and TCK Configuration Kit for Blu-ray Disc (BDCK) 1.1. The releases are available at the Java Partner website.

In today's Weblogs, Masoud Kalali says the end of Woodstock will lead to One suite of JSF components to rule them all. "Sun and ICESoft have teamed up to deliver one single JSF components suite for developers who uses NetBeans IDE developing their web applications."

Sergey Malenkov addresses the question How to lay out FX nodes? "It is typical to use absolute coordinates to position nodes in a simple JavaFX application. But what if your application becomes more complex? It is quite annoying to change the coordinates of several nodes if one of them changes its size. From Swing and AWT you can recall the mechanism of Layout Managers. Does JavaFX suggest something similar?"

Finally, Gary S. Weaver looks at Isolating Flow from Services, a blog which "qttempts to isolate the flow layer from the services layer to better prepare for changes in how flow is handled in your application."

This week's Spotlightis on the two-day Mobile, Media, and eMbedded Developer Days conference, "devoted solely to the technologies of mobile, media, and embedded Java platforms and is a unique opportunity for content developers of intermediate and advanced skill levels, platform developers, and technical experts at product companies, device manufacturers, and service providers to get introduced to open source Java ME, the community, and to join in and collaborate." The conference will be held at the Sun Santa Clara Campus Auditorium January 21 & 22, with a half-day LWUIT tutorial held the next day, January 23.

In today's Forums,maffeis provides some ME developer feedback in the thread Re: Java ME EC topics. "Having rolled out several "live" Java ME projects over the past years, those are some of the most annoying issues we found: - Code signing: some of our solutions require that, and its a *nightmare*, especially on Motorola devices. If at least all the new devices would support Verisign and Thawte code signing certs. And I don't want to be obliged to go through JavaVerified. - Lack of decent UI widget set. LWUIT is a step in the right direction, but still not tested/verified on enough phone models, and too heavyweight (not something "light-weight"). - Inability to detect device model information via microedition.platform system property, on many devices. - Inability to determine phone number of inserted SIM, - Limitations in max. RMS size etc. - Annoying bugs, some of them very stupid. Makes you wonder whether the device vendor has ever run any MIDP regression test suite."

flsobral could use some hard numbers to back up an argument over Applets and JDK version. "My boss insists in keeping our code 100% JDK 1.1 compatible because he thinks there's still many browsers out there using it. Is there any kind of study or statistics about this matter? I understand my boss' view, but being limited to 1.1 sucks. Maybe I could convince him to change this policy with something to back me up, or maybe he is right and there's something that proves his point. Of course I'd love to use a newer JDK, but if he's right, I would feel better about being stuck with 1.1 if I had some numbers to prove it."

malm asks fellow members How to get started developing WSIT enabled web service client. "Here is my problem: I need to develop a web service client that talks to a web service provided by a government authority. The authority has provided me the WSDL (not containing any WS policy stuff) and a statement saying the service I have to talk to requires WS-Security username/passwords and RSA signatures but no encryption. After pressing for further details I was given a sample XML (at the end). Now I am stuck how to proceed."

cf126330 explains non-spec'ed issues in Re: deployment order in glassfish. "The deployment order of various modules are not specified one way or another in JavaEE. GlassFish happens to always load rar before ejb jar, since usually ejb modules may depend on rar modules. The specific dependencies in your app is best managed by your app itself, either at business logic level or app configuration / deployment level."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Parting shots from departing conference attendees  

Wild Hope Blog

Posted by kfarnham Dec 19, 2008

ME developers assemble their wish list

Where is Java ME going in the very turbulent mobile market? On the one hand, you have all the activity coming from the iPhone camp and its reenergized rivals, and on the other hand, the Java world seems to have multiple stories: ME, JavaFX Mobile, and the idea pointed out by James Gosling last year that the mobile device is increasingly capable of running Java SE.

Let's reorient that question: where do developers want ME to go? A year ago at the Mobile and eMbedded Developer Days, we discussed fragmentation and the use of app-signing as a means of enforcing handset-makers' and carriers' business models. One carrier representative even scoffed at the idea of the indie developer making a difference from his or her basement. 300 million iPhone App Store downloads and a few bedroom developer millionaires later, the lie has surely been put to that argument, and it's hard not to see a massive, massive missed opportunity in denying ME developers access to the end user for all these years.

If ME is to have a bright future, then maybe it's time to start listening to developers, the ones who've been saying for years they want solutions to the obstacles that separate them from end-users.

ME developer Sean Sheedy calls for a discussion to set the ME developer agenda in his forum post, Java ME EC topics:

On the JCP EC (Executive Committee)'s email reflector, we are talking about carving out time during January's face-to-face meeting for topics specific to ME, including fragmentation, governance, platform direction, etc, with the idea being to turn ideas into action. I have my own ideas on what's needed, and plan to raise issues that have been stated previously. But the EC needs to hear what's on the mind of the general developer community, especially in light of newer mobile development platforms on the scene. What topics do you think the EC should be addressing?

Speaking of hopes, dreams, and disappointments, the latest Poll asks "Which of these excluded-from-Java-7 features were you most interested in?" Cast your vote on the front page, then visit the results page for current tallies and discussion.

Also in today's Forums,kirillcool complains about the ineffectiveness of filing bugs on the Bug Parade in his followup, Re: Performance regression in 6u12 b02. "Which reminds me of another conspiracy theory that i frequently revisit - that the only way to have an issue fixed is to have it submitted to bug parade by the member of the relevant internal development team just before he / she intends to fix it. I stopped submitting issues about two years ago when three consecutive reports were not even acknowledged and never made it to the public site. I believe that this specific theory is shared by many people."

demonduck wants to see Java Make OpenGL (JOGL) standard in plugin2.... "I am not sure of the plans for OpenGL (JOGL) for the JRE and plugin2 but I think -- given what I've seen on my machine -- that OpenGL as a general purpose API for graphics is a big win. It blows the socks off Java2D. I would like OpenGL (JOGL) to be a standard library for the JRE."

It's not clear what veerasek is trying to do in seeking to Convert XML File from HTML file using java, but maybe you can help figure it out. "I would like to convert XML file from HTML file using Java. If anyone of you have sample code please share with me. Your suggestions greatly appreciated."

In Java Today, the Call for Papers for the JavaOne 2009 conference ends Friday, December 19, at Midnight. "The 2009 JavaOne Conference content will be organized across four broad, high-level areas which capture the major dimensions of activity and attention around and within the Java platform:" Rich Media Applications and Interactive Content, Mobility, Services, and Core Technologies. Approved speakers can expect to be notified by the second week of February, 2009.

Kirill Grouchnikov profiles one of the most prominent end-user Swing applications in the discussion Java desktop spotlight - interview with Sam Berlin of LimeWire. Sam discusses LimeWire's purpose and its remarkably long history, the choice of Swing for its GUI and his opinions on it, what he thinks of JavaFX and the prospect of using it for LimeWire in the future, and how Swing would need to change to be more useful to today's designers.

OpenGL is famous for its teapot, so JavaFX has... a cuppa joe? In the 2D graphics tutorial JavaFX Coffee Cup, technical writer Scott Hommel writes, "I came across this article, which builds a 3D coffee cup using a freeware vector graphics drawing program called inkscape. Having a limited GUI background, this was exactly the kind of breakdown that I needed. It explained how to make "3D" looking objects from basic 2D shapes, filled in with various color gradients. The challenge to myself was to basically "port" their tool instructions to equivalent calls in the API. By the end of the afternoon, I'd made this cool looking cup."

In today's Weblogs, Cay Horstmann discusses how to take Baby Steps with JSF 2. "There are several blogs that tell you how to do fancy things with the upcoming JSF 2 (such as the excellent blogs by Ryan Lubke and Jim Driscoll). In this blog, I look at the other side of the coin--how the simplest things are working out. After all, if Ruby on Rails has taught us anything, it is that a technology that makes the simple things simple has a great shot at getting developer mindshare."

John Ferguson Smart writes, "This is a short article I wrote for the Devoxx conference, and which appeared in one of the Parlays magazines that was distributed during the conference." Check it out: Boss, we need a new build server.

Finally, Binod's SailFin: Record-Route issues with SIP "explains how SailFin handles the record-route issues when the proxy is serving endpoints using different transports."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

ME developers assemble their wish list  

Someday We'll Know Blog

Posted by kfarnham Dec 18, 2008

Questions about JavaFX getting a complete spec, a roadmap, an open-source release, and more

Is this the "Now What?" moment? With JavaFX 1.0's release now a few weeks behind us, people are asking where we go from here.

Sun Client Software Group VP Jeet Kaul writes, "I have been getting a lot of great feedback on JavaFX after the launch and obviously a lot of questions too. Since people don't have the ability to walk across the hallway to question Jai, our PM for JavaFX, and get questions answered; I will do that here." In JavaFX - the road ahead, he addresses questions about publishing an open spec for JavaFX, an open-source implementation, a detailed roadmap, public bug-tracking, the FXD format, Swing dependencies, media codecs, Linux support, and more.

Also in the Java Today section, there's more advance information for attendees of the Mobile, Media, and eMbedded Developer Days: Roger and Terrence have just published newsletter #2, spotlighting speakers Chen Fishbein and Yoav Barel, along with the half-day LWUIT tutorial that's also the topic of Java Mobility Podcast #64. They also asked us to point out a Mobile Developer Survey created by Dr. Albert Lia from the Carnegie Mellon CyLab Mobility Research Center.

Bruce Eckel looks to deflate some of the more optimistic among the Java community in his Artima editorial Will Open-Sourcing Java Remove Competetive Corporate-Think? Arguing that the community remains dominated by Sun and its corporate needs, Bruce writes "open-sourcing Java is not going to make it an open-source project. The culture that has built up around Java for over ten years is not going to change just by moving to a new license. A truly open-source programming language does not have shareholders to serve. It can only serve its actual customers, the programmers who are consuming the language."

The latest Java Mobility Podcast is Java Mobility Podcast 64: LWUIT Half Day Tutorial, in which Jonathan Knudsen talks about the LWUIT and the LWUIT Half Day Tutorial that he and Chen Fishbein will be giving the day after M3DD.

In today's Forums,jseltzer speaks up for JavaFX in the reply Re: Sleeping with the enemy. "I appreciate everything Sun is doing in the Java space. I love Swing and I'm busy trying to learn JavaFX. I'm not worried about one replacing the other. I'm also not oblivious to Sun's current condition. No one should forget that Sun is trying to do with 150 employees what Microsoft does with 15000 employees. Sooner or later things get stretched thin and some things get less attention than others. That's just the way it is. Frankly, I'm amazed how much those 150 developers manage to accomplish."

trembovetski addresses Swing performance testing inRe: Performance regression in 6u12 b02. "There was some reason for why we can't open source Swingmark, I forget what it is. We did consider adopting new benchmarks for Swing since SM is very limited, but never had the time to either develop a new one or evaluate the existing ones. May be we should now. Basically we need to convince someone from the Swing team to take ownership of this task, evaluate and adopt/integrate the benchmark into our performance testing framework. "

SueAnn Spencer announces that a v3 Prelude Quick Start screencast is available. "The screencast for the v3 Prelude Quick Start Guide is now available. This video, which demonstrates key features in v3 Prelude, is a good place to start to learn about the basics of this release. Watch it here. The screencast is also available on Sun's Mediacast sitehere."

Continuing a remarkably shameless "do my homework" thread from yesterday, brahms demands an answer-check in Re: some exam questions. "i already know the answers however am not to sure if i am right. so all answer theses questions and if i am wrong please let me know."

Sergey Malenkov offers a JavaFX demo applet in today's Weblogs. In How to rock around the clock?, he writes, "JavaFX has been released recently and now many beginners google on how to start programming. Let us consider a very simple example of drawing a clock face in JavaFX."

Sebastien Dionne shows off some JSP tricks in DisplayTag : Create a html grid within five minutes. "DisplayTag supports sprt, [agination, and export to xls, csv, and pdf. I'll show you how to use it to replace your own table."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Questions about JavaFX getting a complete spec, a roadmap, an open-source release, and more  

Few Days Down Blog

Posted by kfarnham Dec 17, 2008

The new Date & Time API needs to make up some time

Yesterday's blog brought the unhappiness by linking to a summary of Mark Reinhold's Java 7 roadmap at Devoxx, which indicated that JSR 295 (Beans Binding) is one of several features that have been ruled out for Java 7.

Not on that list, but apparently in some peril, is JSR 310, the new Date and Time API. In a new post, Alex Miller tells the Javalobby readership that JSR 310 Needs Help! "JSR 310 is the new updated date and time library which could be added in Java 7. However, it's currently running behind for inclusion in Java 7, according to spec lead Stephen Colebourne. Because other specs (like JDBC and NIO) will have dependencies on JSR 310, it's important for it to get locked down early."

If you don't like the current Date andCalendar, Alex suggests you join's JSR 310 project and help out.

Also in Java Today, organizers of Java Mobile, Media, and eMbedded Developer Days have posted newsletter #1 (PDF), the first in a series counting down to the January 21-22 conference. This issue introduces keynote speakers Eric Klein and Jon Bostrom, and highlights the planned Wednesday evening brainstorming session.

The "everywhere" in "write once, run everywhere" doesn't just mean platforms, it also means locations. In the SDN's Report from Africa: Regional Challenges and Opportunities for the Java ME Platform, J.D. Moore of Nokia and Daniel Orwa Ochieng of the University of Nairobi explore "the opportunity, value, challenges, and practicalities of developing mobile services for "the next billion users" in one of the most exciting emerging markets: Africa."

Today's Weblogsstarts with an interesting piece by Kohsuke Kawaguchi on Introspecting generified classes. "This post is a little introduction of the reflection of generics in Java, and how my little library would help you do this."

Ever wondered How to compile on the fly? Sergey Malenkov writes "A PropertyEditor interface provides support for GUIs to enable editing a property value of a given type. The interface supports a variety of ways to display and update property values. One of these ways is to employ the string representation of a Java code fragment that can be obtained by getJavaInitializationString, the method all standard property editors implement. To test this feature, one could generate a source code with a method that returns a required string, compile the code, run the class, and verify the value. This is quite easy to do with the Java 6 Compiler API."

In today's Forums,kbr reports on a bit of 6u11 breakage in Re: Firefox Extensions and LiveConnect Security Policy. "The "Java Console" menu option isn't working yet with the new Java Plug-In, though we aim to make it work again in a future update release. For the time being, if you're on Windows, you can use the Java system tray icon to open the console. On other platforms (or on Windows as well), use the Java Control Panel, Advanced tab to select "Show Java console"."

kleopatra continues the discussion of where Swing development goes from here, in Re: JSR295 (beansbinding) is dead, or so ... "My point is that principally it's a good idea to tackle Swing2 - provided power and flexibility is conserved and evolved, I don't care about the cage it's sitting in - just don't pretend it's anywhere near, neither right now nor in a foreseable future. BTW, an interesting side-effect of the planned modularization in jdk7 might be the potential for slacking on the backward compatibility, as clients can pull-in whatever version they need (at least that's how I understood a fellow developer's explaination on the flight back to Berlin)"

If you're keen to do someone's homework for them,brahms has posted some exam questions. "can some1 please help me with these exam questions i have a test in a couple of days and the teacher has decided not to put solutions for the answers any help would be appreciated thanks. i will post more questions later."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

The new Date & Time API needs to make up some time  

Only Hope Blog

Posted by kfarnham Dec 16, 2008

Want binding? Learn JavaFX Script.

Another case of JavaFX == Swing 2.0? Apparently, Mark Reinhold announced at Devoxx that JSR-295, Beans Binding, won't be in Java 7. Over in the forums, we find dagslamenting this, in JSR 295 (beansbinding) is dead, or so...

I saw today a post in beansbinding mailing list saying that beansbinding was dropped from JDK7, so it seems it is almost dead, after more than a year without any news.

I don't understand Sun's plans.

So what does this have to do with JavaFX? Well, considering that JavaFX Script was built to support binding, maybe it's not a stretch to think that someone, somewhere decided that it's more practical for developers to adopt the built-to-bind JavaFX, than to try to bring the feature to Swing apps.

Does the analogy fit? And if so, do you agree with the idea? Is it better to push binding-craving developers into JavaFX, where it's more natural, or to get the feature where the developers still are, which is Swing?

Speaking of JavaFX, in the Java Today section, Streaming Media magazine's Sun's JavaFX Sets Out to Challenge Flash and Silverlight takes a look at JavaFX 1.0 from a perspective that Java developers may not have considered: the platform's appeal to creative professionals. They note, "these tools are part of what Sun calls the JavaFX Production Suite. The Production Suite contains JavaFX 1.0 Plugins for Adobe Illustrator and Photoshop, enabling content created or opened in these Creative Suite 3 or 4 applications to be converted to the JavaFX format. In addition, Sun has the JavaFX 1.0 Media Factory, which contains a graphics viewer to display any JavaFX-format graphic as well as an SVG convertor, which converts files from the Adobe-based SVG vector format to JavaFX format."

Geertjan Wielenga bids A Farewell to Heavyweight/Lightweight Conflicts in a new Javalobby article. "Problems resulting from the mixing of Swing and AWT components have been a constant source of confusion to Java newbies. [...] But all that is old news, of course. The new news is that already with the early access release of JDK 6 Update 12 one can, without needing to do anything at all, obtain the desired effect."

The Aquariumannounces the next GlassFish webinar in Dec 18th Webinar - JavaEE 6 and Servlet 3.0. "Our next webinar is scheduled for Thursday, Dec 18th, 11:00 am PT. The topic is Java EE 6 and Servlet 3.0 and the speakers are the leads for the respective Expert Groups: Roberto Chinnici and Rajiv Mordani. The Public Review Draft for JavaEE 6 has not yet been published but those for most other specs have, including that of Servlet 3.0 (seeannouncement)."

Back in the Forums, Rory Fitzpatrick is investigating LWUIT's Performance on BlackBerry. "After some fiddling I've managed to get the demo application to run on a physical BlackBerry device. Issues like text input and soft keys aside, the biggest problem is performance. Most paint operations seem to be taking anywhere from 200ms (a guess based on perception) to 5s. I am testing with a Curve 8310, which research suggests has a 312MHz CPU, no idea on architecture or RAM, and LWUIT source from SVN revision 274 (I think, retrieved on 9th Dec). Changing the theme made a noticeable difference. The default Java theme wasn't great, the Star and Ocean Fish themes wouldn't even render correctly and had the worst performance, while the Business theme seemed to make a big difference."

demonduck revives an old argument by asking Isn't it time to build a plugin the allocates memory dynamically???. "Isn't it time to let go of the idea that Java needs to have the amount of memory an applet is going to run in specified at startup time? Isn't it time to construct a JVM/Plugin that will allocate memory dynamically on an as needed basis like every other piece of software on the planet? First, there's the default limit that is imposed on applets of around 96meg or less. That's not a lot of memory to start with."

Finally, Roger Brinkley helps out attendees for the M3DDs with some local transportation info in Re: Taxi Availability at M3DD site. "You could probably get a taxi from the front desk of the hotel to the conference site. Taxi from airport to hotel should be reasonable and easy to get. It's possible to walk it looks like it's just short of a mile, but I don't know that area very well so I'm not sure about security. You might ask the front desk"

Today's Weblogsbegin with Rajiv Mordani's Rebuttal of Greg Wilkin's Blog about Servlet 3.0 PR. "Someone just pointed me to Greg Wilkin's latest blog entry. I tried posting my response in his comments however it was tagged as spam and not displayed. So I am making the comments available here. I am REALLY surprised at this blog. Let me try to answer some of these questions in the public forum."

Finally, Jim Driscoll returns with JSF 2.0: Wiring up buttons in a component. "It's been awhile, but I want to come back to the switchlist example that were the focus of my last two technical posts. This time, we'll take the basic switchlist, and put it into a composite component. The interesting bit will be how we get those two buttons working..."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Want binding? Learn JavaFX Script.  

Crush Blog

Posted by kfarnham Dec 15, 2008

Was everyone crammed into the auditoriums at Devoxx?

With everyone working their way home from Devoxx '08 (né Javapolis), we're inundated with a variety of blogs, impressions, revelations, and brain-dumps from the crazy-popular Antwerp conference.

Danny Coward is generous with the links in blog wrapping up the activities of Sun's JavaFX and JDK people at the conference, From Devoxx: JavaFX on show, JDK 7 News. "Closing out a busy week here at Devoxx, the release of JavaFX and JDK 7 news have been the talk of the town! Kicking off the official conference part of Devoxx, your very own Janitor gave the first keynote (slides here) counting down the top 10 things about JavaFX you need to know. JavaFX team-Devoxx: Richard, Martin,Josh and Jasper showed four JavaFX applications, built with the 1.0 release."

Read on for more about sessions, JavaFX Mobile questions, and all the angles of the roadmap to JDK 7.

Danny also mentions the ever-present whiteboards at Devoxx, and in Java Today, Stephen Colebourne has compiled the whiteboard voting from Devoxx '08into a pair of blogs tallying attendee opinions. In a post on JDK 7 language changes, he breaks down the votes on proposed changes from properties to a multi-exception catch. Participants were asked to rank their choices from 1 to 8 on this poll, so Stephen analyzes the data by first-place, second-place, third-place, and all votes, to get an idea of the relative importance of the features. A second blog tallies more poll-like questions: interest in JavaFX, testing framework choice, REST vs. SOAP, IDE, VM version, and more.

In a recent SDN roundup article, Top Java Developers Offer Advice to Students. "Since 1999, writers have interviewed Java developers from diverse backgrounds and solicited their advice for students. In this article, 11 top Java developers share the fruits of long experience." Among the nuggets of wisdom, author Joshua Bloch says to "write lots of code", NetBeans developer Tor Norbye recommends learning to really use your tools, Ben Galbraith suggests interacting with an expert, and GUI guy Chet Haase says, seriously, "Don't Put Your Entire Application in One Method".

More Devoxx wrap-ups top today's Weblogs, starting with Joshua Marinacci writing about JavaFX at Devoxx. "I'm in the London airport awaiting my flight back home. After an exhausting week at Devoxx it will be good to be home and on vacation until the end of the year. And what a year it has been."

Also from Devoxx, Felipe Gaucho and The smallest ATOM feed in the world. "I introduced the smallest atom feed in the world during Devoxx 08 - what means you can publish Atom feed without external libraries. I included a Grizzly example to publish the atom on the web."

In other conference news, Terrence Barr preps attendees for Mobile, Media, and eMbedded Developer Days with the update Conference count-down: Only 6 weeks to go. "Only six weeks (well, actually even less) to go until the Java Mobile, Media, and eMbedded Developer Days conference (Jan 21-22, 2008)! Like for the previous conference we'll be sending out weekly countdown newsletters to talk about specific highlights of the conference."

In today's Forums, Chen Fishbein updates the LWUIT release roadmap in the reply Re: Is the new source code available ? "We will update the august release hopefully in a week or two, in the meantime you can use the svn and access the code directly."

thorsten_s has posted a Blackberry implementation for LWUIT. "I have been working on a Blackberry implementation that could be used as an alternative to the default MIDP GameCanvas implementation. I know that the default implementation does work fine on a Blackberry. Unfortunately it does not give an option to make use of the Blackberry keys such as the Menu key and the Back(Escape) key. To address this you would have to use of the Blackberry UI classes which in turn requires to write a Blackberry CLDC application instead of a MIDlet. While this requires you to build more than one jar, this does have a few advantages, too. Anyway, it's good to have the choice. The sources are provided AS IS, they are not complete and are not completely working, yet! You are invited to help out here."

imperfect is looking for strategies for creating aRepeating job in J2SE/J2EE without using TimerService/Quartz???"I want to create a library to perform some tasks, say to refresh a cache, to echo a string "hello" every 10 minutes (no transcation/persistence required). Other projects include and use the library WITHOUT ANY configuration. I don't want to use TimeService (can't run in j2se) as my library don't have session/entity bean and it is packed in a jar file for distribution. (no server-specific deployment descriptor). Some other library Quartz seem need to create some configuration (e.g. set servlet in web.xml...etc). My library is a simple one, i don't want to depend on so much external library or to complicate in deployment. just add to classpath and go."

Finally, jaywayjohan has a suggestion for figuring out device orientation in Re: motion sensor. "Have you tried the Mobile Sensor API? The API gives access to the motion sensor(s). This might do the trick. For more information about the API: On some phones it is possible to read a system property to find out if you are in landscape or portrait mode, but this is a less portable solution."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Was everyone crammed into the auditoriums at Devoxx?  

Hey Scenesters Blog

Posted by kfarnham Dec 12, 2008

Come for the M3DDs, stay for the LWUIT!

Here's an interesting announcement from the Mobile & Embedded Community, especially if you haven't booked your travel for theMobile, Media, and eMbedded Developer Days in Janauary. The Lightweight UI Toolkit (LWUIT) team has announced half day tutorial to take place the morning after the M3DDs conclude, in the same location.

"Sun is pleased to announce a half day tutorial on the Lightweight User Interface Toolkit (LWUIT), an advanced user interface toolkit for MIDP 2.0 devices. This practical, focused tutorial for content developers will be led by Chen Fishbein, architect of LWUIT, and Jonathan Knudsen, developer and author. [...] The tutorial will provide a broad practical knowledge of LWUIT, including the use of forms, transitions, components, touch screens, themes, the resource editor tool, and advanced topics."

Hopefully, M3DD attendees haven't booked a flight out yet. If not, maybe it makes sense to stick around until Friday afternoon.

Also in Java Today, The Aquarium reminds us that Grizzly 1.9 is out: "If you've missed the announcement, read Jean-François' announcement. Asynchronous I/O, a new HTTP suspend/resume API, and Comet performance improvements are among the major new features. This 1.9 version is important to GlassFish v3 because of the central role of Grizzly in the new modular architecture and because it will be used in the mid-2009 GlassFish release. A fairly simple 150-liner servlet to implement a full-duplex async Twitter application (steps, code). Speaking of Twitter, make sure you follow the bear."

A key part of the promise of JavaFX 1.0 lies in JavaFX media technology, which is designed to simplify the integration of audio and video media into applications built with JavaFX 1.0. JavaFX makes it easy to integrate video, audio, graphics, animation, and rich text. It also supports cross-platform codecs and native video formats. In Encode Once, Play Anywhere: An Interview With JavaFX Media Lead Engineer Tony Wyant, Janice J. Heiss interviews Tony Wyant, Sun's lead engineer for JavaFX media, to get an understanding of where JavaFX media might take us.

The latest Poll asks "What do you think of Java 7's "Project Jigsaw" plan to modularize the JDK?" Cast your vote on the front page, then visit the results page for current tallies and discussion.

Fabrizio Giudici checks in from this week's Devoxx conference in today's Weblogs. InJavaFX, Flex (or: Stephan Janssen and friends are the men!), he writes, "I feel as I'm obliged to post at least one entry about this conference. I've chosen a talk that could probably the most valuable to software architects in these times of uncertainty about what technology to choose for RIAs: JavaFX? Flex? AJAX? Others?"

Kohsuke Kawaguchi writes about Hudson adoption updates, specifically "two recent good news [items] that made my day."

Osvaldo Pinali Doederlein has posted Ten Questions for Java FX. "Java FX 1.0 was released, with the Mobile version in beta. I was very positively impressed, and I want Java FX to succeed. So, congrats to the whole team at Sun, but let's not waste any time... Follows a critical evaluation of this new Java platform, with my top-10 Requests For Clarifications Or Enhancements."

In today's Forums,wzberger has concerns about Non-opaque window performance. "There seems to be a performance issue for non-opaque windows (Java6u10 or above). The test case below demonstrates the issue. As soon as the mouse moves over the button the red panel will be repainted. Is this the correct behavior or is there a way to minimize repaints? If the window is opaque everything works fine. Unnecessary repaints are a big problem for real apps with many components because the whole app performance slows extremely down."

tails9 would like to Make JXTable column editable, but not for user. "I have a JXTable with an overridden isCellEditable so I'm able to determine what cells the user is allowed to change. When I use setValue() on the table though, the program is not able to change values when the cell is not editable. This is no problem when done via the model. This was not the case in JTable. How can I make a cell not editable for the user, but editable for the program?"

nnnzzz is looking for a strategy for connecting java and .net. "I am new to java, and wondered what would be the best way to communicate between java application and .Net application. Any ideas are most welcome!"

Finally, anqingxu asks, "Is Toplink Essentials caching good for clustered environments?" "Since Toplink Essentials does not support distributed caching, it will be problematic in a clustered environment. Am I right? Potentially you will get stale data out of the cache in some nodes in the cluster. Does this mean Toplink Essentials is not ready for clustered deployment?"

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Come for the M3DDs, stay for the LWUIT!  

I'm A Realist Blog

Posted by kfarnham Dec 11, 2008

You can get Java in how small a space? Really?

"I would like to see Java running on something that has 16K of flash memory and a few bytes of RAM."

Um... what? The average Java developer doesn't think twice about allocating buffers larger than that. A lot of Swing widgets have 32-bit ARGB back-buffers bigger than that. You're seriously going to fit meaningful code in that little space?

The quote is from Eric Arseneau, principal investigator on Project Squawk, which seeks to bring Java to small, resource-constrained devices. Eric explains his mission in the latest of Sun's series on Contrarian Minds, entitled Go Small or Not at All.

"People get excited about a couple billion cell phones. Well, there's an implied limit to cell phones. Most people only have one [...] I'm trying to go one or two orders of magnitude beyond that. I'm trying to get Java into the things that are all around you that you might not even realize have some kind of computer in there."

The article discusses Eric's re-orienting Squawk from delivering a micro JVM in Java to creating a Java "execution engine" that can live in small spaces. Or, perhaps, running many small things in some very big spaces, like multi-core servers:

"The fact that resources have gotten cheaper does not mean that you have to use them up. The fact that they've gotten cheaper means you can do more. It doesn't mean you have to be lazier about creating your applications and not worrying about resources. You should still worry about them. Maybe not as much as you would in a resource-constrained environment, but you should think about these things -- and people don't anymore. [...] One of the purposes of a big server is to run as many processes as possible. Well, if you want to run many processes on a CPU, you need to take extreme care about how many resources you take up. The more resources you take up, the less processes you're going to be able to run on a single machine. But people have lost that mentality. They just assume that because they've got gigabytes and gigabytes of RAM, they never have to worry about it. It's turns out that's not quite true."

Could resource-sensitive ME-and-smaller developers make better enterprise developers? It's a remarkable hypothesis. What do you think? Post a comment and let us know.

Also in Java Today, Vita Santrucek's blog offers a peek at Java 6 update 12 and notes major features planned for the release, including a 64-bit plugin, lightweight/heavyweight mixing, Windows Server 2008 support. "Now the best part - all of these features have already been integrated in the early access builds. You can check the latest (b02) one out on the portal, or directly at the download page - The plan is to publish all builds until the GA (General Availability) release, so check back often for new builds."

A new patch for the NetBeans IDE 6.5 is now available on the Update Center. The patch includes fixes in modules for Auto Update Services, Ant, BlueJ Project Support, C/C++, Database, GUI Builder, GlassFish v3 Prelude, GlassFish v3 Prelude - JRuby, IDE Platform, Java, Java EE, Web Applications, Java Profiler, NetBeans 6.5, PHP, Platform, RESTful Web Services, Ruby and Rails, SaaS Services Support and UML. More information on the 62 fixed issues is avaialble on the NetBeans 6.5 Patches Info wiki page.

In today's WeblogsAlexey Ushakov introduces JWebPane project, a browser plugin for Swing and soon FX. "I'm the tech lead of the new JWebPane project, a browser plugin for Swing and soon FX. We showed a preview this past JavaOne that was well received, and I wanted to give everyone an update on where we are."

In his first blog, Sourath Roy explains Java SDK for TV, offering a "discussion on available SDKs for developing Java applications for TV. Talk on the upcoming ones from Sun Microsystems."

Finally, Rajiv Mordani explores Asynchronous support in Servlet 3.0. "After the last couple of entries I have gotten requests for more details on how the async works. So I decided to write this up in a blog to share what the async support looks like in the Servlet 3.0..."

Today's Forums begin with a Request for comments on "dynamic reconfiguration" from Fabian Ritzmann. "I would like to solicit your feedback/comments on a one-pager document describing a new feature for Metro 2.0: DynamicReconfigurationOnePager. Please note that the review period is 1 week. Comments received after that may not be considered for the Metro 2.0 release."

tmjkeeney doesn't get Clustered Timer Service Behavior in GlassFish. "I've read that EJB timers can be clustered in Glassfish by configuring a central database for the timer state; however, it is not clear to me how the timer service behaves in a cluster. Does the timer service run only on a single "master" node in the cluster such that the timer callbacks are executed on 1 cluster instance only, or is the timer service distributed such that callbacks are balanced across nodes in the cluster? Either way, I assume a timer expiration only occurs once across the cluster so we don't have the same timer callback invoked more than once across the cluster, right?"

Fabian Ritzmann explains how to opt out of unnecessary transaction support in Re: Web Service Client and Server unable to communicated over separate boxes. "EJBs by default have the transaction attribute set to REQUIRED. The web service code is picking that up and adding the transaction context to the SOAP message. You can disable transaction support by setting the transaction attribute e.g. to NOT_SUPPORTED. See here for more on transaction attributes."

Finally, Shai Almog reiterates care and feeding of LWUIT's event-dispatch thread in Re: How to use a Dialog as a "Now loading" screen? "If your call is on the EDT and you don't have a transition there will be no problem since show() should be synchronous on the EDT. If you are not on the EDT you can just loop and wait for Display.getInstance().getCurrent() instanceof Dialog."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

You can get Java in how small a space? Really?  

One day left on the CommunityOne CFP

It wasn't that long ago that we were pointing out the novel announcement that a second CommunityOne developer conference would be held in New York in March 18 and 19, in addition to its traditional San Francisco incarnation preceding JavaOne on June 1-2. But this is December, and March isn't that far off, so we're fortunate for a key reminder from the forums: it's submit it or forget it time for would-be C1 speakers.

Paul Sterk has details in his post 

Reminder: CommunityOne - Call For Participation.

Reminder, the deadline to submit your session, panel or lightning talk is fast approaching. Share your knowledge. Speak at CommunityOne 2009 in New York and/or San Francisco. Submit your application by Thursday, Dec 11th.

In 2009, CommunityOne will focus on the free and open platforms, tools and services that can be found powering the Internet, running enterprises, and enabling high-performance computing. We're open to all your ideas but are specifically looking for sessions on cloud computing and virtualization, dynamic languages and scripting (PHP, Ajax, Python, Ruby, JavaScript), databases (MySQL, postgreSQL), web and application servers (GlassFish, Apache), operating systems (OpenSolaris, Linux), mobile development (Java ME, Android, Symbian), and tools (NetBeans, Eclipse, Sun Studio).

Paul has more information in his original announcement blog, and of course, the official details are on the CommunityOne site.

Also in today's Forums,topcoder1 wonders which java mobile device to choose. "I need to write an custom offline application that will be able to sync with the pc to transfer its data. The app provides some data entry capability, then the user connects it to the pc and view these data i a desktop version of the app Which mobile device would be the best choice? I researched several mobile devices and not sure which one to choose? Gphone, BlackBerry smartphones, palm, or others? Which one provides the best interface for syncing with pc and proprietory data transfer?"

umesh_kacha asks How to change JMenu popup menu mouse event handling behaviour??? "I have designed one customized JMenu. At the time of clicking in menu item I dont want that popup menu should hide itself but at this time I want to add some menuitems inside popup and I want to update popup immediately. Same like Microsoft Word one Expand menuitem is there when we click on that item popup menu updates itself without hiding Please help. How to customize JMenu popup so that at the time of clicking any of its menu item it should not hide itself but is should stay there in menu."

gullet has some questions about the timing of Display.init() in LWUIT. "I recently updated the old (August) release of LWUIT to 274 and had a big issue with getting the System fonts in the resource file to initialize. I found that LWUIT can't create the System fonts unless the LWUITImplementation is initialized which is done upon Display.init(). Is this the intent? It means that Display.init() has to be called before loading the themes and resources, otherwise System fonts will not load. Am I missing something?"

The latest Java Mobility Podcast is Java Mobility Podcast 63: Sprint Titan (JSR 232 OSGi), which features Jon Bostrom of MobiNoir Consulting, who is currently engaged on the Sprint Titan Project, bringing OSGi to Mobile.

In Java Today, Kelly O'Hair has announced the availability of OpenJDK 6 Mercurial repositories. The seven repositories, created from the TeamWare workspaces and a set of patches and documentation on those patches, are experimental and read-only, with official repositories expected next week. Kelly's post has specific caveats about changesets made in the interim. If you're interested in checking it out, see the OpenJDK Developer Guide for more information on how to setup Mercurial and the forest extension

The Aquariumreports that a release candidate of the multi-lingual version of GlassFish v3 Prelude is now available. "Ming Dong reports that the Release Candidate localized (ML) builds are now available. Go to the Java.Net Download Page and check the column labeled "ML" in the first table. Sun provides translations into French, German, Spanish, Japanese, Simplified Chinese, Traditional Chinese, and Korean, but we encourage your participation if you want other translations - check out the Localization Site and the Contribution Page."

Writing for JDJ, Joe Winchester wonders Should Java Assert that Network I/O Can't Occur on the UI Thread? Inspired by a JavaOne demo that failed because slow I/O froze the UI, he writes "a colleague of mine who was watching the demo suggested that the Java language should assert that network I/O cannot occur on the user interface thread. At first I thought this kind of extreme, but the more I thought about it the more sensible it seems."

Felipe Gaucho writes about Footprint BRU released during Devoxx 08 in today's Weblogs. "I just finished my presentation on Devoxx 2008, a Quickie to introduce the features of the new release of the Footprint Project."

Also from this week's big Java conference in Antwerp, Jean-Francois Arcand's Missing JavaPolis/Devoxx: Follow Grizzly, GlassFish and Atmosphere live on offers "live updates on Grizzly, Atmosphere and GlassFish by following us using Twitter."

Finally, Carla Mott shows off Adding custom handlers to GlassFish v3 loggers. "In this blog I will describe how to add custom handlers to GlassFish v3 Prelude."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

One day left on the CommunityOne CFP  

Our Bovine Public Blog

Posted by kfarnham Dec 9, 2008

Bite-size changes for Java 7

Remember when it seemed like the only thing we knew for sure about Java 7 was that it would have closures? Wasn't there talk about not setting a Java 7 date until there was a firm closures proposal? I seem to remember us asking you guys and gals if that was a good idea. But now with Java 7's re-orientation around a modular JDK, and the setting of a 2010 target date for Java 7, it seems like the logjam that's held up planning for what can and can't make the next major version of Java has burst open.

Almost the antithesis of closures, there are a number of little changes that developers have long sought in the Java language.switch on strings, a catch statement that can specify multiple exception classes, chained invocations... all good stuff that sometimes seems lost in the shuffle because they're not big get-the-updated-O'Reilly-book-type changes.

With Java 7's date now set and its agenda forming, these small language change proposals are getting pulled together into a single to-do that may well get done.

In the blog Coming Soon: A JSR for small language changes in JDK 7, Joe Darcy announces, "I'm happy to announce that I'll be leading up Sun's efforts to develop a set of small language changes in JDK 7; we intend to submit a JSR covering those changes during the first half of 2009. However, before the JSR proposal is drafted and submitted to the JCP, we'll first be running a call for proposals so Java community members can submit detailed, thoughtful changes for consideration too." Joe has proposed an OpenJDK project to host discussion and implementation of the changes. Stephen Colebourne has posted some changes that might make the cut, and points out that's Kijaro project already hosts a productive sandbox for language experimentation.

In Java Today, JavaFX engineer Josh Marinacci has posted A Note on Media in JavaFX, addressing JavaFX 1.0's support for dynamic media and where the platform is heading. "Head over to the Samples section to check out our media demos and see some of the players that we wrote. Then read the Media Browser Tutorial that will show you how to get started writing media apps. It's very easy to work with media in JavaFX. Even our marketing manager can do it!"

Unleash the JavaFX demos! Sun blogger morningstarkicks it old school with My First JavaFX Game: PAC MAN, playable as a WebStart application. "I recently spent some time in learning the JavaFX script programming. I was writing the classic game PAC MAN. Though it is still under development, 80% of the code is completed. People can play with it now. Source code will be released once I finish all the code."

In today's Weblogs, Cay Horstmann recounts What Worked for Our Blackberry Project. "After many weeks of labor, my software engineering class is ready to deliver our BlackBerry project to Cinequest, the organizers of the San Jose Film Festival. Moviegoers will be able to check the schedule on their Blackberry devices, see when their favorite films are playing, and find out about the latest special events. Running a real project in an undergraduate course turned out to be a huge challenge. Here are some of the key practices that made the project successful."

In Take the poll: Will you be attending M3DD?, Terrence Barr asks "will you be attending the Java Mobile, Media, and eMbedded Developer Days, January 21-22, 2009? Please take our poll. Cheers, -- Terrence PS: We've added more Lightning Talks and updated the talk abstracts. Check it out."

Finally, Gary S. Weaver considers The Interaction-Flow-Service-Model Architectural Pattern. "There is one thing that I've overlooked until today, which is the importance of the division of the controller into application "flow(s)" and application "service(s)""

In today's Forums,balaarjunan asks about JavaFX's suitability for offline deployment in JavaFx - Desktop application. "I am planning to create a desktop application using JavaFx, the application should run offline, all the process will take place in the offline mode and once I connect to Internet, it should update it there in my server. Is it possible to create an offline Desktop application using JavaFx, say for eg a mail client like outlook or thunderbird."

jslott's announcement Wonderland 0.5 Software License - Important Change should make it easier to extend Project Wonderland. "Beginning in Version 0.5, Sun has made a modification to the software license governing Project Wonderland. It will continue to be licensed under GPL v2 (as in 0.4), but we have added the "Classpath" Exception. In 0.5, we have better defined the module system and hope that everyone will extend the functionality of Wonderland by developing their own modules (which includes, among other things, custom cell types). In short, the GPL v2 + Classpath license will allow module developers to license their module code as they see fit. While changes to the Wonderland core libraries are still governed by the GPL v2 license terms, it is our eventual goal that everyone can develop the functionality they need in Wonderland by simply writing modules, and not have to modify the core libraries themselves."

abelmj expresses frustration with how GlassFish interacts with Swing clients, in Re: EJB3 Remote Referece Thread Safe? "I agree with you, this issue should be marked as VERY IMPORTANT, but the problem is that "we", the weird developers that use swing clients to JavaEE facades, are "alone in the dark", because "they" just consider that web clients should be used forever, so the CORBA between our clients and the EJB container will be buried well deep. I'm so sad and I'm really down, because I bet for Glassfish, but this issue is one year long, and we can wait no longer, so we're almost sure moving to other application server."

Finally, Eduardo Pelegri-Llopart has posted a Doodle poll on "second slot for TheAquarium Online". "We currently have a weekly slot for the TheAquarium online webinar (Thu 11am-1pm PT). This may not be enough: it is already scheduled until February, and I have two more that I want to squeeze in.< So, I need a second slot. We will not use it every week, but I want to choose a slot that works for as many people as possible. Thus, this poll. Please choose for a TYPICAL week, IGNORE the specific week mentioned in the poll. Choose ALL time slots that work for you. Please NOTE THE TIME ZONE."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Bite-size changes for Java 7  

Be Safe Blog

Posted by kfarnham Dec 8, 2008

The way forward for Swing, SwingX, and JavaFX

Chances are that many readers of the front page / editor's blog were following along last month as Kirill Grouchnikov argued that the de-funding of SwingX implied that Swing was now at a dead end, and said the handling of SwingX (and its painters feature in particular) destroyed developers' trust. It kicked off a lot of discussion, and a particular angst: that the demands of JavaFX were completely draining resources from every other Desktop Java project.

With JavaFX now released, Kirill has taken his questions to the source. In Java on the Desktop, the past, the present and the future - interview with Richard Bair, Richard Bair answers Kirill's questions on Swing, SwingX, JavaFX and Java on the desktop in general, while saving some of the announcements for the next week's Devoxx conference.

Richard explains the idea behind SwingLabs, the chances for some of its work to be incorporated into Java 7, what he would do differently, and his side of the story behind SwingX painters.

There's also an interesting exchange, that shows up even more prominently when you open Kirill's earlier posts in their own tabs. Back in Sun setting down on the core Swing, Kirill wrote:

I think that core Swing has become a victim to Sun's outdatedly rigid policy on the backwards compatibility. I have written about this topic in the Substance users mailing list a few weeks ago.

Keep that in mind as you read Richard's reply to Kirill's question about whether maintaining backwards compatibility has unnecessarily held back Swing:

No I don't. If you gave up backwards compatibility you'd have a whole other set of issues that are many times worse. The level of risk one developer is willing to take isn't the same as another. For every one person who wishes we'd ditch backwards compatibility there are another 50 that would be violently opposed when that advice rendered their applications (or development of future versions of their applications) inoperable. Especially with a technology as mature as Swing.

To those people who say we should make a Swing2 which is not backwards compatible, I would say, this is exactly what we're doing with JavaFX.

The idea that JavaFX is effectively Swing2 is an interesting one, and recalls the earlier argument that adding things like properties made more sense in a new language (e.g., JavaFX Script) than as another change to the Java language. But does that mean that Swing is frozen and JavaFX is the only future? Richard points out that JavaFX can be mixed into Swing apps and vice versa, so maybe that's not even a valid question.

In another discussion timed to coincide with last week's release of JavaFX 1.0, and featured in the Java Todaysection, Artima's Frank Somers interviews Sun's Octavian Tanase on JavaFX. "In this interview with Artima, Sun's Octavian Tanase explains how JavaFX helps designers and developers work closely together, and what types of applications JavaFX is especially suited for."

The latest edition, issue 186 of the JavaTools Community Newsletter is out, with tool-related news from around the web, announcements of a new community project, a reminder about the JavaOne Call for Papers, and appropriately enough, a Tool Tip on how to have a presentation accepted at JavaOne.

This week's Spotlightis on JavaFX 1.0, which launched last week, and about which you can find more information at There you can watch an introductory video(presented via JavaFX) from Sun's Eric Klein, check out some demos and samples, catch up with the team in the JavaFX Blog, and of course, download the SDK, optionally bundled with NetBeans 6.5. Also check out theopenjfx project on, for more news, demos, and information on JavaFX's open-source status.

Carol McDonald shows off a JavaFX RESTful Pet Catalog Client in today's Weblogs. She says it's "a JavaFX application that displays pet photos retrieved from a RESTful Pet Catalog app. This JavaFX example is a modification of the Interesting Photos : JavaFX Example Application."



Make a Little Noise Blog

Posted by kfarnham Dec 5, 2008

JavaFX for Linux and Solaris is coming. Chill.

OK, before the JavaFX stuff, Roger wanted me to make sure that I reminded everyone that Early Bird Pricing for Mobile, Media, and eMbedded Developer Days ends today. Not that $250 is too dear for a two-day conference packed with great speakers and peers, but $175 is a steal. We're talking, what, one-tenth of the price of JavaOne here? Roger writes, "This years conference features a Keynote by Eric Klein, VP of Java Marketing and a Mobility Roadmap presentation by Craig Gering, Director of Java ME Development. Following that will be 25 technical sessions that will equally cover implementations on phones, media (TV, Blu-Ray, Cable boxes) and embedded devices." In light of yesterday's JavaFX release, he also says that "the conference will be one of the first times for Mobile developers to hear what will be happening with Java FX."

And with that, on to the JavaFX 1.0 release. With server issues resolved, the full-blown site is back, and has attracted a Slashdot article. Predictably, /. griped that "the lack of a Linux or Solaris release is a notable absence", but then again, even James Gosling's giri-blog grumbled about that: "the Solaris/Linux release of JavaFX isn't ready yet, but you can suffer through using OS X or even Windows." And even /. had the sense to link to Joshua Marinacci's explainer blog, which begs a 10-second delay on the predictable "OMG! Why R U L1NUX H8RS! U R teh suck!" tweets to explain that while Linux and Solaris are part of the continuous build, they're not ready yet, whereas Mac and Windows are. And Josh leaves an interesting tidbit for those willing to read behind the lines:

So why didn't we drop those broken features and still ship the rest?

We thought about it but JavaFX means something. It means video and audio. It means accelerated graphics and animation. If we took out some features the it wouldn't really be JavaFX anymore. So we decided to let it bake a little longer until it's ready. It's that simple.

From that, you can infer what isn't working on Linux and Solaris, and some of those are things that have long been sore spots in the Linux community. After all, even Eric Raymond's proposals for turning around Linux's media irrelevance, as presented in 2006's World Domination 201, don't seem to have gone anywhere. Would holding up JavaFX on 98% of desktops in hopes that Linux will get its multimedia act together really be in the interest of Sun or Java? If so, hold your breath and think "everything should be in Ogg" over and over again until you get your wish. The rest of us have better stuff to do.

Indeed, it seems like all our bloggers have downloaded and started working with the JavaFX today, so we've given them the run of today's Weblogssection, starting with David Herron's JavaFX 1.0 is launched. "This is a big deal in some ways in that it is a radical departure from the past image Java has carried. Graphics and animation and media, oh my. Somewhere I heard this phrase This ain't yer dad's Java and it's accurate here. I've long thought if only we put as much attention into client Java as we have server Java that the whole thing would be in a whole 'nother league. We've finally done it, and I hope that we're not too late."

Don't think JavaFX just about running in your browser, either. As James Gosling reports in JavaFX 1.0 hits FCS! Come and get it!, "Every marketoid and blogger at Sun is going nuts with it. They tend to emphasis using it for building Rich Internet Applications - RIA has been one of the big industry buzzwords over the past year. But I've been building regular desktop apps with it, and it's great."

Finally, JavaFX engineer Joshua Marinacci talks about the long road to get to 1.0, in Goodbye Mr A. "So. After a year and a half of sweat and hard work JavaFX 1.0 is here. (Don't worry the next release will be here far, far sooner). Apparently the world was so eager to see JavaFX that it completely overloaded our server. We've got new stuff set up, though, so we should be good to go."

So, with all the interest in JavaFX, the latest Poll asks "Do you plan to try out the JavaFX 1.0 SDK?" Cast your vote on the front page, then check out the results page for current tallies and discussion.

Atop Java Today, we've put an announcement that we had to hide yesterday as the server got pounded by the throng of interested developers: "JavaFX 1.0 has launched at its home page, There you can watch an introductory video(presented via JavaFX) from Sun's Eric Klein, check out some demos and samples, catch up with the team in the JavaFX Blog, and of course, download the SDK, optionally bundled with NetBeans 6.5."

In other news, Kirill Grouchnikov's Swing Links of the Week for November 30 makes an interesting reference to Bug 6761033 in Sun's Bug Database. "Use NPAPI for Mac OS X port of new Java Plug-In", indicated as "delivered" for 6u12(b01), refers to a new "prototype of the new Java Plug-In for Mac OS X" that uses Cocoa, making it compatible with Safari but not Firefox. The evaluation suggests Sun "collaborated with Apple to redo the Mac OS X port of the new Java Plug-In as an NPAPI and NPRuntime plugin", and now works with Safari 3.1 and nightly builds of Firefox.

The latest Java Mobility Podcast is Java Mobility Podcast 62: Microlog , in which Johan Karlsson discusses Microlog, a small logging library for Java ME, with Terrence Barr.

In today's Forums,bjoern_minkmar has a suggestion for space-conscious BD-J developers in Re: How to determine amount of free space on Blu-ray Player hard disk. "Take a look at the class. It can be used to retrieve information about BUDA and ADA, including total space and free space available."

Bob Deen discusses where to get image codecs in Re: [JAI] JAI, JAI_ImageIO, or ImageIO ? "All three. Use imageio and more importantly the jai imageio tools to load images. There's a "codec" mechanism built in to JAI, but it's old and should not be used for new code. The new "imageread" (and "imagewrite") operators in the iio tools will help a lot. imageio itself is built in to the JDK, but iio-tools is something you have to download (separate from JAI, but you'll want JAI as well). You may not really need JAI for such a simple app but it provides a lot of capability which might be helpful."

Finally, GlassFish user achugh asks about a 403 access denied error when switching from localhost to machine IP. "I've recently upgraded an existing application that would earlier run on Sun One v7 update 5 to now run on Sun Java App Server v9.1_02. It runs fine over a domain created under the 'developer' profile. I am able to access the web applications from the browser, e.g. when I browse to http://localhost:8080/webapp. However, as soon as I or someone else tries it through the machine address, say -- I get a 403 access denied error after login."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

JavaFX for Linux and Solaris is coming. Chill.  

Truth Be Told Blog

Posted by kfarnham Dec 4, 2008

Taking it a little slow for JavaFX's launch day

OK, really late blog today. Bear with us, as we've been waiting for to settle in to a point where it can withstand the load of all the developers who have been anticipating today's release of JavaFX 1.0.

For now, you might want to check out some of the hooplaharound the launch, and check back on for a copy of the SDK once the crunch is over.

In Java Today, Danny Coward has posted the Top 10 Things To Know about the JavaFX launch. Among the key facts: JavaFX runs on multiple devices, is built on Java, is supported by NetBeans, provides both native media playback (DirectShow on Windows, Core Audio and Core Video on Mac) along with a cross-platform codec, offers a powerful scene graph, provides a production suite for Photoshop and Illustrator users to co-develop JavaFX projects, has a reach and deep set of APIs, and deploys itself via JNLP.

The Java Posse has snagged a special JavaFXlaunch-day interview, posted as Java Posse #220 - JavaFX Launch and Interview. The interview, with Sun's John Burkey and Octavian Tanase, covers JavaFX's relationship to Ajax, its cross-platform viability, whether JavaFX's development has affected SE or other Java development, why JavaFX needs its own new language, benefits of having a scene graph, the accessibility of JavaFX's libraries from other JVM languages, and the hard question of whether JavaFX can take on Flash, Flex, and Silverlight.

In today's Weblogs, JavaFX engineer Joshua Marinacci reflects on The Final Countdown. "As I'm waiting here in the airport I'm taking the time to look at the big picture. I've been on the JavaFX team for the last year and a half and I must say that it feels really good to finally be able to share with the world what we've been working on."

Jean-Francois Arcand announces that Grizzly 1.9.0 is is out and refuse to hibernate!. "The latest release of the monster include tons of enhancements and new features like new Asynchronous I/O support, OSGi improvement, ExecutorServices now supported natively, Asynchronous Http Write, and much more."

Continuing a JSF demo from earlier in the week, Jim Driscoll shows off JSF 2.0: The f:ajax tag. "Now that we've defined the basic behaviors of the switchlist component, it's time to wire it up with ajax. This time, we'll do it a new way - with the f:ajax tag." 

In today's Forums,davide71 presents EnhancedMouseScrollableUI. "Hi Alex, I'm really impressed by your MouseScrollableUI. It's just what we were talking about 1 year ago. See comments in your blog . Now I've enhanced your MouseScrollableUI so that it's easier to apply this feature to an existing application without wrapping each JScrollPane with JXLayer. Now you can simply wrap the content pane of the application's frame and each JViewport will be autoscrollable."

Tim Quinn provides pointers to GlassFish deployment strategies in Re: Redeploying a web application. "When GlassFish v3 prelude came out I wrote a brief blog about the various deployment features. And have you looked in the documentation, because it contains a much more complete discussion of how you can deploy applications. Do any of these techniques help you do what you want?"

cowwoc has again updated the Java version-sniffing script used in the discussion Re: Tracking Java Versions using Google Analytics. "I screwed up. Anyone who's already installed the script, please update the path to the new value mentioned in the blog. Google Code won't let me edit the original file. Also, please note that the new version I just posted will allow you to differentiate between 1.6.0* the family versus 1.6.0 the version. For what it's worth, here are my site's statistics, collected before I could differentiate between families and specific versions."

Finally, GlassFish user testn has a request for Environment variable setting in domain.xml. "It would be nice if in domain.xml, we can provide the additional setting to environment variable. It's quite useful to set that since some java library depends on environment variable including some native libraries that refers to dll that refers to some other dll in which setting java.library.path is not enough. Currently, the only way you can set your own environment variable before spinning up the domain is to set it in asadmin.bat."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

Taking it a little slow for JavaFX's launch day  

Work Out Fine Blog

Posted by kfarnham Dec 3, 2008

So this is where Java 7 is going!

OK, so you've stayed with us through Mark Reinhold's blog build-up about the massive, monolithic JDK, the benefits of modularization, and the need to modularize the Java platform itself.

You might have seen where it's going, but not necessarily the implications. His concluding blog, Project Jigsaw, spells it all out. The JDK is to be modularized, via JSR 294 (now split out from JSR 277, the JAM module system, which is being back-burnered) with an OSGi-based module system that will depend on future enhancements to OSGi that allow it tighter integration with the Java language.

How big a deal is this? It's now the point of Java 7.

As a first step toward this brighter, modularized world, Sun's primary goal in the upcoming JDK 7 release will be to modularize the JDK. There will be other goals, to be sure--more on those later--but the modularization work will drive the release, which we hope to deliver early in 2010.

It will surely take a few days for the community to digest and debate the implications of all this -- do we really need a modular JDK? Does holding Java 7 until 2010 block needed changes? Is that enough time to get the closures debate settled too? An early InfoQ article also makes this interesting point that this work is apparently being done outside the JCP.

Take a look at Mark's blog, think about it, and let us know what you think.

In Java Today, Kirill Grouchnikov has managed to take an early peek at media support in JavaFX to see how it can be called from Swing applications. In Extended support for native video codecs in JMC, he writes "Remy Rakic (Twitter alias lqd) has left a link to the apparent release jars of JavaFX Desktop 1.0 in the comments on the previous entry. So i’ve decided to see whether there is anything new in the JMC department since the last time i’ve looked at it." He reports that use of the Windows JAR and DLLs allows him to play any QuickTime-supported content in Java, including H.264, MPEG-4, 3GPP and MPEG-2.

The new version (0.5) of the DTrace GUI Plugin is available for download from the NetBeans 6.5 Update Center. The new DTrace GUI has more than 30 new Chime displays that can be used to visualize the output of DTrace. You can use the new Chime displays to tune and debug applications that are written in Php, Ruby, Python, Javascripts, Java, C, and C++. languages on OpenSolaris. Basically, you can use the DTrace GUI to optimize the whole software/web stack on OpenSolaris.

Rajiv Mordani digs into the next release of Servlets in today'sWeblogs. In Servlet 3.0 - from the source, he writes, "since the Early draft of the specification for Servlet 3.0 (JSR 315) the expert group has been working on refining and improving the specificaiton in a couple of areas - Ease of Development (EoD), pluggability and asynchronous support. Below is a description of things that are in the soon to be available public review to enable each of these features."

Cay Horstmann asks, Where is the source? "This semester, my software engineering class is working on a project to bring the San Jose Cinequest film festival catalog to the Blackberry. The devices are great, but developing for them is not. In this article, I argue that RIM could improve this situation by simply giving developers access to the source code."

Jean-Francois Arcand one-ups Twitter in Writing a Twitter like application using Grizzly Comet part 1: The Servlet. "Twitter is more and more popular and I've decided to write my own Twitter using Grizzly Comet. The result is amazing: 150 lines of Java code and an amazing grizzly transformed into a bird!"

In today's Forums,schaatser can't write to a local directory, in Webstart temp folder permissions problem a bug? "Webstart uses a temp folder to store the downloaded files. This folder is often not writable for our customers/users of our program. (e.g. A sysadmin installs java as administrator and the user can't write in the temp folder of the administrator off course). This results in "failed to load application". Can I consider this a bug in Javaws? It should prompt the user to select a folder if javaws cannot write to its cache/temp folder. To simply fail is not a good way to give confidence in our program."

We've followed the thread about Java versions in the wild for a while, and cowwoc wants participants to update their code. In Re: Tracking Java Versions using Google Analytics, he writes, "I just posted an improved script for detecting Java versions. Please take a look and report your new data: Thank you."

nicoley hopes to get the attention of all Project Wonderland users in WonderBlog - Important 0.5 blog post. "I think some of us may have mistakenly assumed that everyone who is reading the Wonderland forum is also reading WonderBlog ( I would encourage everyone to subscribe to the blog, but in case you don't, those of us who are writing blog posts will try to be better about posting a sentence or two description of each blog post on this forum so you can check out the blog if you're interested in the topic. In case you missed it, please take a few moments to read yesterday's post by Jonathan Kaplan: Towards Wonderland 0.5 ( In this message, Jon explains the rationale behind the 0.5 release and the plan for the next several months."

Current and upcoming Java Events :

Registered users can submit event listings for the Events Page using our events submission form. All submissions go through an editorial review before being posted to the site.

Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of it will be archived along with other past issues in the Archive.

So this is where Java 7 is going!  

Fashionable People Blog

Posted by kfarnham Dec 2, 2008

The know-it-alls originally slammed Java too

Plenty of bloggers and pundits have offered their opinions on the soon-to-be-released JavaFX, many of them doubting its prospects. Chris Oliver, whose F3 project gave JavaFX its starting point, blogged last week that with Thursday's expected release, now you can judge for yourself.

Simon Morris has seen the punditry down on Java before, as he reminds us in his blog No Future In Java of C++ programmers posting to USENET newsgroups that Java was pointless and doomed:

A lot of programmers just didn't get it


Snowed In Blog

Posted by kfarnham Dec 1, 2008

Anticipating December's avalanche of news

OK, so I moved to the snowy part of the Rust Belt, but I didn't think that 6 inches of snow was more than they could handle here.Apparently it is, as all the schools are closed, and I've shoveled the driveway twice in the last 12 hours.

December brings snow in these parts, and it also usually brings major releases from various Java projects. Many projects time their releases to avoid a holiday-season crunch by getting a release out in late November or early December. We saw GlassFish v3 Prelude and NetBeans 6.5 a few weeks ago, and of course Java FX 1.0's big day is coming up on Thursday.

We've also been alerted to a bit of unanticipated Java 7 related items coming from the JDK group early in the week. Mark Reinhold tells us he's kicked off a series of significant blogs by considering systems for Packaging Java code. Tracing the history of the problem, from loose class files and resources on a web server to the ZIP-based JAR format and the versioning problems it doesn't address, he says we find ourselves in "JAR hell":

"If we’re going to modularize the JDK then why not do the same for Java libraries and applications? If we have the facilities required to divide the JDK into a set of well-speci&#64257;ed and separate, yet interdependent, modules then we should be able to leverage those same tools even further in order to climb out of JAR hell."

Mark told us to expect parts 2 and 3 over the next few days, culminating in a major announcement, so we're going to keep linking over there in the first part of the week.

Also in Java Today, Linda DeMichiel describes what she describes as "probably the most significant of the new features introduced in the JPA 2.0 Public Draft" in Java Persistence 2.0 Public Draft: Criteria API. " This is a non-string-based API for the dynamic construction of object-based queries. Criteria queries are constructed in terms of query definition objects. As with JPQL static and dynamic queries, criteria query definition objects are passed to the EntityManager createQuery method to create Query objects

Filter Blog

By date: