Memcached is an free open source object caching system which stores data in key value pair, used to reduce unnecessary DB or file server access.Memcached stores data like objects or file in RAM. It is always used with a database server because memcached stores data in RAM, so we generally cached only those data in Memcached, which is frequently used in application for read operation.
In production environment, commonly Memcached is installed at different server from database and hosting server, so whenever any insertion request comes, first data get inserted in db server and update Memcached server also. And next time when read request comes, application checks Memcached server first, if Memcached server has recent data, then application access data from memcached server and if not, then application fire db query to get data from database server and again update Memcached server with recent data for the next time read operation. Read More
Quartz is an open source production ready job scheduler,executes jobs at predefined intervals.It can easily integrate with java and provides no. of features like JTA transactions and clustering.
Before going to example part , lets understand, how it’s work :
There are 3 important keyword in quartz which we need to understand
1: Quartz Job: Job means what you want to execute (your java classes and codes)
2: Quartz Trigger : Quartz triggers execute your Quartz Jobs
Quartz supoorts two types of Triggers
- SimpleTrigger – In this , you can set start time, end time, repeat interval.
- CronTrigger – its work same as Unix cron.
3: Scheduler : It’s just connect your job with trigger and execute according to given time interva Read More
Sphinx is a full text search engine tool developed by Sphinx Technologies Inc in 2001.If your application use heavy search query, you can minimize query overhead by Sphinix.It has native support for sql indexing and can
communicate with database in own sql dialect.
In this tutorial first we will learn Sphinx installation on windows and linux and then will we see how can we integrate with java.
so lets start
What is DWR (Direct Web Remoting) ?
Using DataGrid in JSP-Servlet (Json)
In Jsp-Servlet , DataGrid can be implemented in many ways, you can write own method ,Here we are using Jquery EasyUI Datagrid in jsp-servlet project. Read More
Show heap status in Eclipse
You can view current heap status in Eclipse without installing any external plugins.To know heap status in Eclipse follow these steps;
Step1:Click the Window menu bar and select Preferences. Read More
How to display heap status in MyEclipse ?
During project development some time it is required to find out how much heap memory is being used by running programs.To view heap status in MyEclipse follow these steps:
Click the MyEclipse menu in menu bar and select show heap status under Utilities. Read More
Implementing java bean on Jsp page
Java Bean is simply a java class with setter and getter methods to visualize its properties.Bean class gives reusability and flexibility on jsp pages.
There are mainly three tags used to embedded a Java Bean into jsp pages :
1. <jsp:useBean id=”<an-id>” class=”<bean-class-name>” scope=”<scope-name>” />
where id is a local name of bean that is used to reference setter and getter properties and class is a Java bean class name and scope define life of a Java bean. Read More