Archives de l’auteur : davidhxxx

Configuring the webapp-contact project to build an Angular web application with Spring Boot (1/9)

Go back to the table of contents for Developing a Contact Management Application with Angular 1.5X and Java At the end of this part, we will have a Spring Boot application relying on AngularJS for the front-end with the minimal configuration to develop … Continuer la lecture

Publié dans Angular, AngularJS, Bootstrap, java, Spring Boot | Laisser un commentaire

weblogic tips

How to generate the maven weblogic plugin suitable for your weblogic server ? From the $WLS\server\lib, execute the command : java -jar wljarbuilder.jar -profile weblogic-maven-plugin Several jars files are generated, among the weblogic-maven-plugin.jar. Then, you must deploy weblogic-maven-plugin.jar as a … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Context binding when a function is called in Javascript

Often, we could the code : this.that = this; or this.self = this; But what represent self and that ? Contrary to this which refers the object in the current context, self and that are not Javascript reserved words. These … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

AngularJS

Use facilities provided by the JS language to have a clean code How to minimize the number of global variables ? Wrap Angular components in an IIFE (Immediately-Invoked Function Expression). Components declared in an IIFE don’t become global variables. How … Continuer la lecture

Publié dans Non classé | Marqué avec | Laisser un commentaire

Maven TIPS

How to specify another JDK as which one used by default (that is, which declared in JAVA_HOME) ?

Publié dans Non classé | Laisser un commentaire

Spring Boot FAQ

Q. How to get a  deployable WAR on a standalone Tomcat with Spring Boot ? Several steps are needed : In the pom of the web application, the packaging must be set to war such as  <packaging>war</packaging> In the pom of … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Java code and naming conventions

Why having Java code and naming conventions ? Code and naming conventions are important to programmers for a number of reasons: – The essential of the lifetime cost of software is its maintenance. We coud said that in general, a line … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Java Map and thread-safety

Can we use no synchronized java.lang.Map instance fields in a multi-threaded context without explicit synchronization?No synchronized implementations of the java.util.Map interface such as java.util.HashMap or java.util.TreeMap are fast implementations as these are not thread-safe. In some use cases, the thread safety … Continuer la lecture

Publié dans java, performance en JAVA, thread | Laisser un commentaire

déclarer un EJB3

Declaration by annotation of a remote EJB   @Stateless @Remote public class MonEJBDistantImpl implements MonEJB{ public maMethode(){ } } Declaration by annotation of a local EJB @Stateless @Local — par défaut local public class MonEJBLocalImpl implements MonEJB { public maMethode(){ } } … Continuer la lecture

Publié dans Non classé | Laisser un commentaire

Design Pattern : decorator implementation in Java

The source code of design patterns can be viewed and downloaded here : https://github.com/ebundy/java-examples/tree/master/design-patterns What is it ? The decorator design pattern is a structural pattern.It allows to design a class to decorate another class in a dynamic way. Decorator is … Continuer la lecture

Publié dans design pattern, java | Marqué avec , , | Laisser un commentaire