PlanetJava

January 04, 2008

Planet NetBeans

James' Blog: Join the Docs Discussion

Hi all,

There's a lot a great discussions going on at dev@usersguide.netbeans.org. Why don't you join it? It's the email alias for community members who want to:

  1. Contribute documentation to the NetBeans Community.
  2. Play a more active role in the NetBeans Community.
  3. Provide input and feedback necessary to make important decisions regarding NetBeans documentation.
  4. All of the above, of course.

Interested? It's easy to sign up. Just do the following:

  1. Go to the NetBeans Mailing Lists Page and log on with your user name. (If you don't have one, just click Login. Then you can register for one.)
  2. Scroll down to the dev@usersguide.netbeans.org mailing list. Click subscribe and a subscription request will be sent.
  3. Within a few seconds, an email will arrive asking you to confirm the subscription. Just send an empty email back.

That's it! You're now a subscriber. Go ahead and start thinking of ways you can get involved.

Can't wait to see you there!

--James

January 04, 2008 02:39 PM

Java.net Weblogs

Yours Truly

Are you and Java going in the same direction? Also:

java.net Poll: What version of Java do you expect to be using at the end of 2008?

Java Today: Java evolution and stability, new GlassFish podcast, and Gosling interviewed

Forums: Java Plug-In fixes, ObjectOutputStream references, and sending SMS with Java

Weblogs: Java and the Nokia n810, JDIC and NetBeans, and seeking another million Java programmers

by Chris Adamson at January 04, 2008 02:33 PM

The Aquarium

Blogging, Content Rating, jMaki and GlassFish

jMaki Clock on Roller

The Update Center Repository includes Social Network Bundle with Apache Roller for blogging and Slynkr for content rating. You can download it very easily - check Manveen's reminder.

And, over the holidays, Dave played around with jMaki and he can now show jMaki on Roller. Check it out and let us know how it works for you!

by pelegri at January 04, 2008 02:00 PM

Cafe au Lait

Nokia has posted the second public review draft of JSR-279 Service Connection API for Java ME.

Nokia has posted the second public review draft of JSR-279 Service Connection API for Java ME. More...

January 04, 2008 01:00 PM

The Server Side

Bruce Eckel: Java, Evolutionary Dead End

Bruce Eckel has written an article on Artima, saying that Java should not change much any more, that maybe "the right thing to do is just not add the feature at all (what fun is that?). That if you can't do it right then maybe the language should stop growing and become stable. That it should stop chasing every language feature du jour."

by Joseph (Ottinger@nospam.com) at January 04, 2008 11:34 AM

The Server Side

Django on Jython is "almost there"

Tim Bray has pointed out a note from Jim Baker: Django on Jython is almost there. It can run! There's still more work to do, as Mr. Baker points out, but Django is likely to serve Jython in the same way Rails serves JRuby: the "killer application" that allows people to adopt Jython without regret.

by Joseph (Ottinger@nospam.com) at January 04, 2008 11:09 AM

The Server Side

Rhino in Spring now with Terracotta support

Rhino-in-Spring, the alternative web flow controller for Spring that allows you to write your flows in JavaScript, has a new version. The main new feature in the 1.2 release is support for clustering web flows using Terracotta DSO.

by Attila (Szegedi@nospam.com) at January 04, 2008 10:40 AM

Cafe au Lait

Motorola has posted a public review draft of JSR 271 - JMobile Information Device Profile 3 .

Motorola has posted a public review draft of JSR 271 - JMobile Information Device Profile 3 . According to the draft: More...

January 04, 2008 10:00 AM

InfoQ

James Gosling on Adobe Flash / Flex / AIR

Kathleen Richards of Redmond Developer News published an interview with Sun Microsystems’ James Gosling, in which they discussed JavaFX and its competition in the RIA space. Gosling shared some pointed thoughts on how he believes JavaFX compares to the Flash / Flex platform.

January 04, 2008 09:11 AM

Java.net Weblogs

Interview with JavaLobby

Last week, I had an interview with Geertjan Wielenga, an author at JavaLobby (also Netbeans Engineer ), it was about JUG in Egypt and our upcoming event.

by Ahmed Hashim at January 04, 2008 08:54 AM

Tim Bray

Mountain Chimney

A picture of snow-covered mountains from our bedroom window.

Vancouver’s North-Shore mountains

The ski-ers are looking happy these days.

Shot with the 70-210 Tamron telephoto, you can’t actually see this view from that window unless you’ve got surgically modified eyes.

January 04, 2008 08:40 AM

The Aquarium

Hudson - Help Wanted

Hudson Help wanted

Kohsuke posted the a new version of Hudson that includes the first cut support for internationalization and localization.

In his blog, he explained the approach that is similar to used in Metro as well. Let us know if you are interested in creating localized bundles for Hudson.

There are a few comments on the blog already showing the consistent community support around Hudson.

Find out more about how the project got started in a podcast that was released earlier.

by arungupta at January 04, 2008 07:00 AM

Tim Bray

Django on Jython

It’s starting to happen. There’s a long way to go between successfully executing a bit of Rails and actually making the sucker run usefully, as the JRuby guys will tell you. But speaking of JRuby, there are some eerie similarities: a language-platform project that was promising, then drifting, now revitalized. The ecosystem gets more interesting all the time.

January 04, 2008 06:20 AM

Tim Bray

2008 Prediction 1: RIA vs. AJAX

What happened was, a sudden email from Sun PR went around about fifteen minutes to Christmas saying “SYS-CON wants predictions for 2008; right now would be good.” It happened that I was in the middle of doing three months and ten trips’ worth of expenses, thus bored out of my mind, thus happy to prognosticate. I gave them five, but, given the urgency, not much more than sound-bites. I think each of them is worth a little exegesis.

  1. RIA vs. AJAX: below, in this fragment.

  2. Windows Looks Bad.

  3. Rails Rules.

Prediction

The short version:

There's a major struggle going on between “RIAs” (Rich Internet Applications) and AJAX, which tries to do everything in the browser using just what the browser ships with. RIA frameworks are AIR (“Flash, the Next Generation”), Silverlight (“Microsoft wants in”) and JavaFX (“Isn't open-source better?”) I'm not brave enough to predict who wins, but I do predict that 2008 will be a crucial year; either RIAs enter the mainstream, or they start to smell like a red herring left in the sun.

Suspicion

Ever since we’ve had the Web, we’ve had those who say it’s Not Good Enough. I’ve long been among the RIA skeptics, for a couple of reasons. First, let me quote myself, from here:

This notion, that the Web GUI is insufficiently interactive and we need something richer, is widely held among developers and almost never among actual users of computers, and it’s entirely wrong. I can remember when people were forced to use compiled Windows and X11 applications, and most of them were extremely bad because it’s really hard to design a good interactive UI; when the Web came along, more or less everyone abandoned those UIs in favor of the Web, almost instantly and with shrieks of glee. Yes, Web UIs are drastically constrained, offer a paucity of controls, and enforce a brutally linear control flow; and these are good things. I remember, in the early days, people saying “Once you know how to use one Windows app, you know how to use them all”. Ha ha ha. But you know what? Once you know how to use a browser, you are well on the way to being able to use most Web apps. The best AJAX apps are still very Web-like (as in, the Back button always works); but they’re faster and more responsive and nicer to look at. The worst AJAX apps are like bad Nineties VB.

I stand by my point: the people who want to add UI “richness” to the Web are always developers, never users. Doesn’t mean they’re wrong; after all, the users weren’t clamoring for the Web before it arrived, either.

My other problem is that while I like my Internet applications to be rich, I have this old-fashioned notion that “richness” is mostly about compelling words and pictures and sounds and especially, most especially, interaction with living people.

On The Other Hand

I use Rich Internet Applications all the time. Mail. iTunes. In fact all rich applications have become Internet applications: I can publish ongoing fragments with a keystroke in Emacs, and create a Web slide-show from Lightroom.

But that’s not what they mean when they say RIAs; they mean “Whatever lies in the direction that Flash is pointing.” Which puzzles me, because near as I can tell, Flash is most useful for watching movies portably (a la YouTube) and cool casual games like N and Desktop Tower Defense.

But I Could Be Wrong

I’ve always seen it as a big problem that at the end of the day, Flash is proprietary. So is Silverlight (although it’s damn interesting that it runs on OS X). JavaFX tries to remove that problem. Maybe if we unleash the creativity of all the people who just don’t want to be sharecroppers on someone else’s plantation, we’ll see some RIAs that are actually interesting to business.

But don’t kid yourself that it’ll be easy. The browser already offers what most people (who aren’t software developers) consider an excellent user experience, and AJAX, done well, makes it even better.

January 04, 2008 06:07 AM

Tim Bray

2008 Prediction 3: Rails Rules

This is the third of five predictions for 2008, expanded from the short form generated on short notice as described here.

Prediction

The short version:

Rails will continue to grow at a dizzying speed, and Ruby will in consequence inevitably become one of the top two or three strategic choices for software developers. But at the same time, other frameworks and tool-sets are learning its lessons, so Rails will get some serious competition.

I Hear a Very Gentle Sound

I don’t know anyone who’s actually doing methodologically respectable head-counts of Web developers, so any opinion from anyone is based on anecdotal evidence at best. But these days, based on my anecdotal evidence, everything I see and smell, the white-hot pace of Rails adoption isn’t slowing down at all.

Rails drags Ruby along behind it, and good programmers who are exposed to Ruby tend to become addicted pretty quickly.

Who’s Watching

There is one group of technologists who are now 100% familiar with Rails. I’m speaking of the developers of competitive Web frameworks, many of whom felt somewhat smacked upside the head by Rails’ sudden noisy chomp into their market share.

By and large, they’re not stupid. They may not have been as quick to notice the things that DHH and the other Railsists noticed, but they’ve noticed them now, and more or less every other piece of the Web ecosystem has something “Rails-like” in hot development or in production. Some of the names to watch are Django (based on Python), lift (based on Scala), and Grails (based on Groovy). But I predict fearlessly that there will be a Real Important Web-framework grabbing mindshare a year from now that’s learned Rails’ lessons but ain’t one of those.

I Could Be Wrong

Maybe the population of developers will wake up, shake their heads, and say “Nah, going back to PHP, it’s faster” or “Actually, now I see that Java EE’s XML configuration files are da bomb”.

But I don’t think so.

January 04, 2008 06:03 AM

OSDir.com - Java

Java for Mac OS X 10.4, Release 6

From the Fresh Brew dept.:

Time to fire up the 'ole Software Update as Apple has just released a Java update for Mac OS X. This update will fix vulnerabilities in both server and client versions of 10.4. Apple explains that, 'A malicious webpage can remove or insert items in the keychain,' which sure doesn't sound good to us.

January 04, 2008 05:00 AM

OSDir.com - Java

Java 6 Available on OSX

From the Fresh Brew dept.:

Many Mac users have been upset that Apple has not made Java 6 available on the platform. Landon Fuller posts that there is a developer preview release available of Java JDK6 on Mac OSX, Tiger and Leopard. It is based on the BSD port of Sun's Java 6 and is made available under the Java Research License.

January 04, 2008 05:00 AM

OSDir.com - Java

Sun Scrapping Mobile Java, Moving Devices to Standard Java

From the Isn't that the one that works? dept.:

Sun's starting to phase out mobile Java (Java Micro Edition) that's been the standard on cellphones and other small devices in favor of their standard edition, which are made for PCs everywhere. Sun VP James Gosling's reasoning for shifting everyone over to Java Standard Edition is because "cellphones and TV set-top boxes are growing up," meaning they're getting enough processing power to handle all the demands of full-featured Java.

January 04, 2008 05:00 AM

OSDir.com - Java

Fedora Includes Sun OpenJDK/GNU Classpath Fusion IcedTea

From the Sippin' dept.:

Just in time for Fedora 8 test 2 IcedTea has landed in Fedora RawHide. The IcedTea project provides a harness to build the source code from the Sun OpenJDK project using Free Software build tools (gcj) and provides replacements for the non-free binary plugs with code from the GNU Classpath project.

January 04, 2008 05:00 AM

OSDir.com - Java

Sun lowers barriers to open-source Java

From the Easier, but more exclusive dept.:

Sun Microsystems is making it easier for open-source programmers to ensure their Java versions meet the company's compatibility requirements, but the deal extends only to those involved in Sun's own open-source Java project.

January 04, 2008 05:00 AM

OSDir.com - Java

Sun Done Open Sourcing Core Java

From the That's All Folks dept.:

Sun Microsystems Inc. announced Tuesday it has finished the process of making the bulk of its core Java technology available as open-source software under the GNU general public license version 2 (GPLv2). The vendor made the announcement at its JavaOne conference in San Francisco.

January 04, 2008 05:00 AM

OSDir.com - Java

Apache Harmony First Milestone Released

From the A Journey of 1000 Miles dept.:

Apache Harmony are pleased to announce the the first stable build "5.0 M1". The code, which was previously made available as "snapshot r533500", underwent additional testing after a period of stabalization in the ongoing development of a full release.

January 04, 2008 05:00 AM

OSDir.com - Java

GNU Classpath 0.95 "Take Five" released

From the dept.:

...This release adds some serious jazz (more extensive list below):



Full merge of 1.5 generics work. Bootstrappable with OpenJDK javac compiler. URLConnection timeout support. TimeZone can use platform zoneinfo file when available. The Collection classes, lang.management and util.spi have been updated to 1.6. Addition of 1.6 ServiceLoader. Speedup for cairo and freetype Graphics2D support. The ASM library is now included. Better detection of browser plugin mechanisms for gcjwebplugin applet support in mozilla, iceweasel and firefox.

January 04, 2008 05:00 AM

OSDir.com - Java

Open Letter to Sun Microsystems from Apache Software Foundation

From the Hurry Up Already dept.:

On April 10, 2007, the Apache Software Foundation sent the following letter to Sun Microsystems regarding our inability to acquire an acceptable license for the Java SE 5 technology compatibility kit, a test kit needed by the Apache Harmony project to demonstrate compatibility with the Java SE 5 specification, as required by the Sun specification license for Java SE 5.

January 04, 2008 05:00 AM

OSDir.com - Java

Red Hat doubles JBoss funding

From the JHat dept.:

Open-source specialist Red Hat claims that it is doubling the amount of research and development investment in JBoss — the open-source application server company it acquired last June.

January 04, 2008 05:00 AM

Ed Burnette

Dell delivers Vostro value

For less than half the price I paid for my last computer, I now have not one, but two capable machines that the kids can use for several years to come. Check out the gallery and see what you think.

by Ed Burnette at January 04, 2008 04:42 AM

InfoQ

Programming languages in future systems

The trend seems to be clear; in the next few years there will be an increase in adoption of new programming languages and systems will be written in multiple languages. But what does the mix look like, and which languages are suitable for what? In a recent post, language explorer and JRuby developer Ola Bini describes what future systems may look like.

January 04, 2008 01:42 AM

Simon Phipps

You are what you eat

I've been meaning to mention that I finished reading The Omnivore's Dilemma [UK] during December and really loved it. It had been jumping into view each time I went to a bookshop and I finally gave in during October.



It was a deliciously smooth read - even with my usual ADD I found it compelling. Michael Pollen digs into the American food system and finds that the mass-market food system has been ridiculously skewed by a policy decision made under the Nixon administration. Attempting to prevent the recurrence of a catastrophic price slump in the food system, the agriculture minister of the time created a price intervention system which controlled price without controlling supply. The result was the creation of eternally cheap corn, which has driven all American food production (and more) to artificially obsess on the stuff.



Pollen goes further though. He finds that the organic production sector has caught the same obsession and is mass-producing organic food in a manner increasingly resonant of the mass-market. Just as proprietary software companies want to steal the term "open source" because of its market power, so the food industry has already gamed the term "organic" and made sure they can use the term without adopting the lifestyle. I find Whole Foods Market a great place to shop, but this book was a real eye-opener to the consumer manipulation at work there.



