Skip to main content

Next Go Round

Posted by editor on January 5, 2009 at 7:17 AM PST


Where's Java going in 2009?

OK, another lap of the Sun is done, and from all accounts, Java did pretty well in 2008. After all, JavaFX finally came out, as did the consumer JRE, which rolls together a set of much-wanted features for the Java runtime, including deployment enhancements, a completely rewritten plug-in, a hardware-accelerated graphics pipeline, and more.

Right near the end of the year, we got a better look at where Java's going. With the closures debate stalemated by a three-way tie between BGGA, other proposals, and the anti-closures camp, Sun announced that it is taking closures off the table entirely for Java 7, and instead focusing on modularizing the entire platform, as well as providing modularization for third-party Java applications and libraries.

So what's the biggest deal? At one point, I thought that iPhone-inspired "app stores" finally opening up the market for ME developers might be the story of the year, but looking at the above, there's some serious competition for the top story. With that in mind, the latest java.net Poll asks
"What was the most important Java news of 2008?" Cast your vote on the front page, then check out the results page for current tallies and discussion.

And one other thing, looking forward to 2009: our event list is looking mighty thin, and that's because we're waiting on organizers to post their events. If you're responsible for a Java-related event in the next few months (um, Java Posse Roundup... hello?), please use the form to let tell the community where and when your event is taking place.


In Java Today,
JavaFX engineer and java.net blogger Josh Marinacci has posted a guide (well, a hack, really...) on How to Use JavaFX in Your Swing Application. "The JavaFX samples page has an example of how to embed an existing Swing component or panel in your JavaFX application. However, we don't have an example of how to do the reverse: embed a JavaFX scene in your Swing application. I asked Rich and Jasper about this and they had the same need as well. After a long train ride to Devoxx this is the code they came up with."

Following up his earlier announcement of an upcoming JSR for Small language changes in JDK 7, Joe Darcy has posted some criteria for desirable small language changes. He points out that the onus will be on supporters to get a given change in, not on critics to keep it out. "When judging whether or not any change to the platform is worthwhile, a useful notion is estimating the feature's "thrust to weight ratio," that is estimating whether the benefits of making the change exceed the full cost of implementing the change. For language changes, this metric is improved by having a larger fraction of programs potentially benefiting from the change."

The latest edition, Issue 187 of the JavaTools Community Newsletter is out, with tool-related news from around the web, news from projects, new projects in the community and a graduation from the incubator (Kundo), and a Tool Tip on monitoring Hudson builds on Firefox.


The latest Java Mobility Podcast is
Java Mobility Podcast 66: Sean Sheedy, JCP ME Executive Committee Feedback. Sean Sheedy was recently elected a JCP ME Executive Committee and is soliciting feedback on what developers think the EC should be addressing.


We're also putting this week's Spotlight on Sean's call for feedback to the ME EC. In a forum thread seeking feedback from the developer community about what the EC needs to be talking about, he writes, "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?"


In today's Weblogs, Sergey Malenkov answers a question about

How to drag nodes and windows? "Every JavaFX node is able to process mouse movement events. Thanks to this ability the user can easily drag nodes on the scene or move windows. However, there are some nuances worth mentioning..."

Sebastien Dionne looks at both sides of an NIO connection in Grizzly : Create a server and client with only few changes. "With Grizzly you can create a server and a client with just few changes. I'll describe how."

John Ferguson Smart asks Do you distribute your builds? "Distributed builds are actually more than just a "nice-to-have" - once you start using them, they become quite addictive!"


In today's Forums, ngterry wonders about a choice of app servers, in
Newbie: Should I run Glassfish when Tomcat is enough?
"If I have two applications running in one box (SUN X2100, Solaris 10 10/08, Postgresql): a) Adempiere ERP (http://www.adempiere.org, has EJB), b) a small Facebook application using JSP and servlet. Should I run these two applications separately using Glassfish and Tomcat? Should I run these two applications separately using two instances of Glassfish?"

Pankaj Jairath explains GlassFish's load balancing options in
Re: Load balancer.
"Load Balancing policies are round-robin, weighted and user defined. One can use the user-defined policy to build custom load balancing policy; for ex: MIME type based. LB does not specifically provide distribution based on CPU, memory availability. One could use weighted, in case of m/c with differential processing capabilities. For ex: m/c1 with two cpu's (with instance1) is more powerful than m/c2 (with instance2) then you could assign instance1 a weight of 2*weight-instance2; where weight-instance2 is the weight assigned to instance2."

Shai Almog warns about hazards of going around LWUIT rendering in
Re: getKeyStates [Was: Re: Canvas in lwuit]. "The main problem with drawing directly on the canvas without going through LWUIT is in collision with LWUIT's own drawing. Since LWUIT uses the GameCanvas (which is something that currently we aren't changing but we might choose to) the flushGraphics call could cause a problem for you in some cases. Since you draw with a native graphics which expects flushing to occur when you finish."

Finally, tamir posts a
Welcome to the new JavaTV thread. "Welcome everyone for our developer forum for discussing all related technologies and frameworks for developing Java applications for TV."


Current and upcoming Java
Events
:

Registered users can submit event listings for the href="http://www.java.net/events">java.net Events Page using our href="http://today.java.net/cs/user/create/e">events submission form.
All submissions go through an editorial review before being posted to the
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 java.net it will be
archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.

Where's Java going in 2009?

Comments

Re:In today's Forums @Load Balancer Would be extremely useful if one would explain how to build a user defined policy to build custom load balancers. In real life, round robin is not a good option unless the sole purpose of the LB is to just act as a fail over mechanism. In my view, the load balance should do what its name says it does. Balance the load. So if one server is loaded don't sent requests to that server. Round-Robin works great for detecting the application server readiness... Drop your comments on that here... http://forums.java.net/jive/thread.jspa?messageID=324021&tstart=0#324021