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]  


Java Enterprise

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
By Roland Kuhn and Jamie Allen, Reactive Design Patterns Save 40% on Reactive Design Patterns with discount code rdpjn14 at manning.com. 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’re not able to keep up with the usage. Twitter, for example, was simply...
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 manning.com. 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
And it is tutorial time! Where are the JavaEE tutorials for each of the JavaEE versions? JavaEE 5 tutorial JavaEE 6 tutorial JavaEE 7 tutorial Enjoy!
on Nov 6, 2014
If you want to find a specific version of the JavaEE API documentation the following links connect you to them: JavaEE 5 API documentation JavaEE 6 API documentation JavaEE 7 API documentation Enjoy!
on Nov 5, 2014
Another CDI alignment issue done In code @ViewMap@InjectMap viewMap; In words you can now inject the view map for use in your CDI managed bean. Enjoy!
on Oct 31, 2014
The following spec issues were addressed #1333 - Support @Inject for UIViewRoot #1332 - Let CDI handle #{view} #1331 - Let CDI handle #{application} And the following other issues that have a 2.3 impact were addressed #3425 - Apply Java SE 7 Strings in switch #3427 - Apply Java SE 7 multi-catch #3444 - Apply Java SE 7 multi-catch: part 3 of 3 #3443 - Apply Java SE 7 multi-catch: part 2 of 3 #3427...
on Oct 30, 2014
And now you can inject the UIViewRoot In code @InjectUIViewRoot viewRoot; Enjoy!
on Oct 29, 2014
With all of my formal JavaOne conference obligations satisfied, day four was dedicated to listening. Another day, another hotel. The community keynote had a little bit of everything and was in the San Francisco Marriott, bringing to four the total number of separate buildings I had to visit for JavaOne. The complete keynote is available at Oracle. The room was full, and Intel VP Michael...
on Oct 28, 2014
Nothing really fancy, but #{application} EL resolving is now done using a 2.3 CDI producer. Note there won't be @Inject support for this as it is not referring to a specific typed artifact. Enjoy!
on Oct 27, 2014
While it looks like not a whole lot has been going on issue wise some additional work not covered by specification issues has be done a) Javadoc cleanup for JavaSE 8 b) Apply diamond operator to sources And the following specification issues were handled: #1254 - contracts attribute too restrictive. #1328 - Let CDI handle #{session} EL resolving #1327 - Verify @Inject HttpSession support Enjoy!
on Oct 23, 2014
And the MVC specification project is now public at http://mvc-spec.java.net/ so we are on the way! Enjoy!
on Oct 21, 2014
Day three was definitely the high point of the conference for me. As anyone who has spoken at tech conferences knows, the point in time when all of one's sessions have been given is the turning point between tempered enjoyment and pure enjoyment of the conference. I was blessed with the scheduling this year; I was all done after Wednesday. This put me in a great frame of mind to enjoy the...
on Oct 17, 2014
In JSF Tip #32 - Override a JSF Renderer and JSF Tip #34 - Override JSF renderer and create a new tag for it we have described ways to override a renderer. Well, would you believe there is yet another way? It is as simple as adding an f:attribute tag as a child of the component you want to change the renderer for. <h:panelGroup>  <f:attribute name="rendererType"...
on Oct 16, 2014
A quick run down on the issues fixed since last time #1325 - Let CDI handle #{applicationScope} #1311 - Let CDI handle #{facesContext} EL resolving #1323 - Support @Inject for the applicationMap #1322 - Simplify #{externalContext} to use ExternalContextProducer #1309 - Support @Inject for ExternalContext #527 - Support @Inject for FacesContext Please test drive the latest 2.3.0-m01-SNAPSHOT and...
on Oct 15, 2014
Another CDI alignment issue done In code @ApplicationMap@InjectMap applicationMap; In words you can now inject the application map for use in your CDI managed bean. Enjoy!
on Oct 15, 2014