I am glad to say that in most cases, I do not write a persistence.xml file any more. No, I am not using any IDE to generate it for me, nor has the spec relaxed any requirement. We will discuss some other time why persistence.xml is a necessary evil. Then what has changed? Well, my compiler creates it for me - yes, I said javac creates it for me. When I execute
javac -d . -classpath ... FooEntity....
on Nov 26, 2007
It has been more than 1 year, I was absent in GlassFish. Finishing my study, joining a job and came back to Indonesia, met my families, make me less in touch with java.net, especially GlassFish project.
It's great, I read Arun's blog that we have been into third version of GlassFish. Still I have to read, learn and getting up any new features and improvement on this. Hey, congrat for this!...
on Nov 19, 2007
In this post, a custom Hibernate type is described that uses JAXB 2.0 to store java objects as XML documents in a database, enabling database clients implemented in other technologies to easily process to stored objects.
Hibernate gives the possibility to serialize java objects and store them as byte array in a database. Applications storing serialized versions of java objects may not be...
on Oct 11, 2007
Sun Tech Days Rome 2007 was kick started by Maria Grazia
Filippini (Director General, Sun Microsystems Italy) to a room full of approx
300 audience. She was followed by Corrado Sterpetti (Software Practice Manager,
Sun Microsystems Italy). Both of them addressed the attendees in the local
language. I could not understand any part of the talk (except bongiorno) but the passion was quite visible in...
on Sep 26, 2007
Sun Tech Days
are coming to
Rome (Sep 24-25) and
This is FREE event organized by
Sun Microsystems. Basically Tech Days
are scaled down versions of Java One packed into a suitcase and brought
right to where the developers are as
described by Renita Stafford, Program Manager of Sun Tech Days.
agenda for both the venues is very comprehensive with...
on Sep 24, 2007
The following is the current list of available JDBC 4.0 drivers:
Java DB/Apache Derby
MYSQL Connector/J 5.1
inet software for Microsoft SQL Server(Merlia driver) and for Oracle (Oranxo driver).
Atinav aveConnect 4.0 for Microsoft SQL Server
DataDirect 3.7 has also introduced some JDBC 4.0 features
on Sep 18, 2007
Today we announced the general availability of GlassFish v2 and associated products notably the Java Application Platform SDK update 3. In the previous release of the SDK we had included the SWDP bits. We are no longer doing that with this release of the SDK. Instead you can get most of the components from the GlassFish update center. Already available via the update center are jMaki, Phobos,...
on Sep 17, 2007
Java DB, Sun's supported distribution of Apache Derby, has been upgraded from Java DB 10.1.3.1 which was bundled with Glassfish V1, to Java DB 10.2.2.
The new release of Java DB includes many new features and improvements including:
JDBC 4.0 Support
Improved on-line backup support
Support for Scrollable and Updatable ResultSets
Grant and Revoke Support
a $JAVADB_HOME/bin directory with easier to...
on Sep 17, 2007
Sun Microsystems is a
Diamond Sponsor of
Rails Conf Europe 2007 (Sep 17 - 19). We'll demonstrate how
NetBeans 6 IDE provides a
complete development environment for Rails application
GlassFish provides a
robust and modular deployment platform
jMaki provides a
complete framework for creating
Here is list of sessions from Sun speakers:...
on Sep 13, 2007
In a project I'm working, we are moving from using Hibernate to Toplink, so I thought that i just had to change the provider and everything would work perfect, but....
the Following code it is used to call a native query.
The query return a single integer. When calling the method getSingleResult() on the query object If I use Hibernate I can cast the result object...
on Aug 23, 2007
Here are some quotes from a recent report by
Forrester Wave on the "Application
Among major vendors, Sun Microsystems Inc., has dramatically improved its
standing in this year's evaluation of applications servers for
service-oriented architecture (SOA) and business process management (BPM) by
Forrester Research Inc.
Sun trailed the field in Forrester's 2004...
on Aug 13, 2007
This demo uses the Dynamic Faces library (with JSF) to illustrate a stock lookup service. To simplify things for the demo, there are only three artifacts used in the demo:
One JSP page
One Managed Bean
First, let's take a look at the UI:
The UI is pretty basic. You enter one or more space delimited stock symbols in the "Symbols" text field and press the "...
on Jul 30, 2007
Recently I've implemented two minor but useful features for TopLink Essentials(TLE) v2 b54(or GlassFish v2 b54). One is the category-specific logging level configuration which is useful for who want to see only SQL logs and the other is the cascade refresh query hint which control the cascade scope of the refresh query dynamically. Let's see what these are...
on Jul 6, 2007
Servlet 3.0 (JSR 315) was filed and approved by the JCP executive committee. See voting results here.
Unlike some of the previous releases of the specification which were just maintenance of the specification we will be revising the servlet API to use some of the modern language features. One of the key features that is planned for this release is plugability and extensibility which is also...
on Jul 6, 2007
Eclipse 3.3 (codename Europa) was
earlier today. As mentioned
have an exciting news for GlassFish
for Java EE developers has the capability to register GlassFish V1,
V2 and V3 containers from within the IDE. It supports web application
directory deployment and has a fully integrated debugger.
on Jun 29, 2007
earlier, Eclipse Europa was
scheduled to launch at Jun 29th, 6am PT. I decided to get up early (I'm a
morning person anyway) and watch the countdown.
And it was indeed a countdown on eclipse.org. At 6:10am PT, Europa went live!
Congratulations to the Eclipse community for yet another timed release.
Europa has a download targeted for Java EE developers
It seems like all the...
on Jun 29, 2007
Eclipse Europa is launching
tomorrow and we have an exciting news for you.
Stay tuned ...
on Jun 28, 2007
The core MobileFaces library is currently based on the JSF 1.1 specification. The library not only makes it easier to develop mobile web applications, but it also utilizes a key extensible piece of the JSF architecture - RenderKits and Renderers. This allows the same underlying component model to render not only in HTML, but markup that is suitable for mobile devices (such as WML). Here, we'll...
on Jun 28, 2007
I noticed that Paul Dowman has created a Ruby on Rails AMI for use on Amazon EC2 (Amazon's rented CPU service). It allows you to fire up a fully-configured RoR environment that you deploy your application to. It's not yet multi-server, but it's coming, so it won't be too long before you can launch your own production environment with a few keystrokes.
Now, can we have one of these for the Java...
on Jun 27, 2007
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog
OK, native queries in JPA. Not really well documented. Of course I understand that we really should not be doing that, but hey there are times where it is just plain easier.
The following code snippet goes after an Oracle sequence and gets the value.
EntityManager em = this.getEntityManager();Query query = em....
on Aug 22, 2007