Cron Job (Job scheduler) for Web Application

This Cron job(Timer Task, Job scheduler) Start when web application deploying and run according to give time schedule. For adjust the time want to edit time rage of class.

1. Add following 2 java class in to web application and adjust time with request time period.
2. Add Listener class property in to web.xml

Web XML entry

Listener class

* To change this template, choose Tools | Templates
* and open the template in the editor.
package com.itfac.chandana;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

* @author Chandana
public class WisdomListener implements ServletContextListener {

private ServletContext context = null;

public void contextDestroyed(ServletContextEvent event) {

System.out.println("Application is undeploying");
this.context = null;


public void contextInitialized(ServletContextEvent event) {
this.context = event.getServletContext();
TimerTaskScheduler taskShe = new Tim…

Multiple versions of IE on one machine

I mentioned that you can indeed install multiple versions of IE on one machine. Microsoft has recently made Virtual PC 2004 a free download; we’ve taken advantage of that by releasing a VPC virtual machine image containing a Windows XP SP2, IE6 or IE7 or IE 8 this will help facilitate your testing and development.

Get more information on Virtual PC 2004
Download Virtual PC 2004
Download the Internet Explorer ALL Testing VPC Image


Tredosoft provides an installer that does everything you need to get that for IE3 IE4.01 IE5 IE5.5 and IE6. They also provide a standalone installer for IE 7.


First way I tested and It was very helpful for my web development works.

My Library

Unlock Dialog Huawei E220 HSDPA Modem

New Post: How to Unlock Any Huawei Modem

There is simple method to unlock dialog HSDPA modem. then you can use it on Mobitel network also. Because it is very easy to access Internet through Pre-Paid connection.

More Info about Mobitel 3G Daily Delight

Install following firmware and update your Mobile partner software . Then your Mobile Partner software change as Mobile Connect.
Firmware Download

After that create New Connection
Settings --> Network connection Settings --> New

Number : *99***1#
APN and Additional Settings --> APN :

Unlock Document : PDF
Software : Huawei Patch , Hex Editor , QC Mobile Analysis Tool , E220 Unlocker

help my site stand out :

Huawei E220 modem on Ubuntu with Dialog HSDPA

Type following command in terminal

$ sudo wvdialconf /etc/wvdial.conf

$ sudo gedit /etc/wvdial.conf

uncomment the ‘Phone‘ field and give the phone number as *99***1# and save the file.

*Esc ---> shift qw and Enter for save in vim edit ($ sudo vim /etc/wvdial.conf )

install the following files and add the huawei driver. Drivers

$ tar xjvf huawei.tar.bz2
$ cd huawei
$ su
$ make info
continue installation acoding to info file..

Install conection software using following .deb file Software

If you want to monitor network usage following package... Package

more info: Visit

Java Location API

Here is Example Java Location API example. But work for this want to support Java Location API in UR mobile and inbuilt GPS receiver(I only test with mobile emulator).

what is Location API:

The Java Location API for J2ME is intended to run on small client devices such as mobile phones.The Location API object model consists of 11 classes and two listener interfaces (LocationListener and ProximityListener), all in the javax.microedition.location package. Their design approach uses several standard patterns—Facade, Factory Method, Singleton, and Value Object, and standard JavaBeans-style accessors. Of the 11 classes, two are Exception classes (LocationException and LandmarkException) and another four (AddressInfo, Criteria, Orientation, and QualifiedCoordinates) are primarily value objects. Many of the properties of these objects may in practice be unavailable, depending on the location-finding technology implementing the API. Still, these properties anticipate likely future developmen…

Java interview ask question

Question: Why Java does not support multiple inheritence ?
Answer: Java DOES support multiple inheritance via interface implementation.

Question:What is the difference between final, finally and finalize?
Answer: o final - declare constant
o finally - handles exception
o finalize - helps in garbage collection

Question: Where and how can you use a private constructor.
Answer: Private constructor can be used if you do not want any other class to instanstiate the object , the instantiation is done from a static public method, this method is used when dealing with the factory method pattern when the designer wants only one controller (fatory method ) to create the object.

Question: In System.out.println(),what is System,out and println,pls explain?
Answer: System is a predefined final class,out is a PrintStream object and println is a built-in overloaded method in the out object.

Question: What is meant by "Abstract Interface"?
Answer: First, an interface is …