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]  

Java Enterprise

Servlet 3.1 is in Public Review now. New features in Servlet 3.1 and changes since the EDR are listed below: support Non Blocking IO ReadListener, WriteListener are added to handle the non-blocking IO. And the corresponding setters are added to ServletInputStream and ServletOutputStream respectively. Futhermore, ServletInputStream#isFinished, #isReady and ServletOutputStream#isReady are added....
on Jan 11, 2013
The following blog articles are part of the JSF Validator series Introduction to JSF Validators The JSF Validator API The LengthValidator The LongRangeValidator The DoubleRangeValidator The RegexValidator The RequiredValidator Writing your own Validator Packaging your JSF Validator Multiple component validation The BeanValidator The FacesValidator annotation
on Sep 17, 2012
In the previous blog entry titled "Writing your own validator" you learned how to write a validator and hook it up for validation. At that time we made it all work using the faces-config.xml file. There is however another way, which we will describe below!   package nohelloworld;  @FacesValidator(value="NoHelloWorldValidator")  public class NoHelloWorldValidator...
on Sep 17, 2012
Since JSF 2 it is also possible to use BeanValidation as specified in JSR 303. The following blog article describes how this JSR has been integrated within JSF 2. With the following JSF managed bean. public class UserInfo {    /**     * Stores the username.     */    private String username;    /** ...
on Sep 17, 2012
Writing your own validator is a straightforward process. It involves implementing the Validator API and making sure you register it properly. Say you want to write a validator that will not allow you to use the string "Hello World" as a value.   package nohelloworld;  public class NoHelloWorldValidator implements Validator {        public void...
on Sep 9, 2012
Note this blog is obsolete, see for the current blog Say you want to make sure that a value is required. <html xmlns:h=""  xmlns:f="">  <h:inputText value="#{user.firstName}">   <f:validateRequired/>  </h:inputText...
on Sep 7, 2012
Note this blog is obsolete, see for the current blog If you want to validate input against a regular expression then you would use the RegexValidator. Say you want to make sure only letters are used for a name. <html xmlns:h=""  xmlns:f="">  <h:inputText...
on Sep 6, 2012
Note this blog is obsolete, see for the current blog Just like the LongRangeValidator before the DoubleRangeValidator validates if the given value is within the given range, but then a range of doubles. Say you want to make sure your donors can donate as little as 1.00 but at most 250.00. <html xmlns:h="" ...
on Sep 5, 2012
Note this blog is obsolete, see for the current blog If you want to make sure a value is within given Long range then the LongRangeValidator is for you! Say you want to make sure your users are at least 13 but at most 18. <html xmlns:h=""  xmlns:f="">  <h:...
on Sep 5, 2012
Note this blog is obsolete, see for the current blog The LengthValidator is one of the standard validators that is specified by the JavaServerFaces specification. It allows you to verify (validate) if the proposed input (submitted value) on a given component is valid. Say you want to make sure the minimum length of a password is 6 characters and up to 12...
on Sep 4, 2012
Note this blog is obsolete, see for the current blog The definition of a Validator according to the Validator interface: void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException The Faces Context is passed in so the validator can introspect various aspects of the request and response. The UI component is passed in...
on Sep 3, 2012
Note this blog is obsolete, see for the current blog During the JSF lifecycle each input value can be validated. As such the JSF runtime allows you to write validators that will take care of that during request processing. Several standard validators are part of the standard JSF runtime. Note that the specification has been written with extension in mind so it...
on Sep 1, 2012

Java User Groups

Toward the end of JavaOne 2012, the editorial team spent an hour or so in the very windy Taylor Street Cafe (a closed street block with umbrellas, tables and chairs, coffee, etc.) with Oracle Ace Director Markus Eisele (@myfear). Markus is a technology consultant, architect, developer, author, and conference speaker. He's also active in communities including Java User Groups, the JBoss...
on Jan 7, 2013
Oracle just give free ADF Essential on Glassfish, a streamline edition of ADF. An interesting thing is there are also OEPE (Oracle Eclipse Plugins) that have ADF inside. which the Jdeveloper edition is far more complete and rich. ADF Essential is free for glassfish deployment, and with support US$ 1250/server (/core??), and you will get the source....
on Sep 29, 2012
OSCON Thursday July 19, 2012 live streaming Table of Contents 1 9:00am OSI - Simon Phipps 2 9:05am Making Magic From Cloud To Client - Mark R. Shuttleworth (Canonical Ltd.) 3 9:30am Open Source: A Recipe For Success - John Mone (Endurance International Group) 4 9:45am An Interview with Gianugo Rabellino (Microsoft) - Edd Dumbill (O'Reilly Media, Inc. ) 5 9:55am Disrupting Hardware: The Next...
on Jul 19, 2012


I am glad our team and me ofcourse, part of the Support mySchool project in WorldBank for Indonesia's Ministery of Education and Culture (MoEC), the URL is The first social media that linked with all the role in our govermental (from ministery directorate, province's education structure, district's educatio structure and schools structure). The public...
on Dec 13, 2012


GlassFish comes preconfigured with Apache Felix Gogo, which is an implementation of OSGi RFC 147, and is a proposed standard shell for OSGi environments. For Glassfish 4.0 there is no longer need to open a separate port to access the shell. The OSGi shell commands are integrated with asadmin, so you can now access the OSGi shell commands via asadmin tool. There is a remote command called...
on Nov 20, 2012


Here are my slides on my "Remoting Retrospective" presentation at JavaOne 2012: Remoting Retrospective (pdf)
on Oct 26, 2012

Java Tools

While I don't normally blog about the exiting world of JVM command line options, this new 7.0 option, which allows you to rotate to a new GC log file, was just so exciting... err... not so widely published that I decided to share. Of course these options only apply when you've used the -Xloggc: option. The settings are; UseGCLogFileRotation, default value: false NumberOfGCLogsFiles, default value...
on Aug 20, 2012

Java Patterns

OSCON Friday July 20, 2012 live streaming Speaker Slides and Video Table of Contents 1 10am Declarative web data visualization using ClojureScript 2 11am Client/Server Apps with HTML5 and Java 3 11:50am Hacking JavaFX with Groovy, Clojure, Scala, and Visage 1 10am Declarative web data visualization using ClojureScript Kevin Lynagh What is Visualization? EdgeBio : bioinformatics...
on Jul 20, 2012