Java Table of Contents

Java Table of Contents

Table of Contents History Of Java Introduction to Java About Java Platform Independence Java Virtual Machine    Object Oriented Programming Java Features Java Applications Getting Started with Java Java Architecture Compiling and Running an Application Java Development Ki

[ read more ]

What Is JAX-RPC?

What Is JAX-RPC?

JAX-RPC stands for Java API for XML-based RPC. It's an API for building Web services and clients that used remote procedure calls (RPC) and XML. Often used in a distributed client/server model, an RPC mechanism enables clients to execute procedures on other systems. In JAX-RPC, a remote procedur

[ read more ]

Spring Framework Architecture

Spring Framework Architecture

Spring could potentially be a one-stop shop for all your enterprise applications, however, Spring is modular, allowing you to pick and choose which modules are applicable to you, without having to bring in the rest. Following section gives detail about all the modules available in Spring Framewo

[ read more ]

Spring supports remoting for six different RPC models:

Spring supports remoting for six different RPC models: 1. Remote Method Invocation (RMI) 2. Hessian 3. Burlap 4. HTTP invoker 5. EJB 6. JAX-RPC In all the models, services are configured into the application through spring configuration file as spring managed beans. This

[ read more ]

Bean life cycle in spring

This example gives you an idea on how to Initialize bean in the program and also explains the lifecycle of bean in spring. Run the given bean example to retrieves the values of the bean using java file. Here in the file given below i.e. (context.xml) we have declare the bean definition. Mybea

[ read more ]

init Method in Spring

init Method in Spring

Calling Bean using init() method in Spring, this section describes  the way to initialize a bean through its lifecycle events using the init() method .Here we have defined the property and values of  the bean using the init method as shown below:- <bean id="mybean" class="Bean" init-metho

[ read more ]

Calling Constructor in Spring

In the given example you will be learning about a constructor and how to call a constructor in the Spring. Declaring constructor injection in the Spring framework is generally done in the bean section of the configuration file that is the context.xml file.  Steps to declare Constructor Injec

[ read more ]

Inheritance in Spring

Inheritance Demo, In the example given below we are going to tell about the inheritance in the Spring framework. By inheritance we mean a way of forming new classes using classes that have already been defined. Here we have created a simple bean and used this bean as a template for creating othe

[ read more ]

Spring Batch Example

JDBC Template Batch update example, In the tutorial we have discussed about  batchUpdate()  method of class JdbcTemplate in Spring framework. The Batch update methods are used to executes multiple SQL updates query on a single JDBC Statement. The example given below consists of the code to del

[ read more ]

Introduction to Spring’s Aspect Oriented Programming(AOP)

1) Introduction One of the major features available in the Spring Distribution is the provision for separating the cross-cutting concerns in an Application through the means of Aspect Oriented Programming. Aspect Oriented Programming is sensibly new and it is not a replacement for Object Oriented

[ read more ]

Spring Injection Example

XML Bean-Injection, The given example below gives the brief description of the extension name spaces that can be used in the spring framework With the use of extensible name space you can  make Spring configuration file more simpler to use for many tasks which can occurs repeatedly . Extension

[ read more ]

Spring cglib

In this section we will learn about Spring cglib library and understand the importance of it. You will also find the url to download cglib library What is cglib? The cglib is high performance library in Java. It is used to extend Java classes and implement interfaces in runtime. It is one the be

[ read more ]

Spring 3 ASM – Spring asm Dependency

In earlier version of Spring (Spring version 2.5) the asm library was included. But the current version of Spring 3 does not contains the asm library. So, you have to download and add the asm library to your project. In this section you will find the instruction to download and add the asm li

[ read more ]

The @configuration annotation example in Spring 3.0 Framework

In the last section we developed the .xml file to configure the IOC (Spring Container). In this section we will learn another method for configuring the Spring 3 IOC, which is through the Java configuration annotation @configuration. The @configuration annotation is code centric and can be used

[ read more ]

Spring 3 Hello World Example

In this section we will download spring, create new project in Eclipse IDE and then write simple Hello World application. We will finally run the application in the Eclipse IDE. In this section you will learn how to download, create a new project in Eclipse IDE, add Spring 3.0 library files,

