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

Doing our presentation for JavaOne, Fabiane Nardon and I, we had several points about what we could put on slides. Unfortunately, we can't put everything we already done using EJB3, because we have only 1 hour to speak. This post shows some stuff we decided take out from official presentation. Patterns out from Presentation When we decided to show new Design Patterns, the main idea was to show...
on Mar 21, 2007
Configure_GenericJMSRA_For_ActiveMQ The previous blog entries showed how JMS providers like Jboss Messaging and MantaRay could be used with GlassFish. ActiveMQ is also one such JMS provider http://activemq.apache.org/ , the following steps describe the configurations required to use ActiveMQ with GlassFish.  Install GlassFish V2 and ActiveMQ 4.1 GlassFish V2 : https://glassfish.dev....
on Mar 19, 2007
Sometime, you will need to read some text from the resource files in your application from the Struts Action class. The easier way which most developers are using is to open the resource file using the java.util.ResourceBundle class, which will open the file and read its content. PropertyResourceBundle properties=(PropertyResourceBundle)ResourceBundle.getBundle(propertyFileName); This will open...
on Mar 10, 2007
Presentation and lab material from the first jMaki day are now posted on line. This jMaki day was available to Sun internal folks only because we wanted to get feedback from a small group. The feedback was good overall but looks like we need to provide more details on data binding. The presentations in the morning included an overview of jMaki and Phobos and how Sun is using Web 2.0...
on Feb 27, 2007
As some of you might know, the JavaOne 2007 proposal notifications went out last week. My proposal titled "Java Persistence API: Best Practices and Tips" has been accepted. In thinking about the contents for this session, I realized that in addition to the best practices about regular stuff such as flush mode, caching, etc., it would be nice if I can cover some of the things based on the...
on Feb 26, 2007
JMS Service Availability in GlassFish V2 JMS Service Availability in GlassFish V2  Availabilty is the proportion of time a system is in a functioning condition (Wikipedia). It is a vital requirement for any enterprise application.This article talks about how jms service availability can be guaranteed for applications deployed on GlassFish and SJSMQ.  GlassFish V2 allows...
on Feb 17, 2007
TopLink Essentials 2.0? TopLink Essentials(GlassFish JPA implementation) now come to have a new version 2.0. But, don't be surprised, this is just versioning change from 9.1. TopLink Essentials 2.0 and 9.1 are the same version. Originally TopLink Essentials had a version like 9.0(GlassFish v1), 9.1(GlassFish v2) after the version of Sun Java System Application Server. Since TopLink Essentials is...
on Feb 17, 2007
When Adobe donated their JIT-compiling JavaScript VM to the Mozilla Foundation in Nov. '06, it had some pretty huge implications. The VM boosted Flash's own JavaScript execution speed by 10x -- seeing those kinds of improvements in Firefox could enable a whole new class of "thicker" web applications. So, when will we see it? And, why did Adobe donate the code? Over at Ajaxian, I just posted a ~30...
on Feb 7, 2007
Configuring Generic JMS RA for inbound load balancing. In the last blog we saw how MantaRay peer to peer advantage can be leveraged by applications (using JMS) in GlassFish. One issue that was presented there was duplication of message processing by GlassFish clustered instances when consuming messages from a topic destination. Ideal production requirements can  be met, if one and...
on Jan 9, 2007
Distributed (JMS) messaging applications using GlassFish and MantaRay Distributed (JMS) messaging applications using GlassFish and MantaRay     Generic JMS RA (1.7) that is bundled with GlassFish V2 enables applications deployed on GlassFish to use almost any JMS 1.1 compliant message broker. This article talks about how applications (typically Message Driven Beans)...
on Jan 8, 2007
To get prior releases of Seam running on GlassFish, you had to patch some Seam application modules. With this release, there is no patchwork necessary - the folks at JBoss (RedHat) have done a great job of streamlining the process. In fact, after you download and unpack the Seam 1.1.0.GA release from here, you will see a GlassFish sample application (which is essentially the booking application...
on Jan 4, 2007
Well, we have made it. Java SE 6 and JDBC 4.0 are now final and have been released. It has been an interesting and rewarding adventure! Java SE 6 SDK bundles Java DB which provides a JDBC 4.0 driver. I suspect we will see quite a few JDBC 4.0 drivers soon and I will update this blog with the latest info. JDBC 4.0 brings many new features such as improved LOB support, SQL XML data type support...
on Dec 11, 2006
One of my Sun collegues (Bobby) noticed that glassfish web server stops responding soon after the startup. The most interesting thing he found was that he can access the webserver using http://localhost:8080 where as accessing it using IP address (http://x.x.x.x:8080) wasnt working. The plot thickened when we found that the webserver can be accessed once using the IP address and from second time...
on Dec 8, 2006
When you're adding a table record and need a primary key, you can choose to generate one yourself or let the Java Persistence API do that for you. In this entry, I'm going to review a couple of the alternatives the JPA provides you for creating primary keys. The JPA Options If you want JPA to generate a primary key for you, you just need to add an @GeneratedValue along with the @Id annotation...
on Dec 5, 2006
Integrating JBoss Messaging (1.0.1) with Glassfish V2 (Build 26) using Generic JMS RA (1.7) Generic JMS RA (1.7) that is bundled with Glassfish V2 enables applications deployed on Glassfish to use almost any JMS 1.1 compliant message broker. This article talks about how applications (typically Message Driven Beans) deployed in glassfish can use JBoss Messaging as the JMS provider using Generic...
on Dec 4, 2006
The latest jMaki release is the beta release candidate for the next major jMaki release. It has several new features including The addition of containers (Yahoo tabbed view, Dojo tabbed view and jMaki dynamic) Templates to define styles jMaki glue used to tie widgets together using publish/subscribe mechanism Support to load all resources from the classpath for JSF view of jMaki At the same...
on Nov 29, 2006
The Java Persistence API is beautiful. I create a class, annotate it with @Entity and @Id and I'm on my way. That is, however, assuming the Id is of a simple type (I'm a firm believer that primary keys should be of a simple type, unrelated to the data they index.). However, if you find yourself in a situation where you must use a composite key (hopefully this is only because you're connecting...
on Nov 29, 2006
GlassFish at FOSS.IN 2006 GlassFish team from Sun Microsystems will not only talk about GlassFish & Java EE platform at the forth coming FOSS.IN 2006 event, but will also have a booth where they will answer questions about GlassFish and show case GlassFish technology that includes a demo app built using GlassFish and NetBeans IDE. The complete source code and build scripts for the demo app...
on Nov 23, 2006
Another one of Seam's compelling features is its ability to manage "conversations". A Seam conversation provides fine grain control over the traditional HTTP session scope so that "concurrent conversations" can occur in HTTP session, which usually occur when users open another browser window or tab. The problem is best described with an example. I've added a confirmation...
on Nov 15, 2006
JMS provides powerful asynchronous communication, but it is message-oriented and doesn't support InputStream/OutputStream at all. So it is nearly impossible to send a large file without loading it on memory. How can we acheive this? Let me talk an enhancement of JMS for this issue. ActiveMQ provides InputStream/OutputStream extension on JMS Connection. And MantaRay JMS also supports similar...
on Nov 15, 2006