JAR Packer and Unpacker with Pack200 Format in Java
JAR Packer and Unpacker with Pack200 Format in Java Java provides an approach to reduce the size of Jar so that it can travel on HTTP network faster to deploy jar on a website. Pack200 is a format to compress and decompress jar files. It is a HTTP compression that runs faster on network. Pack200 has been specified in JSR 200. There are two components in Pack200. One is used to pack jar files with .pack extension and other is used to unpack
Hibernate Object States
Hibernate Object States In hibernate an entity or object has three states. It can be persistent, detached or transient. All the states are defined with hibernate session. Persistent state object resides in session where as detached and transient or not in session. Objects of detached and transient state can later be made persistent. In this page, we will discuss these states in depth.
How to Show File Extension in Windows 8
How to Show File Extension in Windows 8 To show which type file you are using or seeing, you need to enable the File Extension option in your machine. Follow the bellows steps to see your file extension
1. Go to the any folder or where your file is located.
2. Click on the View. A tab will open.
Upload File Using RESTful Web Services with JAX-RS
Upload File Using RESTful Web Services with JAX-RS Uploading file using Using RESTful Web Services with JAX-RS is easy. We need to create a method in our resource class. The upload method should be annotated with @POST, @Path and @Consumes. @Consumes take the arguments MediaType. MediaType will be MediaType.MULTIPART_FORM_DATA to upload the file. The upload method will take parameters of @FormDataParam. @FormDataParam provides input to upload file.
JAX-WS Web Service Simple Example
JAX-WS Web Service Simple Example JAX-WS is java API for XML Web Service. JAX-WS uses XML messages to communicate with the client. These XML messages are Simple Object Access Protocol (SOAP). JAX-WS contains WSDL description of offered services. WSDL is Web Service Description Language. While using SOAP a contract must be established for the services which are being offered. WSDL describes the contract for SOAP based design.
Custom Login Page and Custom Error Message in Spring Security
Custom Login Page and Custom Error Message in Spring Security Spring security facilitates custom login page and custom error messages if authentication failed. In spring security configuration XML, if we look at the , we can declare . This tag has the attribute as login-page and default-target-url. login-page attribute gives the login page URL and default-target-url attribute gives page path when login is successful. Find the below configuration for custom Login page.
JPA 2 Example | Java Persistence API
JPA 2 Example | Java Persistence API JPA is Java Persistence API. JPA provides Object Relational Mapping (ORM) in Java. JPA handles the database query, database optimization, database cache, data saving, querying. JPA covers Java Persistence API, query language, Criteria API and ORM metadata. JPA makes database handling easy.
Lambda Expressions Java 8 Example
Lambda Expressions Java 8 Example Lambda expressions are one of the important features included in java 8. Lambda Expressions are used to write concise code for that interface which consist one method i.e. functional interface. Lambda Expression is also used to iterate collection in simple way.
Monitor Directory Changes in Java NIO 2
Monitor Directory Changes in Java NIO 2 Java NIO 2 provides the API which monitors the given directory. Directory creation, deletion, changing the name of directory or creating any file or directory inside any directory, all can be observed efficiently with WatchService and Watchable of the java.nio.file API which has been introduced in JDK 7. In this way to monitor any file or directory creation, deletion or updation is now very easy with the help of this NIO 2 API.
Example of Singleton Design Pattern in Java
Example of Singleton Design Pattern in Java Singleton Design Pattern is widely used in the software application. This design pattern ensures that a given task will be performed by only one class and that class will be global access of point. So getting one and only one instance of class ensures so many purposes of the developers in different scenario.
How to add Pixel Perfect in Mozilla Firefox
How to add Pixel Perfect in Mozilla Firefox Pixel Perfect is a Firefox/Firebug extension that allows web developers and designers to easily overlay a web composition over top of the developed HTML.
1. Open the Mozilla Firefox and hit the Firefox button and click on the Add-ons button.
2. Search Pixel Perfect in the Search box(remember Pixel Perfect only work properly when Firebug id already installed, if Firebug is not installed then first install the Firebug, to add Firebug repeat the same process means search Firebug in Search box )
Example of Prototype Scope in Spring
Example of Prototype Scope in Spring A bean with prototype scope is initialized every time whenever request for prototype bean is made. The spring container creates more than one instance of prototype scope as required. In the example I have two beans A and B, both have the dependency of the bean X. In this case there will be two instance of bean X in spring container.
How to Create a Java Project with Maven in Eclipse
How to Create a Java Project with Maven in Eclipse We will create a java project with maven in eclipse. We will start from scratch and learn step by step.
1. Install Maven in your Window
2. Install Maven in eclipse
3. In eclipse we will create a simple java project for demo. I have created a java project named as JavaProject in my eclipse. There is a class TestLogger.java . In our demo , there will be a apache logger to print the a message.
How to Pass Command Line Arguments to Java Program in Eclipse
How to Pass Command Line Arguments to Java Program in Eclipse This page is devoted to give step by step idea to take input as augments in java program with eclipse. We have a simple java program which will print the first arguments given as an input in eclipse. Find the java program.
Spring Hibernate Integration Example
Spring Hibernate Integration Example In this page, we learn how to integrate spring with hibernate. Spring is a J2EE framework and Hibernate is a ORM that is Object Relation Mapping Tool. If we integrate these two, they play a great role to run a large application and make the maintenance very easy.




Home    Core Java    Spring    Hibernate    Jquery    My Computer    News    Forum    Quiz    Interview Q & A     Maven     Eclipse IDE

Copyright ©2014 concretepage.com | All rights reserved |Privacy

Developed by : TechWox Corporation