JAR file is file archiver which collects/groups different files and folder into a format which represents one file. The format of JAR file is an uncompressed format. Pack200 is a tool that can be used to compress and decompress a jar file. Below is a simple example of how we can use Pack200 tool to…… Continue reading Decompressing JAR file
Month: May 2017
Compressing JAR file
JAR file is file archiver which collects/groups different files and folder into a format which represents one file. The format of JAR file is an uncompressed format. Pack200 is a tool that can be used to compress jar file. Below is a simple example of how we can use Pack200 tool to compress the file…… Continue reading Compressing JAR file
Binding single http request type to multiple web resource methods in JAX-RS Application
This post explains how to bind one type of http request to multiple methods of a web resource. Sometimes we need to design a web resource in such a way that we can bind two different yet related web url to different methods. 1) Different url meaning different in their purpose 2) Related url meaning…… Continue reading Binding single http request type to multiple web resource methods in JAX-RS Application
Setter injection example with more than one argument (@Autowired)
In this post under Spring core, I explains how to instruct Spring framework to call a setter method (which take more than one argument) while creating a bean. In most of the cases, the setter methods of a class takes only one argument but if a case arises where a setter method has to take…… Continue reading Setter injection example with more than one argument (@Autowired)
JAX-RS Simple Example
This post explains with an example how to create a simple JAX-RS application. We will create a web resource with two methods, one method to handle get requests and another method to handle post requests, as shown below The resource name is name of the class itself. WebResource Code 1 package resource; 2 3 import…… Continue reading JAX-RS Simple Example