J2EE And SOA Architecture

In this article, you’ll learn how to design and develop service-oriented architecture (SOA) frameworks using the Java 2 Platform, Enterprise Edition (J2EE). By adapting an SOA framework, your organization can maximize loose coupling and reusability between systems. This article will take a high-level overview of several iterations over an SOA framework that will meet the needs of … Continue reading J2EE And SOA Architecture

MDB != JMS and vice-versa

Basics A Message Driven Bean (further referred to as MDB) is just another EJB like Stateless, Stateful or a Singleton. It’s specified using the @MessageDriven annotation. MDBs are used for asynchronous message processing They are similar to Stateless EJBs since both of them are pooled by the EJB container However they differ from Stateless EJBs … Continue reading MDB != JMS and vice-versa

How to use CodePro AnalytiX to develop Automated Unit testing

Sometimes, we need to develop Automated Unit testing for a complicated logic or some utility functions that we can not execute directly from our application. For example, we and client are developing a interesting module at the same time, we need to create some stubs or drivers or mock objects for our logic can be executed. … Continue reading How to use CodePro AnalytiX to develop Automated Unit testing

JEE – Frameworks for Layering reusable Architectures

The default overall enterprise framework of Java is called Java EE. Java EE strongly emphasis a layered architecture. It's a quite large framework and learning every aspect of it can take some time. It supports several types of applications. Extremely small and simple ones may only use JSP files with some scriptlets, while larger ones … Continue reading JEE – Frameworks for Layering reusable Architectures

Avoid NullPointerException in Java

I would like to share with you some tips to deal/prevent NPE in your code: The BIG IMPORTANT rule: do NOT assign / pass / return null value and keep your code as cohesive as possible. Programming tips / techniques: 1. Return an empty collections instead of null. For example: List: Set: Map: 2. Return … Continue reading Avoid NullPointerException in Java

Lập trình theo kiểu Aspect Oriented Programming (AOP) sử dụng Spring Framework

Aspect Oriented Programming Trong khoảng 5 năm trở lại đây, một khuynh huớng lập trình mới xuất hiện. Nó được gọi là AOP để phân biệt với kiểu lập trình OOP đã có sẵn. Nguời viết muốn cung cấp cho bạn đọc một kiến thức cơ bản về kiểu lập trình mới mẻ này, và … Continue reading Lập trình theo kiểu Aspect Oriented Programming (AOP) sử dụng Spring Framework

Java 8 Tutorial: Trọn bộ Java 8 new features từ Pluralsight

Giới thiệuHôm nay mình sẽ share một bộ video Trọn bộ Java 8 new features từ Pluralsight . Với hơn 4 giờ học, các bạn sẽ nắm được tất cả những đặc điểm nổi bật nhất trong Java 8 như Lambda Expression, Stream, Date and Time API, ...This course covers the most useful parts of Java 8. This update … Continue reading Java 8 Tutorial: Trọn bộ Java 8 new features từ Pluralsight

Java 8 Tutorial: Lambda expression and Streams in Java 8

Giới thiệu Hôm nay mình sẽ share một bộ video học Java 8 từ LiveLessions. Với hơn 3 giờ học, các bạn sẽ nắm được những đặc điểm nổi bật nhất trong Java 8 là Lambda Expression và Stream. Tóm tắt nội dung Cách sử dụng những đặc điểm quan trọng nhất trong Java 8: Lambda Expressions và Streams. … Continue reading Java 8 Tutorial: Lambda expression and Streams in Java 8

Java 8 Tutorial: Giới thiệu Nashorn Engine

Java 8 Tutorial: Giới thiệu Nashorn Engine 1.Giới thiệu Sự ra đời của Java 8 trong năm 2014 này có rất nhiều thay đổi mới trong đó chúng ta phải kể đến việc phát triển Nashorn Engine nhằm thay thế cho Rhino Engine cũ và tích hợp chúng vào trong JVM để làm cho lập … Continue reading Java 8 Tutorial: Giới thiệu Nashorn Engine

Checked và Unchecked Exception trong Java

Checked và Unchecked Exception trong Java Cơ bản Trong Java có 2 loại exception: checked và unchecked. Tất cả các checked exception được kế thừa từ lớp Exception ngoại trừ lớp RuntimeException. RuntimeException là lớp cơ sở của tất cả các lớp unchecked exception. Đó cũng là dấu hiệu để nhận biết đâu là checked … Continue reading Checked và Unchecked Exception trong Java