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 


J2EE

Ken Saks from the EJB group in GlassFish has written up some samples for the new EJB 3.0 APIs. There are samples for Stateless, Stateful and Message Driven Beans and all include the source, instructions for deploying and at least one client. Take a look to become more familiar with this technology. Tim Quinn has published a page describing how deployment works in GlassFish with examples...
on Jan 9, 2006
Geronimo 1.0 was released last week. Apache Geronimo is a new, open source, J2EE 1.4 certified application server. It is built from many established open source projects, like OpenEJB, Tomcat and the Derby database so it already has some pedigree. The more I think about it, Java developers are in a great position. There is a great choice of open source J2EE app servers, Geronimo, Jonas, JBoss...
on Jan 9, 2006
GlassFish is targeting Feb 6 as the release date for Beta and it's just over a month way. MileStone 4 is the hardcode freeze build which means only approved bug fixes are allowed in the workspace at this time. See the download page to download the server and for the list of bugs fixed in this bundle. Aside from many bug fixes added, I noticed that this bundle checks that each application...
on Jan 3, 2006
In earlier articles we have discussed about using Java Persistence API in a web application and in a multi-tier Java EE application. In this article I shall talk about a few custom JSP tags (the links in that page are broken, but when you download the complete bundle it includes a page where links work.) that I have developed to use Java Persistence API in JSPs. Collectively the tags are...
on Jan 2, 2006
The first month of the The Aquarium has gone very well. We had seen an increase in news related to the Java WSDP, Java EE 5 and the GlassFish developer community and we wanted to have a good way to collect these news and then broadcast them to a wider audience. I wanted to expand on our previous use of RSS, but it seemed that a plain aggregation would just not be enough, so I talked with a few...
on Jan 2, 2006
Some time ago, a project I participated as a team manager, called my attention. The development team was constantly complaining about the complexity they had to grapple with for implementing every single use case. When asked whether their difficulty lay in the technological aspects, or even if the core business involved was too complex, they reported that their problem was elsewhere. Namely the...
on Dec 21, 2005
It's relatively easy to enter multilingual text into a rich client, Swing application. Doing so in a browser-based, web application isn't always as easy. If you're interested in how to avoid data loss as characters move from browsers to database, you may want to take a look at this recent Java EE tech tip: Charset Conversions from Browser to Database. As always, your feedback and suggestions for...
on Dec 20, 2005
I wrote an example web application that uses Java Persistence API. My servlet code looked like this: public class RegistrationServlet extends HttpServlet { // inject default EntityManager @javax.persistence.PersistenceContext private EntityManager em; @Resource private UserTransaction utx; public void service ( HttpServletRequest req , HttpServletResponse resp) throws...
on Dec 19, 2005
More and more I have found blogs about features in GlassFish . Sahoo has written several blogs about Java Persistence. For example, writing a processor to automatically generate your persistence.xml and Introduction to using Java Persistence API in a 3-tier Java EE application Other Java Persistence examples include tech tips on Converting POJOs to a persistent entity. Pramod posted a blog...
on Dec 15, 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. Earlier I had written about how to use Java Persistence API in a web application. This time I shall extend the example to include EJBs and application client so that we have a multi-tier (web->ejb->...
on Dec 15, 2005
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 Netbeans.next 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