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]  


Bunyan is a NodeJS library that rethinks logging in some really useful ways. I wrote a Java port you can use in your applications. In particular, with Bunyan, logs are JSON - and Bunyan comes with a great filtering and analysis tool. The Java port uses some innovative techniques to make logging simple and foolproof - in particular, a use of AutoCloseable to make a logging code simple and...
on Jan 18, 2015

Java Enterprise

Note this blog is obsolete, see for the current blog Just like the previous blog entry "JSF 2.3 Using a CDI managed Converter" you can now do the same thing with Validators. So how does that look in code?   @FacesValidator(value = "myValidator", managed = true)  public class MyValidator implements Validator {     @Inject...
on Jan 16, 2015
JavaLand 2015 Conference Picks With only 44 business days to go until JavaLand 2015, I’d like to share my conference picks. I’m including my sessions for completeness, and naturally I recommend you attend them, but I’ll also include an alternate that I’d attend if I wasn’t speaking at that time. Tuesday, 24 March 2015 0900, Wintergarden, Welcome Keynote: 20 Years...
on Jan 16, 2015
Note this blog is obsolete, see for the current blog Although a converter is considered an attached object (part of the view state) commonly people ask support for CDI injection into a converter. Since we did not want to upset the original contract of what a converter is we had to look at how we can best support the requested use case. We already had an annotation...
on Jan 15, 2015
Validating Oracle Java Cloud Service HA One of my favorite applications from my Sun Java System Application Server days was the Cluster JSP Sample Application. In a cluster configuration fronted by a load balancer, this simple JSP provides a nice summary of which cluster node handled the request as well as the ability to test session failover. Therefore, why not try it on the Oracle Java Cloud...
on Jan 7, 2015
Note this blog is obsolete, see for the current blog Happy New Year to all! Enjoy!
on Jan 1, 2015
JavaLand Training Day Teaser With only 61 days to go until JavaLand 2015, it's high time for a preview of the Training Day session I am pleased to offer with my friend Oliver Szymanksi. Briefly, this session is a full day treatment of the parts of Java EE 7 that intersect with the world of HTML5 web development. While the session is an update of the successful class we offered at JavaOne San...
on Dec 26, 2014
Note this blog is obsolete, see for the current blog As we are working towards our first JSF 2.3 milestone release I want to tell everyone once it is out please start testing. With your help we are able to catch so much more before we ship. This is why we are going to be doing milestone releases. So once the first one is out try it out! I hope you all will make...
on Dec 24, 2014
Note this blog is obsolete, see for the current blog Today I participated in a phone call on Adopt-a-JSR for the MVC 1.0 specification. While we do not have a whole lot of things that can be worked upon by a JUG at the moment I do want to point out that once we start publishing SNAPSHOT releases and milestones we will be looking forward to your contributions! I...
on Dec 19, 2014
Note this blog is obsolete, see for the current blog The @Resources annotation makes it possible to define resources that you are going to lookup at runtime. The example describes a way to lookup a datasource that is mentioned in the @Resources annotation on the class.   @Resources(value={    @Resource(name="ShoppingCartDB", type=javax...
on Dec 18, 2014
By Kyle Banker, Peter Bakkum, Shaun Verch, Douglas Garrett, and Tim Hawkins MongoDB in Action, Second Edition Save 39% on MongoDB in Action, Second Edition discount code jnmongdbat Dedicated text search engines can go beyond indexing just web pages to indexing extremely large databases. Text search engines can provide capabilities such as spelling correction, suggestions as to...
on Dec 17, 2014
Note this blog is obsolete, see for the current blog With the @Resource annotation you define the resource you want to inject. Note this annotation is an older style annotation. Going forward the recommendation is to use the CDI @Inject annotation. In code   @Resource  UserTransaction utx; Enjoy!
on Dec 15, 2014
By Radu Gheorghe and Matthew Lee Hinman, Elasticsearch in Action Geospatial data is all about making your search application location aware. For example, to search for events that are close to you, or to find restaurants in a certain area, or to see which park
on Dec 14, 2014
Note this blog is obsolete, see for the current blog With the @PreDestroy annotation you annotate a single method in your class that you want to be called just before your object (EJB, JSF managed bean, CDI bean) is taken out of service. In code   @PreDestroy  public void destroy() {    // put your destroy code here.  } Enjoy!
on Dec 13, 2014
Note this blog is obsolete, see for the current blog The @PostConstruct annotation makes it possible to run initialization code just before something (EJB, JSF managed bean, CDI bean) is put into service. In code   @PostConstruct  public void init() {    // put your initialization code here.  } Note the the method annotated with @...
on Dec 12, 2014
By Joshua Suereth and Matthew Farwell, SBT in Action Save 39% on SBT in Action with discount code sbtjn14 at If you've spent any time working in a team of software developers, you'll have noticed one thing. People make mistakes. Have you ever heard of the old joke about asking 10 economists a question and getting 11 different answers? It's like that when you've got a list of...
on Dec 6, 2014
By Rick Umali, Learn Git in a Month of Lunches Save 40% on Learn Git in a Month of Lunches with discount code lgitjn14 at Git, the open-source version control system built for speed and efficiency, implements a distributed repository system. Being distributed means that there is no one central repository for your source code. Instead, any repository can be the
on Dec 4, 2014
By Roland Kuhn and Jamie Allen, Reactive Design Patterns Save 40% on Reactive Design Patterns with discount code rdpjn14 at Computers are meant to perform repetitive tasks for us, quickly and without human errors. But sometimes programs are written without regard to scalability and when they get popular, they
on Dec 3, 2014
By Elijah Meeks for D3 in Action One of the most popular information visualization charts in D3 is also one of the most maligned: the word cloud. Also known as a tag cloud, the word cloud uses text and text size to represent the importance or frequency of words. Figure 1 shows a thumbnail gallery of 15 word clouds derived from text in a species biodiversity database. Oftentimes, word clouds...
on Nov 10, 2014
By Avi Pfeffer for Practical Probablistic Programming Save 40% on Practical Probabilistic Programming with code pppjn at Probabilistic programming is a way to create systems that help us make decisions in the face of uncertainty. Probabilistic reasoning combines our knowledge of a situation with the laws of probability to determine those unobserved factors that are critical to...
on Nov 10, 2014