OK. Here is a poll. How many developers feel that it is very easy to try simple examples out with a Java EE implementation like GlassFish? One caveat is that you must be "absolutely not familiar" with the technology. For example, how easy is it to try out a servlet sample that updates a database using a resource?
In my view, it is not as easy as I'd have liked, at least with GlassFish. There is...
on Nov 4, 2006
Over the last few years, I've written many articles on different topics in the Java/Open Source field. Just for the record, here is a list of all the articles I've written over the past couple of years on various topics. Who knows, someone might find something useful somewhere!
Integrating Maps into Your Java Web Application with Google Maps and Ajax
Want to provide maps in...
on Nov 1, 2006
If you're close to Edinburgh and want to know more about JavaServer Faces, I'm holding a public 4-day course starting November 14th.
Here's the synopsis:
This intensive JavaServer Faces (JSF) training course is designed and developed by Kito Mann, author of the best selling JSF book JavaServer Faces in Action and founder and Editor-in-Chief of JSFCentral.com, (a site devoted to the JavaServer...
on Oct 30, 2006
What is persistence context propagation?
A persistence context(PC) is a set of managed entity instances in which for any persistent entity identity there is a unique entity instance (this definition is taken from Java Persistence API spec, section 5.1). An Entity Manager(EM) provides the necesarry APIs to interact with a persistence context.
There is often a need to access the entities in the...
on Oct 27, 2006
jMaki is a framework that provides a lightweight model for reusable Ajax-enabled widgets of your own design or for those extending existing toolkits. jMaki allows you to easily add widgets from multiple toolkits on one web page. In addition to supporting toolkits such as Dojo, Yahoo, Google and Scriptaculous, jMaki now supports Mochikit widgets too.
The latest NetBeans plugin supports drag and...
on Oct 22, 2006
In Java Persistence API, Embeddable class is used to represent composite primary key or share common columns between entities. But when sharing Embeddable classes, you should be cautious whether its fields or properties are mapped to the database due to the unclear spec. I will introduce the supplementary rules to the spec which is implemented in GlassFish(TopLink Essentials).
First, guess what...
on Oct 16, 2006
My quest to implement a Little League website with all Java technologies starts today...when I get home from the kids' soccer games. After announcing my next public experiment to create a Little League baseball site for my community, I'm beginning to realize the enormous task that I've created for myself. Regardless, I'm committed to it, and it must happen.
The current, existing site is for <...
on Sep 30, 2006
We love baseball in my home, and my three boys play in our local Little League. I usually welcome the opportunity to help out with the league since I get to spend some extra time with the kids and perform community service too.
Little Leagues always need volunteers, and our league pinned me as the new "Information Officer." That means webmaster since my primary focus will be to organize our web...
on Sep 29, 2006
GlassFish V2 have lots of great new features such as clustering, administration support for clustering, enable new Web Services stack and many bug fixes. We really want to get feedback on what the community thinks about them so in the spirit of transparency and community building we are putting effort into stablizing milestone 2 before it is released.
Last week the team went into bug fix...
on Sep 26, 2006
Previously I bloged about How to use Java Logger in Java SE mode - a workaround to change logger type. But the workaround is no more needed. GlassFish v2(from b17) implemented a new feature - the configuration for logger type for this.
It's very easy to use Java logger in Java SE mode, just add following property to persistence.xml. <property name="toplink.logging....
on Sep 22, 2006
jMaki allows Java developers to use popular AJAX-style widgets as a JSP tag library or JSF component. Recently we updated project jMaki's website with a new look. It's now easier to get started adding widgets to your web apps or creating your own widgets, finding the downloads and getting information on how you can participate.
Also, check out the widget gallery Greg added. The gallery allows...
on Sep 18, 2006
In my software engineering course, I assign readings from a SafariU
bookshelf. Having read the delightful book My Freshman
Year: What a Professor Learned by Becoming a Student, I realized that
I needed a mechanism for checking that they actually did the reading. At
the beginning of each class meeting, I give a 5 minute quiz, and then we
all look at the answers:
I wrote a...
on Sep 8, 2006
The hype of JPA has slowed down and time has come to apply this to real applications.
To use JPA properly knowing JPA spec is not enough because JPA spec doesn't cover all aspects and the behaviour can be a little bit different in persistence providers. Especially 2nd-level cache is the one. Which is not covered by JPA spec, but most providers provides it. To increase performance...
on Sep 7, 2006
TopLink Essentials(GlassFish JPA RI) can be used also in Java SE mode as you know. I will talk about how to change the default logger to java logger in this article.
When you use TopLink in Java SE, you see following log messages generated by a default logger.
[TopLink Info]: 2006.09.06 05:03:05.221--ServerSession(24529889)--Thread(Thread[main,5,main])--TopLink, version: Oracle TopLink...
on Sep 6, 2006
As we all know, J2ME has a HUGE market share in the mobile phone market. I am sure most J2ME interfaces to web applications are built using custom web framework extensions, or specialized content emitters for mobile content.
StrutsME uses a lightweight serialization protocol to allow J2ME clients to invoke Struts web application actions. The current featureset includes:
1) Forwarding to another...
on Aug 27, 2006
I am currently on a Struts contract, after working on a JSF (MyFaces) project for the past year. So what is it like moving back?
The first hurdle is coming up to speed with the changes since Struts 1.0, which was the last Struts version I used almost 3 years ago. Tiles, Validator, Modules, Plugins, JSTL support, Spring support, Hibernate support, IBatis support and numerous Action and Form...
on Aug 20, 2006
Last May we shipped V1_Milestone 7 of GlassFish, a Java EE 5 compatible, production quality application server. We are currently working on the V2 release which adds more enterprise level features. Today we promoted milestone 1 for the V2 release which contains JAXWS 2.0.1, clustering and many bug fixes. Check it out!
To help better communicate our plans for V2 and future releases of...
on Aug 17, 2006
Here's the summary:
This seminar covers the tools and techniques for developing responsive, attractive AJAX-enabled applications using JavaServer Faces (JSF)...
on Aug 14, 2006
As this theserverside.com announcement shows, although OpenJPA is still in the Apache incubator and not yet certified as a Java Persistence API compliant provider, it is not far from that stage. There is a source download available and I must say, it is quite easy to build. If you want to use it in GlassFish, then it's even easier. It is as simple as these intuitive steps:
Step #1: Download and...
on Jul 27, 2006
So far we've seen how we can get Seam running on GlassFish with Hibernate Persistence and Java Persistence. Modifications were needed to the Seam core classes as well as the application classes. Fortunately, JBoss has made the modifications to their core classes in time for their Seam FCS release. In this entry we'll outline the steps to get the Seam FCS release up and running on GlassFish...
on Jul 25, 2006