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

Blogs by Community: GlassFish

• Adopt a JSR  • Embedded  • GlassFish  
• Global Education and Learning  • Identity Management  • IoT  
• Java Communications  • Java Desktop  • Java Enterprise  
• Java Patterns  • Java Tools  • Java User Groups  
• Java Web Services and XML  • JavaFX  • JCP  
• JDDAC  • Jini  • JXTA  
• Mac Java  • NetBeans  • Open JDK  
• Portlet  • Robotics  • Sun Grid  
• Sun RFID and Sensor  • [no association]  


GlassFish

GlassFish Monitoring allows you to monitor the state of various runtime components of the application server. This information is used to identify performance bottlenecks and tuning the system for optimal performance, to aid capacity planning, to predict failures, to do root cause analysis in case of failures and sometimes to just ensure that everything is functioning as expected. GlassFish...
on Aug 20, 2009
Java Persistence API defines a standard object/relational mapping using POJOs. In JPA, a persistence unit is described using "persistence.xml", bundled with the web application, injected into your web application and then POJOs are used to access all the information from the underlying persistence mechanism such as a database. JPA can injected into your application couple of different ways as...
on Aug 19, 2009
TOTD #93 showed how to get started with Java EE 6 using NetBeans 6.8 M1 and GlassFish v3 by building a simple Servlet 3.0 + JPA 2.0 web application. TOTD #94 built upon it by using Java Server Faces 2 instead of Servlet 3.0 for displaying the results. However we are still using a POJO for all the database interactions. This works fine if we are only reading values from the database but that's...
on Aug 17, 2009
TOTD #93 showed how to get started with Java EE 6 using NetBeans 6.8 M1 and GlassFish v3 by building a simple Servlet 3.0 + JPA 2.0 web application. JPA 2.0 + Eclipselink was used for the database connectivity and Servlet 3.0 was used for displaying the results to the user. The sample demonstrated how the two technologies can be mixed to create a simple web application. But Servlets are meant...
on Aug 14, 2009
NetBeans 6.8 M1 introduces support for creating Java EE 6 applications ... cool! This Tip Of The Day (TOTD) shows how to create a simple web application using JPA 2.0 and Servlet 3.0 and deploy on GlassFish v3 latest promoted build (58 as of this writing). If you can work with the one week older build then NetBeans 6.8 M1 comes pre-bundled with 57. The example below should work fine on that as...
on Aug 13, 2009
The GlassFish High Availability allows to setup a cluster of GlassFish instances and achieve highly scalable architecture using in-memory session state replication. This cluster can be very easily created and tested using the "clusterjsp" sample bundled with GlassFish. Here are some clustering related entries published on this blog so far: TOTD #84 shows how to setup Apache + mod_proxy balancer...
on Aug 12, 2009
"Extensibility" is a major theme of Java EE 6. This theme enables seamless pluggability of other popular Web frameworks with Java EE 6. Before Java EE 6, these frameworks have to rely upon registering servlet listeners/filters in "web.xml" or some other similar mechanism to register the framework with the Web container. Thus your application and framework deployment descriptors are mixed...
on Aug 11, 2009
In my last blog entry, I went over getting a YUI widget working on JSF2. This time, let's go over what's required to move that widget into a JSF component. No Java required, but a fair bit of JavaScript. In a lot of ways, this is just like other components that I've written about. The tricks are much the same - saving values into a JavaScript context. Including scripts into the component,...
on Aug 9, 2009
So you need to include JSON libraries in your Maven project. The only option that seems to be currently available is using json-lib with the following dependencies:         <dependency>             <groupId>net.sf.json-lib</groupId>         ...
on Aug 7, 2009
Now that Apache Wicket 1.4 is available, migrating from previous versions is pretty straight forward. Change the version in your POM file as: <wicket.version>1.4.0</wicket.version> And that's it! The complete dependency may look like: <dependency>   <groupId>org.apache.wicket</groupId>   <artifactId>wicket</artifactId>  ...
on Aug 6, 2009
TOTD #86 explained how to get started with deploying a Apache Wicket application on GlassFish. This Tip Of The Day (TOTD) will show how to add pagination to your Wicket application. The blog entry "JPA/Hibernate and Wicket Repeating Views with Netbeans" Part 1 and 2 explain in detail how to create a CRUD application using NetBeans, JPA, Hibernate and Wicket. This blog uses the data created in...
on Aug 5, 2009
This Tip Of The Day (TOTD) explains how to add pagination to your Rails application. Create a simple Rails scaffold as: ~/samples/jruby >~/tools/jruby/bin/jruby -S rails paginate ~/samples/jruby/paginate >~/tools/jruby/bin/jruby script/generate scaffold book title:string author:string ~/samples/jruby/paginate >sed s/'adapter: sqlite3'/'adapter: jdbcsqlite3'/ <config/database...
on Aug 3, 2009
If you are using Warbler to create a WAR file of your application and deploying on GlassFish or any other Servlet container, then you are likely seeing the following error during deployment: [#|2009-07-30T15:29:50.788-0700|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=17; _ThreadName=httpWorkerThread-4848-0;_RequestID=1d7e8f18-1c9a-4924-bd0b-6a07eba425ba;|WebModule...
on Jul 31, 2009
Apache Wicket is an application framework to build web applications using HTML for markup and POJOs to capture the business logic and all other processing. Why Wicket digs more into the motivation behind this framework. This Tip Of The Day (TOTD) shows how to create a simple Wicket application and get it running on GlassFish: Create a Wicket project as: ~/samples/wicket...
on Jul 30, 2009
This blog introduces a new application that will provide basic tracking of your running distance and generate charts to monitor progress. There are numerous similar applications that are already available/hosted and this is a very basic application. What's different about this ? The first version of this application is built using JRuby, Ruby-on-Rails, GlassFish Gem, MySQL, and NetBeans...
on Jul 29, 2009
Starting with build #56, GlassFish v3 now comes pre-installed with Apache Felix Service Component Runtime, which is an implementation of OSGi Declarative Service Specification. This bundle is located in modules/ directory and is started automatically when server starts.
on Jul 24, 2009
Are you using GlassFish for development, deployment/production, testing, teaching or in other interesting ways ? Help us fill out this short survey so we understand you better. The survey will not take more than 5-10 minutes of your time. blogs.sun.com/stories has a partial list of production deployments of GlassFish. Send us an email at stories@sun.com if you are using...
on Jul 16, 2009
This blog has moved here var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); var pageTracker = _gat._getTracker("UA-3111670-3"); pageTracker._initData(); pageTracker._trackPageview();
on Jul 9, 2009
Received a "certificate of attendance as speaker" for recently concluded FISL 10. This is sweet, thanks FISL organizers! It certainly adds a personal touch to the whole experience. I don't remember receiving a personal certificate like this :) Technorati: conf fisl brazil glassfish netbeans mysql eclipse
on Jul 8, 2009
This blog has moved here var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); var pageTracker = _gat._getTracker("UA-3111670-3"); pageTracker._initData(); pageTracker._trackPageview();
on Jul 6, 2009