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

Blogs by Community: Java Enterprise

• 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]  


Jini

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

Java Desktop

From 0 to First Hit with Grails Support by Glen Smith and Peter Ledbrook, authors of Grails in Action, Second Edition Grails is a next-generation Java web development framework that generates great developer productivity gains through the confluence of a dynamic language, a Convention over Configuration philosophy, powerfully pragmatic supporting tools, and an agile perspective drawn from the...
on Oct 25, 2012
Do You Want to Get This Message? by Mark Fisher, Jonas Partner, Marius Bogoevici, and Iwein Fuld, authors of Spring Integration in Action Spring Integration allows you to selectively process messages and define alternative routes within the system. In this article, based on chapter 6 of Spring Integration in Action, you'll see how you can limit the scope of what your components will handle by...
on Oct 19, 2012
Architecture and Star Schema by William D. Back, Nicholas Goodman, and Julian Hyde, authors of Mondrian in Action Mondrian is expecting to perform its analytic magic on top of a star schema. In this article, based on chapter 3 of Mondrian in Action, the authors cover the general architecture of an analytic solution and then explore star schemas, the "best practice" database modeling technique...
on Oct 17, 2012
Searching at Scale by Trey Grainger and Timothy Potter, authors of Solr in Action One of the most appealing aspects of Solr, beyond its speed, relevancy, and powerful text searching features, is how well it scales. In this article, based on chapter 3 of Solr in Action, the authors explain how Solr is able to scale to handle billions of documents while still maintaining lightning-fast search...
on Oct 12, 2012
by Raymond Roestenburg and Rob Bakker, authors of Akka in Action Save 40% on Akka in Action and other selected books. ScalaTest is a xUnit style testing framework. An actor is an object that can be reached through an address, processes messages from a mailbox and sends messages to other actors using the same type of addresses. An actor encapsulates state; it does not share this state with...
on Sep 28, 2012

Java Patterns

Do what you think is interesting, do something that you think is fun and worthwhile, otherwise you won’t do it well anyway. Brian Kernighan INTRODUCTION Ladies and Gentlemen, really we went too far with the server-side. Yes, as much as we have dramatically invented ways that shouldn't be invented or at least in the way they are. But as an argument for our defense, we can only reply to that, it'...
on Oct 24, 2012

Java Enterprise

The definition of a PartialStateHolder according to the PartialStateHolder interface:   void clearInitialState()   boolean initialStateMarked()   void markInitialState()   Note that the methods above do not mention that a PartialStateHolder extends from StateHolder. Be aware that if you want to implement partial state saving you will also need to implement the methods...
on Oct 18, 2012
The definition of a StateHolder according to the StateHolder interface:   boolean isTransient()  void restoreState(FacesContext context, Object state)  Object saveState(FacesContext context)  void setTransient(boolean newTransient) Each of the methods mentioned above have a particular role to fulfill during the JSF lifecycle. Transient or not The setTransient method can...
on Oct 17, 2012
Since state saving happens as part of the JSF lifecycle a component, validator, converter, etcetera that wants to participate in state saving can do so by implementing or using one or all of the below mentioned APIs. StateHolder PartialStateHolder StateHelper StateHolder This is the original API that a component needs to implement if it wants to participate in what is now considered full state...
on Oct 16, 2012
During the JSF lifecycle state will be restored at the beginning of a request (if any state is available) and state will be saved at the end of a request (if any state is available). Why is it important to know what happens during request processing? Well, if you know how JSF state saving works you can optimize your application to perform better. The next blog entry will describe one of...
on Oct 16, 2012
The following blog articles are part of the JSF Converter series Introduction to JSF Converters The JSF Converter API The NumberConverter The DateTimeConverter Writing your own Converter Packaging your JSF Converter
on Oct 11, 2012
In the previous blog entry you learned how to write your own converter. Say you want to distribute this converter to others. How can you make sure the JSF runtime knows about the converter without needing to add it to the faces-config.xml of the web application. As described in the previous blog entry you need to register the converter in a faces-config.xml. To make it a redistributable...
on Oct 5, 2012
Writing you own converter is a pretty straight forward process. It really comes down to implementing the Converter API. Say you want to write a converter that will convert colors. Lets assume we support, "Red", "Green" and "Blue".   package color;  public class ColorConverter implements Converter {    public Object getAsObject(FacesContext context, UIComponent...
on Oct 4, 2012
How would you use the JSF DateTimeConverter? If you are working with dates you probably have had a need to display them in the correct format, or even had to parse them? Well, lets start off with using dateStyle. The example below will use the "long" date style as defined by the server Locale. Valid values are "default", "short", "medium", "long", and "full". <html xmlns:h="http...
on Oct 3, 2012
How do you use the JSF NumberConverter? If you are outputting a value, how would you show a currency code along with it? <html xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">  <h:outputText value="#{user.income}">   <f:convertNumber currencySymbol="USD" type="currency"/...
on Oct 2, 2012

Java Web Services and XML

    Nowadays there are too many NOSQL database, with different architecture and data structure. However with much variety they share one thing in common: Only search information from the keys. A good option is uses other service to help the NOSQL databases. In this post will how the Lucene does work together a NOSQL database, join two world in one application.     The...
on Oct 13, 2012

Java User Groups

Much of my Tuesday at JavaOne 2012 was spent thinking about questions to ask the people I was going to interview, conducting the interviews, and trying to set up interviews for Wednesday. Late in the afternoon I attended the 2012 Duke's Choice Award Winners JavaOne BOF session, followed by the Duke's Choice Award Winners dinner. Today I interviewed: Mattias Karlsson, Java Champion, Stockholm...
on Oct 2, 2012
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. www.oracle.com/technetwork/developer-tools/adf ADF Essential is free for glassfish deployment, and with support US$ 1250/server (/core??), and you will get the source....
on Sep 29, 2012

NetBeans

STUPIDITY is the next level to INTELLIGENCE Anonymous INTRODUCTION Ladies and Gentlemen, right now the web is really living an exciting time. Even in my craziest dreams, I would have never thought that one day I would have the chance to write this blog post and to share with you the story of how I was able to build for my web application, a virtual editor that can run in the cloud and that can...
on Oct 1, 2012