Posted by editor
on June 1, 2006 at 7:27 AM PDT
The JVM co-opts Visual Basic... also:
Forum postings: EJB3 @generatedvalue and transparent PNG pixels
Also in Java Today: What's new in JSF and JSP and Ajax caching strategy
Weblogs: The synchronized web, NIO tricks and tips, and trying out JBoss Seam
Projects and Communities: GlassFish BoF summary and GELC graduations
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 ,
"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 ). 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 xml.com 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 Java.net itself. "
In today's java.net
News Headlines :
Registered users can submit news items for the
href="http://today.java.net/today/news/">java.net News Page using our
form . All submissions go through an editorial review before being
posted to the site. You can also subscribe to the
href="http://today.java.net/pub/q/news_rss?x-ver=1.0">java.net News RSS
Current and upcoming Java
- June 2-4, 2006 - Central Florida Software Symposium
- June 5-6, 2006 - Enterprise Open Source Conference
- June 9-11, 2006 - Research Triangle Software Symposium
- June 15, 2006 - NL-JUG: J-Spring
- June 16-17, 2006 - Salt Lake Software Symposium
- June 20-23, 2006 - Enterprise Java Architecture Workshop Seattle
- July 6, 2006 - Java Forum Stuttgart (JFS)
- July 7, 2006 - Experten Forum Stuttgart
- July 7-9, 2006 - Lone Star Software Symposium 2006: Austin Edition
- July 21-23, 2006 - Central Iowa Software Symposium 2006
- July 24-28, 2006 - O'Reilly Open Source Convention 2006
- July 28-30, 2006 - Desert Southwest Software Symposium 2006
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
Archives and Subscriptions: This blog is delivered weekdays as
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
The JVM co-opts Visual Basic