Chain Responsiblity Design Pattern – Java
The Concept of this Design Pattern is decoupling the sender and receiver. Each receiver doesn’t know about it’s sender but contains the next receiver(successor to it) …
The Concept of this Design Pattern is decoupling the sender and receiver. Each receiver doesn’t know about it’s sender but contains the next receiver(successor to it) …
In order to create a custom constraint for a bean validator, first you should declare an interface and decorate it with the following annotations: @Target …
Creating a simple MySql Table: CREATE TABLE `YairShinar`.`employee` ( `idemployee` INT NOT NULL , `firstname` VARCHAR(45) NULL , `lastname` VARCHAR(45) NULL , PRIMARY KEY (`idemployee`) …
JAX-B is the xml modeling for Java. It makes it easier to marshell classes. import javax.xml @XmlRootElement public class Book{ private string isbn; }
The Java Message Service (JMS) API is a Java Message Oriented Middleware (MOM) API for sending messages between two or more clients. It is an …
A socket connection means that two machines have information about each other’s network location IP Address and TCP port, and that they can send or …
A Servlet is an object that receives a request and generates a response based on that request. To deploy and run a servlet, a web …
JAX-RS stands for: Java API for RESTful Web Services ,hence it is a http uniformed verb based service. Some of The main annotations in JAX …
JAX-WS stands for Java API for XML Web Services. Creating a Service Endpoint Interface (SEI) package com.yairshinar.ws; import javax.jws.WebMethod; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; …
A thread in most cases is a component of a process, and shares it’s resources. In Java – Creating a basic thread and starting it: …