[ read more ]

Find Out Your Visitor’s Position Using HTML5 Geolocation

Find Out Your Visitor’s Position Using HTML5 Geolocation

Geolocation is a way for the user to retrieve their position and share where they are. This can be done in a few ways, by using a GPS as the one in your new smartphone or connected to your computer is the most precise method. But for users without GPS the browser will use your IP and or try to find

[ read more ]

J2ME – Bluetooth Chat – Full source code

/* * BTC.java * */ import com.sun.midp.lcdui.Text; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * * @author Zeeshan * @version */ public class BTC extends MIDlet { Displayable d1; graphics g; login l=new login(); newuser n=new newuser(); l

[ read more ]

Spring by examples – RMI

RMI is just one of the strategies that you can choose from when you want to implement remoting in your Spring application. At the moment, Spring provides support for Hessian, Burlap, RMI, Web services and an own HTTP remoting solution. All of these remoting strategies were designed so they can s

[ read more ]

What is the difference between cloud computing and grid computing?

What is the difference between cloud computing and grid computing?

Cloud computing and grid computing are very similar concepts that can be easily confused. Fortunately, there are a few key differences that set the two apart. Grid computing is a loose network of computers that can be called into service for a large-scale processing task. This network is over the I

[ read more ]

Android Tutorial Table Of Content

Android Tutorial Table Of Content

Android Development Introduction Android Development Tutorial  (Part 1)  (Part 2) Android Filebased Persistence with Preferences, Filesystem and SD Card Android ListView and ListActivity Android Intents Android SQLite Database and ContentProvider Android Custom Views Android Liv

[ read more ]

History of Java

History of Java

Java is an object-oriented programming language developed by James Gosling and colleagues at Sun Microsystems in the early 1990s. Unlike conventional languages which are generally designed either to be compiled to native (machine) code, or to be interpreted from source code at runtime, Java is int

[ read more ]

File Upload Progress Bar with Jquery and PHP

File Upload Progress Bar with Jquery and PHP

We received many tutorial requests from 9lessons readers that asked how to create file upload progress bar with PHP and Jquery. In this post Arun Kumar Sekar had developed few lines of code using PHP APC library, it is very simple getting the server file upload process every few second and increasin

[ read more ]

Read / Write CSV file in Java

Read / Write CSV file in Java

If you want to work with Comma-separated Files (CSV) in Java, here’s a quick API for you. As Java doesn’t support parsing of CSV files natively, we have to rely on third party library. Opencsv is one of the best library available for this purpose. It’s open source and is shipped with Ap

[ read more ]

Getting and Setting Input Text Field Values

Getting and Setting Input Text Field Values

This form contains an input text field and an input button. The form is designed to demonstrate how to get and set the text in a text field. The HTML for the input button includes an event handler attribute. Pressing the button calls a function that: retrieves the value in the text field d

[ read more ]

How to open wifi settings in android?

How to open wifi settings in android?

In today’s tutorial I will show you how to open the wifisettings in android programatically. This code comes handy when the user have not enabled the wifi and you want the user to enable it for your application to work. Here is the code for that. 1 2 3 4 5 6 7 8 9 10 1

[ read more ]

University Time with Friends

[ read more ]

Play Back Voice

[ read more ]

آذان مکہ کا ایسا منظر آپ نے پہلے کبهی نہیں دیکها هو گا۔ دیکھیں اور شئیر کریں

[ read more ]

The Passionate Programmers

The Passionate Programmers

[ read more ]

Sort directory/file in alphabetical order ignore case

Sort directory/file in alphabetical order ignore case

Last exercise of "File Explorer" list file/directory without order. We can implement Comparator<? super File> to sort the directory/file in alphabetical order. We can also convert the file name to lower case before comparing, such that the array will be sorted in alphabetical order ignore case

[ read more ]

Implement a simple File Explorer in Android

Implement a simple File Explorer in Android

- First of all, as a user app, I think it should not access the root "/" directly. So I assign root to Environment.getExternalStorageDirectory(), it's the Android external storage directory. - Secondly, if a file/directory is hidden or un-readable, it will not be display. Create /res/layout/row.

[ read more ]