Skip to main content

I Want to Take You Higher

Posted by editor on June 1, 2006 at 7:27 AM PDT

The JVM co-opts Visual Basic

A comment from javakiddy on the poll results caught my eye, as it talks up one of the more interesting items from JavaOne that got drowned out in the GWT excitement and the open-source / Linux-licensing rancor... namely, the revealing of Semplice, which brings Visual Basic to the Java platform:

VisualBasic on the JVM I am quite interested in. Not that I want to start writing in VB, but I can see potential for allowing a lot of programmers to escape 'single vendor lock-in' with minimal retraining, while also gaining a performance boost in their applications thanks to JIT/hotspot. Whether or not any of those coders will 'upgrade' to Java itself we will have to wait and see (I suspect not!) but the fact that it opens up the market at little should be welcomed.

This was mistakenly proclaimed as a "second language" for the the JVM, something that Ken Arnold noted was off by about 198 languages. But still, it's a reminder that Java-the-language and Java-the-VM are two different things -- meaningfully coupled, but neither dependent on the other -- and that we continue to see profound interest in bringing other languages and their developers to the JVM, as it represents a popular and important solution to issues of compatibility, security, and more.

There are several helpful responses to be found in today's Forums.
Re: EJB3 @generatedvalue not working, rahulbiswas writes:
"You shouldn't need to use the @TableGenerator annotation. What chris is trying to point out is that in all likely hood you _actually_ have duplicate primary keys. Since you manually inserted the record with primary key 1, the persistence provider has no way of knowing that '1' as a primary key has already been used. One solution is, as chris pointed out, that you find the table being used to store the primary key and manually update the sequence to reflect that the primary keys, that you manually inserted, have been used."

Chris Campbell talks transparency in Re: [JAVA2D] Transparent pixels in PNG/Buffered Image:
"First, it's best to avoid getScaledInstance(); there are better/faster ways to do what you want (see the Java 2D FAQ [1]). Second, in order to preserve the transparency from your original image, you'll need to call g2d.setComposite(AlphaComposite.Src) before copying the original into the new image. Allow me to suggest some code that will resolve both of the above issues in fewer steps."

In Also in
Java Today
the interview JSF and JSP: What's New in Java EE 5: A Conversation with Ed Burns and Jan Luehe features a talk with Ed Burns (co-specification lead for JSR 252, JavaServer Faces 1.2), and Jan Luehe (spec lead for JSR 245, Java Server Pages 2.1), discussing new JSF and JSP features in Java EE 5. the JSP and JSF common expression language, AJAX, and the role annotations play in dependency injection.

If you're working with AJAX you've reduced bandwidth by sending just
needed data as XML rather than requesting a whole new page--but are you
making unnecessary requests? Bruce Perry says "Making HTTP requests
willy-nilly from AJAX applications is almost never a good idea or design
decision. The server side of the equation may not be able to handle the
flood of requests. The client side of the AJAX application may have some
of its requests time out or abort, which will disrupt the user experience
that is meant to be AJAX's strength." In the article An AJAX
Caching Strategy
, Bruce shows how to tighten up your code.

David Van Couvering explains The Synchronized Web in today's Weblogs:
"James Governor of RedMonk coins a new term for web applications that can run online and offline and keep its data synchronized"

In Tricks and Tips with NIO part I: Why you must handle OP_WRITE, Jean-Francois Arcand writes:
"As promised at JavaOne, I will start discussing what I've learned when designing Grizzly, the HTTP front end of GlassFish. I will try to not restrict mu observations to Grizzly, but to NIO based server in general. For the first installment, I will discuss why handling the OP_WRITE operation-set bit."

Brian Leonard has more details about Trying out JBoss' Seam (Continued):
"In my previous blog entry I converted a standard JSF / EJB 3.0 application to one that uses JBoss' Seam framework. I covered Seam's primary feature, direct integration of JSF with EJB 3.0, eliminating the Managed Bean. In this entry, I'm going to show off Seam's validation support."

In Projects and

Carla Mott answers questions about GlassFish asked at JavaOne, with GlassFish BoF Summary. Among the topics raised: whether GlassFish is production-quality, will clustering be added to GlassFish, why does the project use TestNG instead of JUnit, and why should users switch to GlassFish?

Robert Stephenson's blog Graduation Day, part I points out four graduations from the GELC incubator. "Two of the projects are in Portuguese and one is in Turkish, reflecting the "G" (for "Global") in GELC and the international nature of itself. "

In today's
News Headlines

Registered users can submit news items for the href=""> News Page using our
news submission
. All submissions go through an editorial review before being
posted to the site. You can also subscribe to the href=""> News RSS

Current and upcoming Java

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

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 href=""> Archive.

The JVM co-opts Visual Basic