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

Blog Posts by Community

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


Open JDK

Operators in Java work much like they do in mathematics, producing a value from one or more operands. An operand is any quantity on which an operation can be performed and in Java these include primitives and objects. Basic arithmetic operators in Java include addition (+), subtraction (-), multiplication (*), division (/) and the assignment operator (=), all of which constitute the binary...
on Nov 11, 2013
Much of what you do in Java is to define classes that package data and functionality together by concept to represent the desired problem-space element. When you instantiate a class, you create an object that has it's own piece of memory made up of other objects. Java has a peculiar means of manipulating these elements in memory. This is to say even though you treat everything as an object, you...
on Oct 25, 2013

Global Education and Learning

Remote systems cannot be ignored. They are the heart of actor programming. The ability of an actor application to smoothly scale out geographically is a tremendous advantage in meeting the challenges of growth. Today we will learn the basics of setting up for remote interaction between actors. If you wish to set up to try coding a set of remote actor systems and do not as yet have a...
on Nov 10, 2013
Introduction Configuration of an actor system affects the way in which the Akka actor libraries and microkernel interact with actors. The visibility of a configuration is limited to the specific actor system with which the configuration has been associated. The effective configuration for any given actor system is a merger of three sources. In Fig. 1 below the precedence of...
on Oct 30, 2013

JCP

Last week I posted a blog entry where I urged people to join the JCP process to further JavaEE. In this blog entry I will list ways you can participate with a specification that could be part of the next JavaEE release (note the table below lists the specifications that were part of JavaEE 7). Spec Website Mailing lists Issue tracker JavaEE spec tracker https://java.net/projects/javaee-spec/...
on Nov 10, 2013

Java Desktop

As I get closer to deploying our 4th Operational Release of the Duke's Choice award winning GEONS Ground System Software I'm combining the NetBeans Platform with custom JavaFX views. This pattern provides some very useful "At-a-Glance" displays associated with daily data product generation. I'm fortunate to have access to quite a bit of complex and timely data much of which is custom to the...
on Nov 10, 2013
This is the Voice of Ground Control! NASA Ground Systems and Java Technology I am Sean Phillips and have been a software engineer for a while now.  For the last few years I've been lucky enough to be a lead developer for some NASA Ground System software that has been deployed directly into the Mission Operations Control room.  (Hence the righteous reference in the title of this blog)...
on Nov 8, 2013

Java Enterprise

Jersey 2.4.1 has been released! See the release notes for more information. Or download it from here.
on Nov 9, 2013
Wondering how you programmatically create a flow and use it? 1. Create the Java annotated flow 2. Create the pages package flow;import java.io.Serializable;import javax.enterprise.inject.Produces;import javax.faces.flow.Flow;import javax.faces.flow.builder.FlowBuilder;import javax.faces.flow.builder.FlowBuilderParameter;import javax.faces.flow.builder.FlowDefinition;public class EnterFlow...
on Nov 8, 2013
When I posted JSF Tip #32 - Override a JSF renderer Twitter user @john_waterwood asked me how you would define a new tag for an existing component and the overridden renderer. Well it is fairly easy, see the 2 steps below! 1. Create your renderer 2. Register it Creating your renderer package org.glassfish.jsf.overrideRenderer;import java.io.IOException;import javax.faces.component.UIComponent;...
on Nov 7, 2013
In a previous blog entry I blogged about stateless JSF before, this time I will include the entire page so you can see how silly simple it actually is. And you can also go directly to Subversion to get the sample there. The entirely stateless page <?xml version='1.0' encoding='UTF-8'?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml...
on Nov 6, 2013
Say you have a problem with how a particular component renders and you want to do it a bit different. Well in JSF that is not a problem there is a hook-in that you can use to override how a renderer does it rendering. The sample below shows you how to do it. You will have to do 2 things. 1. Register your own renderer for a given renderer type 2. Implement your own renderer. First lets make sure...
on Nov 5, 2013
If you read the blog entry about migrating to @Named annotation you might wonder how you would migrate your @ManagedProperty annotations. Since CDI is a specification on its own, it does not deal with JSF specific artifacts. However with very little work you can have a very similar setup. First we define our own custom annotation @ManagedProperty package test.managedproperty;import java.lang....
on Nov 1, 2013
See the release notes for what was fixed. If you want to download it, see this page for more information. Enjoy!
on Oct 31, 2013
One of the newer features introduced in JAX-RS 2.0 is the support for validating resource classes with Bean Validation Bean Validation support comes in Jersey 2.x by adding jersey-bean-validation module to the class-path. The following sample shows how to use Bean Validation with JAX-RS 2.0. I show how to define a custom constraint which will validate any Enum class. Additionally I will show...
on Oct 30, 2013
Since Mojarra is available as a standalone JAR you can opt to update your Glassfish installation with a newer version. How would you do that? Well it is simple. Make sure your Glassfish container is not running Grab the latest JAR from http://repo1.maven.org/maven2/org/glassfish/javax.faces/ Replace the javax.faces.jar in the modules directory of your Glassfish directory with the downloaded JAR...
on Oct 29, 2013
Sometimes when you are working with JSF you might need to understand what is happening beneath the covers. It could be because you think a component is misbehaving and you want to make sure that is the case before you file a bug. To facilitate this you can turn the logging up and in Mojarra there are several loggers that you can use. The following is a non-exhaustive list: application...
on Oct 28, 2013
If you are having a problem with your JPA queries and you are trying to understand what SQL queries it actually sends below the covers you can configure the JPA runtime to show the actual SQL statements it sends over. How? Well for EclipseLink you would add the following to your persistence.xml file.   <property name="eclipselink.logging.level" value="FINEST"/>...
on Oct 27, 2013

GlassFish

JavaEE 7 and Glassfish 4.0 were released a little while ago. What is in the future? Well, see the Aquarium blog for the latest Glassfish Roadmap. And that is it. Enjoy!
on Nov 4, 2013
Tyrus 1.3 has been released, get more information here. Or download it from here. Glassfish users should take all the Tyrus JAR files and replace them in the modules directory with the downloaded ones to get Tyrus 1.3 working in Glassfish. And that is it. Enjoy!
on Nov 2, 2013