Showing posts from December, 2015

JavaOne 2015 Session: EJB 3.2/JPA 2.1 Best Practices with Real-Life Examples by Gohar

I have recently watched my friend Ahmed Nabil Gohar 's session at JavaOne 2015. It's really a clear and straight to the point session. I'm sharing with you the sessions details (inluding the YouTube + the presentation downloadable link) as mentioned in his post . Session ID: CON7535 Session Title: EJB 3.2/JPA 2.1 Best Practice with life examples (Download Link) Session Type: Conference Session Session Abstract: This session’s speaker, an architect, discusses lessons learned from using JPA and EJB to support a high-volume, high-performance applications. These best practices don't only involve JPA/EJB but also its integration with other Java EE 7 technologies. They also include coding best practices, testing and production practices. The presentation focuses primarily on some Key concepts such as persistence context, lazy loading, caching, flushing, dirty checking, transaction and connection demarcation. This is a fast-paced presentation with many code samples. Cate

Creating JSF/CDI Maven project on Eclipse

While I was working on a JSF and CDI example, I thought it would be useful to mention the steps required to create JSF and CDI Maven project. You can find the bellow steps to do so. Tools: Eclipse Luna that's shipped with the M2E plugin by default. So no need to install the plugin yourself. WildFlye 8.x. 1- Select from the main menu File->New->Other. Then select Maven->Maven Project. 2- Click the Next button and then check "Create a simple project (skip archetype selection)". 3- Write the Group Id and the Artifact Id then select Packaging as WAR. 4- Click the Finish button to create the project with the bellow structure displayed in the Navigator view. 5- As you can see there is no deployment descriptor file (web.xml) as there is no WEB-INF folder. Also by checking on the Project Facets (select the project then ALT+ENTER then choose from the left menu Project Facets), we can see that the version of the Dynamic Web Module is 2.5 and the Java

DynamicReports and JasperReports with JSF, Servlet and CDI

In this example, I will show how to integrate DynamicReport and JasperReports with Servlet and CDI. Tools: TIBCO Jaspersoft Eclipse  Luna Service Release 2 (4.4.2). WildFly 8.x application server. This is a screenshot from the project hierarchy on Eclipse. 1- The pom.xml file contains the required dependencies for the Servlets + JSF + CDI + DynamicReports. <project xmlns="" xmlns:xsi="" xsi:schemaLocation=""> <modelVersion>4.0.0</modelVersion> <groupId>com.ithinkisink</groupId> <artifactId>DynamicReportsWithJSFServletsAndCDI</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>DynamicReportsWithJSFServletsAndCDI Maven Webapp</name> <dependencies> <depend