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]  


Java Enterprise

By Mala Gupta, OCP Java SE 7 Programmer II Certification Guide Save 40% on OCP Java SE 7 Programmer II Certification Guide with discount code jn15ocp at manning.com. You’ll be amazed at how easily you can identify and implement IS-A and HAS-A relationships between classes and objects, if you remember one simple rule—follow the literal meaning of these terms: 1. IS-A—This relationship is...
on Jan 24, 2015
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     MyModel model;    ..  } Note in this example...
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
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 (@FacesConverter) that was being used to define a converter programmatically. To...
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
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
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 testing your JSF application with JSF 2.3 a New Years resolution! Enjoy!
on Dec 24, 2014
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 will tweet and blog about that day and hopefully it will be soon, but as I also...
on Dec 19, 2014
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.sql.DataSource),    @Resource(name="ShoppingCartMail", type...
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 manning.com. 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
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’s area intersects with the area of the city center, you’d work with geospatial data. We’ll call events and restaurants in this context...
on Dec 14, 2014
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
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 @PostConstruct runs only once! So if you are exposing a session bean that gets...
on Dec 12, 2014
By Joshua Suereth and Matthew Farwell, SBT in Action Save 39% on SBT in Action with discount code sbtjn14 at manning.com. 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 manning.com. 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 “official copy” of...
on Dec 4, 2014

NetBeans

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
I had the pleasure to review JavaServer Faces: Introduction by Example by Josh Juneau which has been published by Apress in December 2014. The highlight of the book was the simplicity with which Josh has covered some of the most complicated topics related to JavaServer Faces (JSF). I like how smoothly and seamlessly he can transition from the simple recipes to the more involved and detailed...
on Jan 6, 2015

Java Tools

Save 40% on Apache Cordova in Action with discount code jn15acia at manning.com Ok, that may be just a tiny bit over the top, but most likely there is a bit of truth to it as well. You know how to install Cordova, how to generate native binaries from HTML, and how to make use of fancy device features with plugins. That’s all fairly straightforward: Install a SDK, install the command line tool...
on Jan 18, 2015