Skip to content



Latest Tutorials

How to Convert a Stream to List in Java 8

In this tutorial you will see How to convert a Stream to a List using Collectors.toList in Java 8. package com.latest_turorial.java8; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; public class StreamToList { public static void main(String[] args) { Stream<String> language = Stream.of(“java”, “php”, “asp.net”); //Convert a Stream to List List<String> result = language.collect(Collectors.toList()); result.forEach(System.out::println); } }…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , , , , , | Leave a comment

How to install JDK 8 on CentOS

In this tutorial, you will see how to install Oracle JDK 8 On CentOS.   1. Get Oracle JDK 8 1.1 Visit Oracle JDK download page, look for RPM version. 1.2 Copy the download link of jdk-8u102-linux-x64.rpm and wget it. $ pwd /home/mkyong $ wget –header “Cookie: oraclelicense=accept-securebackup-cookie” http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.rpm 2. Install Oracle JDK 8 2.1…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , | Leave a comment

How to use log4j.xml example

Here’s another way How to use log4j.xml example in application. In this example you will see how we use xml logging. 1. Output to Console Redirect the logging to console. log4j.xml <?xml version=”1.0″ encoding=”UTF-8″ ?> <!DOCTYPE log4j:configuration SYSTEM “log4j.dtd”> <log4j:configuration debug=”true” xmlns:log4j=’http://jakarta.apache.org/log4j/’> <appender name=”console” class=”org.apache.log4j.ConsoleAppender”> <layout class=”org.apache.log4j.PatternLayout”> <param name=”ConversionPattern” value=”%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L – %m%n”…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , , , | Leave a comment

How to use log4j.properties example

In the morning i just need logs of application on my console so i find out this quick way to see logs with exact call time. How to use log4j.properties example that are used in my project. 1. Output to Console All logging will be redirected to your console. log4j.properties # Root logger option log4j.rootLogger=INFO,…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , , , , | Leave a comment

Read SharePoint news Web Service list in Java tutorial

In this tutorial Read SharePoint news Web Service list in Java tutorial,SharePoint news Web Service list in Java tutorial,Read SharePoint news list in Java,SharePoint Web Service list in Java, I will show how to consume and use a SharePoint Lists Web Service from java with Netbeans. The objective will be to read the items of a…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , , | Leave a comment

Saving/Retrieving BLOB object in Spring Roo

The article Saving/Retrieving BLOB object in Spring Roo assumes the Reader is a Developer with some familiarity with Spring Roo. For introductory information about Spring Roo vist http://www.ibm.com/developerworks/java/library/os-springroo1/index.html?ca=drs-. Project setup Spring Roo brings alternatives for setting up a project: a) Entering project using a script file or b) Creating the database first and reverse engineering it…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , | Leave a comment

Spring Roo Introduction

In Spring Roo Introduction you will see this is an open source software tool that uses convention-over-configuration principles to provide rapid application development of Java-based enterprise software. The resulting applications use common Java technologies such as Spring Framework, Java Persistence API, Java Server Pages, Apache Maven and AspectJ. Spring Roo is a member of the Spring…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , , | Leave a comment

JMS (Java Message Service) Tutorial

In this tutorial you get complete information about JMS (Java Message Service) tutorial . JMS (Java Message Service) is an API that provides the facility to create, send and read messages. It provides loosely coupled, reliable and asynchronous communication. JMS is also known as a messaging service. Understanding Messaging Messaging is a technique to communicate…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , | Leave a comment

How to Create EAR Maven Project in Eclipse

In this tutorial you will see how to create EAR (Enterprise Archive) Maven project in eclipse. EAR is a Java EE standard format use to package one or more module into a single module so that we can deploy many module as single archive module on application server. EAR file contains main XML files called…

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , , | Leave a comment

RESTful web services in java (JAX-RS) using jersey

In this post,we will develop RESTful web services in java (JAX-RS) using jersey in eclipse. Java API for RESTful Web Services (JAX-RS), is a set if APIs to developer REST service. JAX-RS is part of the Java EE6, and make developers to develop REST web application easily. Jersey is the reference implementation for this specification….

Posted in Java Posts, Java Posts, Java Tutorials | Tagged , , , , , , | Leave a comment

Facebook Iconfacebook like buttonTwitter Icontwitter follow buttonFollow Us
Follow

Get every new post delivered to your Inbox

Join other followers

%d bloggers like this: