Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: J2EE

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


When Java Persistence API is used in a managed environment (like Java EE container), there is often a deployment step and a notion of deployable module (an ear/war/jar) that represents the boundary of an application. During deployment container/persistence provider can discover managed persistence classes by introspecting .class files bundled in the application. But when Java Persistence API is...
on Dec 13, 2005
Last week I had the opportunity to talk with Tom Ware and Gordon Yorke who are working on the persistence module in project GlassFish. Both Tom and Gordon are from Oracle's Ottawa, Canada office and have extensive knowledge of the TopLink codebase. I got a chance to ask them some questions about persistence in GlassFish. Here's what they had to say. Q. Who is working on EJB 3.0 persistence...
on Dec 7, 2005
Public Review version of the Java Persistence API (JPA) spec suggested a new extension par be used to bundle EJB 3 persistence entity beans. It also suggested a new module type called persistence to be used in application.xml, if user uses an application.xml in their ear file containing persistence entity beans. (Note application.xml is optional starting with Java EE 5.) Lot of developers still...
on Dec 7, 2005
In my last blog I discussed about using Java Persistence API in a web application. In this article I shall talk about a very common mistake that a web-app developer commits and how to fix it. Java Persistence API is part of Java EE 5 platform which is being reference implemented in open source project called glassfish. Code that does not work: Given below is the code snippet of a servlet which...
on Dec 5, 2005
The Java Persistence API is the standard API for the management of persistence and object/relational mapping in Java EE 5 platform. Every Java EE 5 compatible application server will support this API. In this entry I will show how to use this API from a web application in Java EE environment. Since the public review version of Java Persistence API specification, there have been a number of...
on Dec 4, 2005
See Greg's tech tip on using Java technology for the server-side processing of AJAX interactions. He provides sample code for an autocomplete application and shows how to run on GlassFish. Before Abhijit left as project lead, he and Sriramulu published a tech tip on Converting a POJO to a Persistent Entity. The example shows you how to convert a POJO (Plain Old Java Object) to a persistent...
on Dec 1, 2005
Before we dive into the frameworks, I want to drop back to basics to give some context behind why the frameworks exist and what benefits they provide. For this reason, let's look at a naive model 1 implementation of the sample application. If you're already familiar with the whole model 1 vs. model 2 thing, you might want to skip reading this particular entry. Overview An in-depth explanation...
on Nov 23, 2005
During much of his career here at Sun, I've had the pleasure of working with Jerome on several projects. He is a Sun veteran with more than 9 years in Java Software. Jerome started in 1996 to work on the JavaBeans team then moved on to create the Java Plug-in. After a few more years in Java SE, he moved to Java EE land, where he helped with the verifier for J2EE 1.3. He then architectured the...
on Nov 22, 2005
The GlassFish documentation set has many books to help users understand how to use and manage the server. Many of those documents are now on the GlassFish project in draft form. The Developer's Guide, Application Deployment Guide and the Troubleshooting Guide are just a few. See the documentation page for the full list of documents now available and how to participate. The docs are in an...
on Nov 21, 2005
Netbeans support for Java EE 5 features is under way and it's easier to run on GlassFish. Builds of the release are available now and contain annotation support, persistence support, Derby database integration, GlassFish resource creation and registration as well as all NetBeans 5.0 features. To help you get started there are a couple of tutorials. One is a simple hello world...
on Nov 17, 2005
Many people voted on the buttons created for the GlassFish and related technologies web sites. I'm excited to announce that button 3 was the clear winner. You will start seeing this button on various sites related to GlassFish. Thanks for all who participated in the survey.
on Nov 15, 2005
A quick heads-up that Jim, Carla and Amy are going to host an Ask the Experts session on Project GlassFish. Hopefully there will be follow-up sessions on specialized topics.
on Nov 10, 2005
This Ask the Experts session gives you the opportunity to ask questions about GlassFish. Guests are Jim Driscoll, Amy Roh and myself. Submit questions you have about GlassFish to Ask the Experts anytime next week. All questions and answers will be posted on that site as the week progresses. We look forward to your questions.
on Nov 10, 2005
Before we kick off our look at webapp frameworks, let's establish the domain model we're working with. It's pretty simple - blogs and blog entries, residing in a package called domain. Because I want to concentrate on the presentation aspects of the frameworks this time around, I'm ignoring the persistence mechanism. Instead, I'm just assuming that data access will be achieved via a "...
on Nov 9, 2005
Take a minute and choose the button that you like best. The winner will be used on the GlassFish and related technologies sites. Thanks.
on Nov 8, 2005
Last week I gave a presentation on Project GlassFish for the Los Angeles Java Users Group. It was my first time with Los Angeles Java Users Group. Got to meet some cool Java folks. Folks have been asking for the presentation slides so I put it up on the GlassFish "Documents and Settings" section. You can download it here.
on Nov 7, 2005
So, to compare webapp frameworks we need an example web application. I've chosen to build a simple blog. Here are the functional requirements. The home page will display a list of the 3 most recent blog entries, in reverse chronological order. The following information will be displayed for each blog entry. Title If an excerpt is present, the excerpt will be displayed with a "read more" link...
on Nov 4, 2005
After posting Comparing webapp frameworks : Introduction yesterday, I got lots of feedback - some good, some bad. So, why am I doing this? First off, here are some of the negative comments. Imho this is a complete waste of time and it will be another biased comparison without any real use whatshowever. Please spend your time on something useful and don't add another confusing hyped...
on Nov 3, 2005
Struts, WebWork, Stripes, Spring MVC, Wicket, Tapestry, JSF, etc, or even rolling your own. With so many J2EE web application frameworks to choose from, how do you decide which one to use? Several articles (e.g. JavaServer Faces vs Tapestry) and presentations (e.g. Comparing Web Frameworks) already exist, but they generally concentrate on a small subset of the available frameworks. Over the...
on Nov 2, 2005
In the last week or so alot of code has been added to the GlassFish project to support the persistence module . This code includes CMP 2.1 and EJB 3.0 persistence. The EJB 3.0 Persistence code is based on TopLink and contributed by Oracle. Check out the email alias for technical discussions including Sun and Oracle engineers. Download the latest promoted...
on Oct 25, 2005