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

Struts is the grandaddy of Java webapp frameworks so it's fitting that we start our tour here. I think it's probably safe to say that Struts was the first model 2 (web MVC) framework to gain widespread adoption in the Java arena and to this day it's still used by many people. Just to ensure everybody is up to speed, model 2/web MVC is an architectural pattern that promotes separation of...
on Jan 26, 2006
In route to their final storage destination on the World Wide Web, characters move through various layers of programming interfaces and can cross software and hardware boundaries. This article provides helpful hints and best practices for accurately transporting character data from browser to database … and back again.
on Jan 25, 2006
Recently I posted the current version of the javadocs in project GlassFish. Included are the javax APIs and the com.sun APIs that have been implemented. Although the title on each pages says J2EE 1.4 SDK, these have been updated to include Java EE 5 APIs. We're working on updating the title and headers over the next few weeks. We also plan to update the site with each promoted build so the...
on Jan 20, 2006
I try not to complain about lack of documentation. So in this blog entry, I'll show how simple it is to pass in arbitrary data from JSP pages to SiteMesh decorators. For every piece of information that you want to pass from the JSP page to the SiteMesh decorator, create a &ltcontent&gt tag. In the following example, I want to pass in two pieces of data, a "page name" and a "site...
on Jan 19, 2006
Can I use Hibernate in GlassFish? is a question I have been asked several times in recent past? Well, the answer is Yes & No(as of now), depending on what you are trying to use it as. By the way I must clarify, it's a NO only temporarily. Let's understand why: Yes: If you want to use Hibernate as yet another persistence framework, there is already a nice and detailed posting about how to use...
on Jan 17, 2006
Milestone 5 is the beta release for GlassFish and that started with build 32. Currently build b32b is available for download which has a few more bug fixes than build 32 and is more stable. Milestone 5 is expect out Feb 6. Also available is build 33. This build is off the main trunk of the workspace and contains the bug fixes found in the milestone 5 builds as will as other bug fixes and...
on Jan 14, 2006
For completeness, I wanted to show how the JSP pages from the JSTL version could be written using the JSP XML syntax. Unsurprisingly, many people don't even know of its existence and, as I've blogged before, there aren't that many situations where you'd want to use it to write pages by hand. Should you need to, here are a couple of examples of how you would go about it using the XML syntax....
on Jan 12, 2006
Since we announced GlassFish at JavaOne last June people have asked about an Eclipse plugin for GlassFish. Some time ago the GlassFishplugins project was created on java.net just to encourage the creation of different plugins to popular IDEs. Early on we added pointers to the NetBeans plugins for GlassFish and last week the initial version of the Eclipse plugin was added to the project. I'...
on Jan 10, 2006
It's been a while since the last blog entry, but let's continue our look at the webapp frameworks with another model 1 implementation, this time using the JavaServer Pages Standard Tag Library (JSTL). In Comparing webapp frameworks : Model 1 with scriptlets we saw that model 1 applications typically have some boilerplate code at the top of the page to "set the scene" and the use of scriptlets...
on Jan 10, 2006
A couple of users have asked how to get Hibernate running with GlassFish. I remembered an article on just that topic written for SJSAS 8.1 although most of the information still applies. Ram describes how to configure Hibernate 2.0 to run on the app server. I had forwarded pointer to that article to several people who found it useful so I thought I would try to reach a larger audience.
on Jan 10, 2006
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