Overall I'd say this was my book-of-the-year for 2007 and a must-read book. It has a strong US focus and speaks of a food system that doesn't yet exist in Europe (where EU intervention controls supply as well as price and has avoided the destructive corn system that's ruining American health). But it still explores the motivations and dynamics of our food and gives an important perspective as we sail into the future. It's already changed my health, not by being prescriptive but by helping me think.

by webmink at January 04, 2008 12:49 AM

Planet NetBeans

Octavian Tanase's Weblog: NetBeans moving to Mercurial

NetBeans sources will be moving shortly to a different version control system - Mercurial. The details of the migration are detailed here. Tonda is in charge, so send him feedback. If you are not familiar with distributed version control systems, take a look at this article. Here is how I configured my own instance of NetBeans 6 to use Mercurial and point to the new repository.

Nota bene: I am running on a Mac - Leopard + Java 1.5.0_13.

  • Get Mercurial (it will require Python)
  • Install the Mercurial plugin from the NetBeans update center (Tools | Plugins) and get familiar with the documentation.

  • Point NetBeans (assuming that you are using NetBeans to build and develop) to the repository (Versioning | Mercurial | Clone Other ...): http://hg.netbeans.org/main
  • If you are looking for instructions on how to clone a repository from the command line, I found this document to be useful

If you run into trouble, write to the team (nb-hg-migration@sun.com) to get support.

January 04, 2008 12:39 AM

January 03, 2008

Java.net Weblogs

Planet Eclipse

Releng: HOWTO: Component Provisioning

The process for getting from ‘great idea’ to ‘component in an eclipse.org project’ is an evolving one. In its tireless approach to making process simpler, the EMO will now accept (as of Oct 20, per Ecore Tools, Emfatic, and Servus) a wiki doc proposal instead of a zip with HTML files, css & images.

As EMFT becomes a very popular place for new components to be planted and to blossom, others may want to copy our model and provide similar services within their projects. Other open-source contributors may want to propose components to be added to other projects, and wonder, how in Bjorn’s name do I do so?

So… as a service to others, here’s some references on how to navigate the treacherous waters. Note that with all Eclipse.org processes, docs are subject to change without prior notice.

See also:

by Nick Boldt at January 03, 2008 09:25 PM

The Aquarium

New GlassFish Podcast episode on V3

GlassFish Podcast Image

A new episode for the GlassFish Podcast is available. This was recorded back on October but the content is still very much valid. The sound quality isn't perfect (still trying things out) but I think I've heard much worse quality...

In this episode, GlassFish architect Jérôme Dochez gets into how GlassFish V3 is being built using the HK2 modules sub-system. He goes into what the nucleus is, the role of grizzly, how easy embedding GlassFish V3 will be but also into the challenges of building a Java EE 6 Application Server implementation on top of a micro-kernel.

You can read more about GlassFish V3.

by alexismp at January 03, 2008 09:00 PM

Planet NetBeans

cld: Solaris 10 Bits : Book on App Programming, Solaris and Linux Comparison Chart

Two interesting Solaris bits. There is a new book on app programming with lots of details on application programming. Second - there is a new chart comparing Linux and Solaris. More...

January 03, 2008 08:27 PM

Planet NetBeans

Insider Scoop From the Tutorial Divas: Adding a Popup Window to a NetBeans 6.0 Visual Web Page

Here is a mini-tutorial for creating a Popup window for the user to lookup values. One scenario that you might use this for is when the page visitor needs more information then can be displayed in a drop-down list.

This is a rewrite of a previous blog entry that was written for the Sun Java Studio Creator IDE. I have modified the steps so that it works for the NetBeans 6.0 IDE.

  1. Create a web application project with the Visual Web JavaServer Faces framework.



  2. Add a page named Popup.



  3. Add a Table component to the page.



  4. Drag VIR > Tables > State from the Services window and drop it on the table.



  5. Right-click the Table component and choose Table Layout from the pop-up menu.



  6. In the column for the STATE.STATEID database field, set the Component Type to Hyperlink, and click OK.



  7. Select the Hyperlink component so that its properties appear in the Properties window.



  8. Set the value for the onClick property to doSave('#{currentRow.value['STATE.STATEID']}')



    (I got the value to pass to doSave() from the Value Expression in the Table Layout dialog).



  • Drag a Script component from the Advanced section of the Palette and drop it on the page.



  • Click JSP in the editing toolbar to view the JavaServer Pages script.



  • In the JSP page, change the <webuijsf:script> tag as shown below.



     
    <webuijsf:script binding="#{Popup.script1}" id="script1">
    <![CDATA[
    function doSave(val) {
     window.opener.setVal(val);
     window.close();
    }]]>
    </webuijsf:script>
    




    The Popup page is now ready for use by another page.



  • Create a new page called Form1. Make it be the start page.



  • Drag a Text Field component and drop it on the page. In the Properties window, make sure the id is set to textField1.



  • Drop a Hyperlink component on the page, just above the text field, and set the text property to State Code.



  • Set the url property to /faces/Popup.jsp.



  • Set the onClick property to doPopup('form1:textField1_field')



    Note: Here you are passing the id of the field to fill with the selected value. Determining the id can be tricky. To determine what to use for the id, run the application, and use a tool such as Firebug to inspect the DOM.



  • Click the ... button for the target property to open the target property editor.



  • In the property editor, click New and set both the Display and Value to popup. Click OK and click OK again.



    Later you add script to open a window named popup, and this setting causes the Popup.jsp page to display in that window.



  • If the target property value is still blank, select popup from the value from the combobox for that property.



  • Drag a Script component from the Advanced section of the Palette and drop it on the page.



  • Click JSP in the editing toolbar to view the JavaServer Pages script.



  • In the JSP page, change the <webuijsf:script> tag as shown below.



     
    <webuijsf:script binding="#{Form1.script1}" id="script1">
    <![CDATA[
    function doPopup(destination) {
     popup = window.open("", "popup",
     "height=300,width=200,toolbar=no, menubar=no,scrollbars=yes");
     destinationElement=document.getElementById(destination);
     popup.focus();
    }
    
    function setVal(val){
     destinationElement.value=val;
    }]]></webuijsf:script>




  • Run the project. Click State Code to open the popup window. Click a state code to select the code, close the popup window, and populate the text field.
  • January 03, 2008 07:49 PM

    Planet NetBeans

    cld: JavaFX Script and a New Key Animation Framework

    JavaFX Script is getting a more comprehensive Key Animation framework. More....

    January 03, 2008 06:41 PM

    Java.net Weblogs

    TOTD #21: Metro 1.1 with GlassFish v2 UR1 and NetBeans 6

    Metro 1.1 was released last month. This blog describes how to install Metro 1.1 on GlassFish v2 UR1 (which comes with Metro 1.0 baked in) and use it with NetBeans IDE. Download & Install Metro 1.1. Download, Install & Configure GlassFish...

    by Arun Gupta at January 03, 2008 04:53 PM

    Planet NetBeans

    James' Blog: New Tutorials on NB Web Apps Learning Trail

    Hi all,

    Just to let you know, I've added two new tutorials to the NetBeans Web Apps Learning Trail:

    These tutorials were already listed on the Web Apps index page, but by adding them to the Learning Trail, they're sure to get a lot more exposure.

    Enjoy them!

    --James

    January 03, 2008 03:58 PM

    Planet NetBeans

    Octavian Tanase's Weblog: Popularity of NetBeans is reflected in the demand for jobs with relevant skills

    One way to gage success of product or technology is to look at the job trends that call for relevant skills. Honza recently pointed me to this site, that helps professionals search for jobs. I was pleasantly surprised to see the recent surge of jobs that call for NetBeans. I suspect that the industry has realized by now that NetBeans the best IDE for Ruby, Web Services and Swing application development.

     

    January 03, 2008 03:25 PM

    Ed Burnette

    Nintendo to bring DS downloads to Wii

    WiFi connectivity on the DS has been a major disappointment so far. But perhaps new downloading capabilities will breath new life into the portable and have us digging under the bed and in the sofa to find them again.

    by Ed Burnette at January 03, 2008 02:14 PM

    The Aquarium

    December GlassFish Stats - the Slow month is not that Slow....

    GeoMap

    December is usually a slow month and this shows in the number of posts at USERS@gf (927, down from 1359); but not in the latest GeoMap (thanks, Jamey), which shows more IP hits (218715 up from 171182) and only slightly fewer IP addresses (34926, down from 36082).

    Early indications from registrations (see [1]) suggest good Download Statistics.

    As a reference, I checked on USERS@Tomcat and their posts also went down in December but not as much as with GlassFish, which I attribute to the larger percentage of enterprise users in GlassFish, but, we will see...

    The data from the Admin console has the usual overcount/undercount problems. Now that the UpdateCenter machinery (see intro blog) is working properly in GFv2UR1 we should be able to get more accurate adoption statistics; I'll report back in a few weeks.

    by pelegri at January 03, 2008 02:00 PM

    Java.net Weblogs

    High Horses

    More discussion amongst the closures theorists... also:

    Java Today: Control structures in closure proposals, closures as real objects, and JSR 271 (MIDP 3) in public review

    Weblogs: How to make money off open source, JXBusyLabel, and the OLPC and Java

    Forum Posts: EAR deployment remoting considerations, cluster slowdowns, and why doesn't ObjectOutputStream use weak references?

    by Chris Adamson at January 03, 2008 01:35 PM

    Apache News

    03 January 2008 - Apache Wicket 1.3 Released

    Starting the new year with a bang the Apache Wicket Team has released Apache Wicket 1.3. With this release comes a lot of great successes, but most of all the team wanted to express their wishes to everyone for a happy new year.

    You can download Apache Wicket 1.3 here:

    http://wicket.apache.org/getting-wicket.html

    Apache Wicket is one of the fastest growing Java open source component based web frameworks. With a focus on producing valid html and a logical separation between design and code. Within minutes you can start to enjoy throwing out tag soup, complex components and high maintenance overhead for a simple POJO + html data model.

    See the Apache Wicket website for more information:

    http://wicket.apache.org

    Take a look at some of the following highlights or skip to the bottom and get started now.
    • last JDK-1.4 release (next release will be Java 5 based)
    • first Apache release: renamed packages to org.apache.wicket
    • simplified several core APIs
    • now works with zero-config behind a proxy server using relative URLs
    • added Google Guice support
    • use your Wicket pages directly in a portal without changing a line of code (JSR-168/JSR-286 support)
    • switched logging API from commons-logging to slf4j
    • integrate velocity templates as panels in your pages
    • YUI-calendar and Joda time based date picker (wicket-datetime)
    • contribute new javascript dependencies to the page header using an Ajax requeset
    • improved, more robust header contributions
    • scale to extremely large numbers of users with stateless pages and components
    • improved AjaxTree/AjaxTreeTable
    • hybrid URL encoding to make search engines and your users happy
    • create form panels and use them anywhere without worrying about the nesting of form tags
    • minimized session use by storing component hierarchy in file system (DiskPageStore)

    Get started today by downloading Wicket using this link:

    http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

    The distribution contains all the Wicket libraries, and all the source code including the examples project. In the root of the download you will find a README document with full instructions.

    Migrate your Wicket 1.2 application to Wicket 1.3 using our migration guide:

    http://cwiki.apache.org/WICKET/migrate-12.html

    Best wishes from the Wicket Team and a prosperous 2008

    ----

    -- The Apache Wicket Team

    [ Category : Apache Wicket ] PDFXML_RSS

    by Tetsuya Kitahata at January 03, 2008 01:32 PM

    InfoQ

    Article: Take care of your domain model

    Today, many projects focus on Domain-Driven Design, but it is not always easy. One of the most important things are to separate the domain code from the code that only exists for technical reasons. Mats Helander has written an article where he explains how to manage domain models and teaches design patterns and aspect-oriented programming in the process.

    January 03, 2008 12:27 PM

    Planet NetBeans

    Geertjan's Weblog: WebFrameworkSupport API Changes

    The WebFrameWorkSupport API class has changed in the 6.0 release. The biggest enhancement is that the API was changed to the status of "public, under development". Before, it was a "friend" API, even though many (including myself) were treating it as a stable API. Making it a public API shows NetBeans's commitment to maintaining this API in the future in a compatible way.

    The other enhancements were related to or caused by the changed status:

    • WebFrameworkProvider.getConfigurationPanel() and FrameworkConfigurationPanel were deprecated and replaced with WebModuleExtender. The main reason for this change was the unclear lifecycle of FrameworkConfigurationPanel. Imagine calling WebFrameworkProvider.getConfigurationPanel() twice: what should the method return on the second call? The panel returned by the first call? A new panel? The WebModuleExtender solves this problem.

    • WebFrameworkProvider.extend() was deprecated and replaced with WebModuleExtender.extend(). Again, the reason was the unclear lifecycle.

    • The API is not linked to the wizard API anymore (FrameworkConfigurationPanel used to extend WizardDescriptor.Panel). This fixes a design flaw in the API which made it hard to extend a web module from the project customizer, where there is no wizard available.

    • ExtenderController was introduced to allow a framework implementor to set error messages for the configuration UI.

    I want to make use of the changed API soon and, when I do, I will report here on my findings. To see these changes in action already, should you need to do so, see the Struts and JSF framework support classes in the NetBeans sources, which have been upgraded. However, in order to avoid losing history, they weren't renamed. So, even though the Struts class should be called StrutsWebModuleExtender, it is still called StrutsConfigurationPanel.

    Of course, the first and best place to read about NetBeans APIs is the related Javadoc:

    org.netbeans.modules.web.spi.webmodule.WebFrameworkProvider

    Thanks to NetBeans engineer Andei Badea for providing all this information.

    January 03, 2008 12:18 PM

    Planet NetBeans

    Bistro!: SDPY - Happy Birthday Groovy

    Groovy 1.0 is one year old. Version 1.5 has been released since and while Sun has been more focused on JRuby, Groovy and Grails are fairly well supported in both NetBeans and GlassFish.

    January 03, 2008 11:01 AM

    The Server Side

    Windward Reports version 6 released

    Windward Reports has released a new version of their flagship product, enabling the use of Excel as a design tool. The Windward Reports Server Engine is designed for users creating both Java reports and .Net reports alike, and now allows users to design reports in both Microsoft Word and Microsoft Excel as well.

    by David (Thielen@nospam.com) at January 03, 2008 09:50 AM

    The Server Side

    R.I.P. Netscape - AOL to discontinue support

    AOL has announced that it plans to discontinue support for the Netscape browser, purchased in 1999. This won't affect Mozilla - AOL is suggesting that Netscape users go ahead and use Firefox instead.

    by Joseph (Ottinger@nospam.com) at January 03, 2008 09:47 AM

    Planet NetBeans

    Miles to go ...: TOTD #21: Metro 1.1 with GlassFish v2 UR1 and NetBeans 6

    Metro 1.1 was released last month. This blog describes how to install Metro 1.1 on GlassFish v2 UR1 (which comes with Metro 1.0 baked in) and use it with NetBeans IDE.

    1. Download & Install Metro 1.1.
    2. Download, Install & Configure GlassFish (detailed instructions)
      1. Download GlassFish v2 UR1.
      2. Install GlassFish by giving the command:



        ant -f setup.xml
      3. Set AS_HOME to the location of GlassFish v2 UR1 directory and install Metro 1.1 by giving the following command in Metro 1.1 directory:



        ant -f wsit-on-glassfish.xml install



        This will install the latest Metro 1.1 binaries in the GlassFish Application Server instance.
      4. Configure GlassFish in NetBeans 6 by going to the "Services" tab and right-clicking on "Servers" node and selecting "Add Server...".
    3. Create a simple Metro Web service by following this tutorial. Create a Secure and Reliable Web service following screencast #ws7. The complete tutorial to add WS-* capabilities to your endpoint is available here.

    Please leave suggestions on other TOTD that you'd like to see. A complete archive is available here.

    Technorati: totd webservices metro glassfish netbeans

    January 03, 2008 08:01 AM

    Tim Bray

    Social!

    Our traditional (well, this is the third in four years) New Year’s Day social went off very nicely, thank you. We had RSVP’s from 40 or so adults with at least ten kids. Things that we kept the same: Cordon Rouge, gazpacho, lentil soup, and coffee cake. Innovation: hiring a real babysitter to hang out upstairs with the kids. Emma was great but went home looking frazzled; there are still a few nerf darts on the ceiling.

    Here’s a shot of part of our front hall once things were well under way.

    Assembled shoes and other paraphernalia in the front hall during party

    Thanks everyone for coming, and if our invite went astray or you slipped our minds, sorry.

    We’re thinking of maybe shifting it to the summer solstice when it’s not so dark and cold and awful and the kids can go out in the yard.

    January 03, 2008 06:30 AM

    Tim Bray

    2008 Prediction 2: Windows Looks Bad

    This is the second of five predictions for 2008, expanded from the short form generated on short notice as described here.

    Prediction

    The short version:

    The strain due to the fact that most business desktops are locked into the Microsoft platform, at a time when both the Apple and GNU/Linux alternatives are qualitatively safer, better, and cheaper to operate, will start to become impossible to ignore.

    Experience

    Around our house, we have screens connected to Windows XP, OS X, and Ubuntu GNU/Linux. Ubuntu and OS X are easier to install, less trouble to maintain, and more pleasant to use. If we were tracking the time we spend maintaining these things, I’m willing to bet that Windows takes more care & feeding than the other two put together. Down the road we’ll have Windows only for games, I think.

    We also provide tech support for our mothers, a local Pilates studio, and various random friends, local and remote. Wherever we can, we’re steering them to OS X just because they’ll experience less pain and be more productive.

    Pain

    These days, when you live mostly on OS X & Ubuntu, XP is just incredibly irritating. There’s always something pestering you to update it: Adobe, Java, Norton, whatever. Plus random other whining from the bottom right corner of the screen, about unused icons and firewall security and so on.

    As for my family & friends who aren’t pros, and who haven’t been under the tutelage of one either, their Windows boxes are mostly smoking, diseased, quivering heaps of goo. Who’s got the time to deal with that shit?

    Why I Might Be Wrong

    I haven’t spent any time with Vista. Possibly, after a couple of releases, it’ll make Windows competitive again.

    From the Business Point of View

    I talk to the individuals and small businesses who are still running Windows, and I compare them to those who’ve escaped, and it’s just not close. Recently I was helping Mairin get her system set up—a Mac mini, which BTW is a fabulous computer for a small business—and was showing her how to do something and she said “But that’s so easy? Why?” and I said “Well, that’s how things work on this system” and she said “Well, why are people still using Windows then?”

    The Future

    Microsoft’s continuing extraction of monopoly rents is dependent, near as I can tell, on just two things:

    1. MS Office staying good enough that people don’t mind paying the fearful Windows tax that goes with it. Except for, Office runs better on OS X than on Windows.

    2. The Exchange/Outlook lock-in. This seems the big one to me.

    Like I Said

    This problem is becoming increasingly impossible to ignore. Especially now that nearly everyone has someone in the family with a Mac.

    January 03, 2008 06:11 AM

    Planet NetBeans

    g33k's Ramblings: NetBeans 6.0 DVD

    Hi all!



    Today I received my NetBeans 6.0 DVD









    Its fully loaded:

    • NetBeans 6.0 for Linux, Mac OSX, Solaris, Windows
    • NetBeans 6.0 Source Code
    • JDK 1.6 update 3
    • Selected Java Tutorial Trails
    • "Java Programming with Passion" course
    • A screencast demo showing NetBeans in action
    • Java Platform API Specification
    Order your NetBeans 6.0 DVD!

    January 03, 2008 04:58 AM

    InfoQ

    Building Service Oriented Architectures with Java Technology

    Sun Microsystems started a tour in the US to present a comprehensive view of the technologies and approaches it recommends to build Service-Oriented-Architectures with Java Technology.

    January 03, 2008 12:59 AM

    The Aquarium

    Woodstock JSF Components now via the GlassFish Update Center

    ScreenShot of UpdateCenter with Woodstock

    The latest JSF Components from Project Woodstock are now available via the GlassFish Update Center client at INSTALL/updatecenter/bin/updatetool. What you download is equivalent to the Online Preview; check out Dick's Writeup.

    Coincidentally, Ken, Jason and Rick just published an article on Using JSF Templating and Woodstock. And you may also want to read previous articles at TheAquarium on Woodstock and UpdateCenter.

    by pelegri at January 03, 2008 12:23 AM

    January 02, 2008

    Planet Eclipse

    Chris Aniszczyk: EclipseCon Hotels

    I just booked my hotel at EclipseCon and I thought I would just remind people that it's a good time to book your hotel.



    Why?



    Every year I know people that book late and get stuck in a hotel that's far away from the convention center and either have to take a shuttle or suffer a fate similar to what happens in Oregon Trail:







    So if you don't want to die of dysentery, stay at the Hyatt or Hilton :)

    by Chris Aniszczyk (zx) at January 02, 2008 11:58 PM

    Java.net Weblogs

    InfoWorld Says Sun is "Back in the Game"

    Gratifying to see a positive review of Sun first thing in the New Year.

    by Marina Sum at January 02, 2008 11:43 PM

    Planet NetBeans

    Rich Unger's Blog: JDIC - NetBeans Integration Updated for 6.0

    To jump back into programming, and to familiarize myself with the new release of NetBeans, I've updated the jdic-netbeans integration.  Here you can see the browser embedded in NB, replacing the default "Swing browser". There's still some issues with the...

    January 02, 2008 11:24 PM

    Planet Eclipse

    Virgil Dodson: Talking BIRT-y at EclipseCon in March

    Two of my BIRT sessions were accepted for EclipseCon 2008 so I’ll see you all in Santa Clara in March.

    One session is called “Advanced BIRT Report Customization” and deals quite a bit with scripting in BIRT.  I’ll be co-presenting with Jason Weathersby.  Detailed information is available at http://www.eclipsecon.org/2008/index.php?page=sub/&id=207.  (P.S.  There is still time to shape this session so if you want to see something specific around BIRT scripting included, email me soon)

    The other session is called ”Amazon Web Service Report” and is a fast-paced 10 minute look at using the BIRT Designer to create a report from a Web Service.  Detailed info is available at http://www.eclipsecon.org/2008/index.php?page=sub/&id=209

    If you haven’t already done so, you can register for EclipseCon by clicking on the image below.

    I'm speaking at EclipseCon 2008

    by vdodson at January 02, 2008 10:02 PM

    Planet NetBeans

    sandip chitale's blog: NetBeans 6.0 FCS compatible Code Templates Tools on NetBeans Plugin Portal

    Only yesterday I discovered that the Code Template Tools module was not working with NetBeans 6.0 FCS. I have fixed the issue and uploaded the module on NetBean Plugin Portal. The older, NetBeans 5.x compatible module can be downloaded from here.

    UPDATE: I have improved the Surround With... Action (Ctrl+J T) for interactive use. Now it shows a pop up dialog with a list of templates. You can select a template and type ENTER or double click to insert the template in the editor. If the editor has some selected text then the templates using the ${selection} parameter are shown at the top of the template list. You can just type the template prefix to select a matching template quickly.

     

    January 02, 2008 09:24 PM

    Java.net Weblogs

    Social Software for Glassfish available!

    Sun recently released its "Social Software for GlassFish". It is available through the update center for 9.1 and 9.1 UR1 releases.

    by Manveen Kaur at January 02, 2008 09:14 PM

    ONJava

    Dealing with large code bases

    If you haven’t already, be sure to read Steve Yegge’s post on his experience of dealing with large code bases (it’s a bit long post but an excellent read).

    He explains the maintenance nightmare of his 500.000 lines of code game written in Java and quite correctly concludes that code size is a crucial problem for big software projects.

    My minority opinion is that a mountain of code is the worst thing that can befall a person, a team, a company. I believe that code weight wrecks projects and companies, that it forces rewrites after a certain size, and that smart teams will do everything in their power to keep their code base from becoming a mountain. Tools or no tools. That’s what I believe.

    I know this seems too much at first, but it’s actually quite common for projects that are developed over the few years period. Especially when you have a team that changes team members (even juniors) on regular basis, fast development pace and limited amount of resources for project management (aren’t there always?).

    Steve goes then on explaining how, from his point of view, refactoring doesn’t help much in this case since it will only enlarge a code base and actually make things even worse. I don’t see it that way, since a better organized code is definitely more readable and easier to maintain. The other problem I often see with refactoring is team’s reluctance to perform them for two reasons: laziness and fear. Both of these are psychological and related with “if ain’t broken don’t fix it” approach. So the team see the part of the system as “not ideal” but working and usually dedicates resources to “new features” and customer demands.

    The “fear” part means that people (in general) are not eager to take responsibility for doing risky modifications which can possibly break the whole system. I find this especially hard in cases when modifications include data layer (database schemes) and a huge amount of “live” data. This kind of “refactoring” impose a big risk on the current system, since you have one chance to do it right, it can be very time consuming and if something goes wrong it’s hard to go back (if it is possible at all). Badly designed database schemes tend to live in systems for the long time, so be sure to put an extra effort trying to make them as good as possible in the first place.

    In the end, Steve decided to reimplement the whole application using Rhino (JavaScript for the JVM) and try to keep the code base under the 200.000 lines of code (which is by some theories an upper boundary of how much one developer can handle).

    So taking for granted today that VMs are “good”, and acknowledging that my game is pretty heavily tied to the JVM - not just for the extensive libraries and monitoring tools, but also for more subtle architectural decisions like the threading and memory models - the rational answer to code bloat is to use another JVM language.

    One nice thing about JVM languages is that Java programmers can learn them pretty fast, because you get all the libraries, monitoring tools and architectural decisions for free.

    While I agree that JVM languages are one of the greatest advantages of JVM as a development platform, I would take Ola Bini’s side on this matter, who says in his post

    Now, if I would have tackled the same problem, I would never reimplement the whole application in Rhino - rather, it would be more interesting to try to find the obvious place where the system needs to be dynamic and split it there, keep those parts in Java and then implement the new functionality on top of the stable Java layer.

    That’s exactly why I think dynamic languages and frameworks (APIs) for their integration in Java should be an important tool in every developer’s tool box. There are places in your application where both programming approaches makes more sense over the other and the possibility to combine them to make a better architecture of your project can only be a good thing. And of course, it would improve maintainability of your projects as well, both in code size and ability to make appropriate refactoring and improvements while you go.

    by Dejan Bosanac at January 02, 2008 08:51 PM

    A