• Posts tagged "Java"
Header

Blog Archives

How to create a SOAP Client in Java using SAAJ

Hi Guys, Today, I am going to show that how you can consume a SOAP WS using SAAJ framework. SAAJ is shipped with JSE 1.6 and above. What is SAAJ? SOAP with Attachments API for Java (SAAJ) is mainly used for dealing directly with SOAP Request/Response messages which happens behind the scenes in any Web …
Read more

5,162 total views, 1 views today

How to create MySql backup and archive it using Java

Hi Guys, I know, the first question is “why” as a lot of tools, both free and commercial, are available to do the same thing. It’s fun 🙂 and may be it can give you general idea how those tools actually work internally. Four main implementations: 1. Taking MySql database backup in .sql file 2. …
Read more

4,649 total views, no views today

How to get yahoo messenger status using Java

Hi guys, Few days back I created an utility for checking the status of user if he/she is online on Yahoo Messenger. This is a simple utility. Hope you guys have fun using it. 😉 Yahoo provides a link for accessing the status of user on Messenger. All you need to write a code that …
Read more

3,856 total views, no views today

How to convert ResultSet into ListMultiMap in Java

Hi guys, In few of my previous posts I mentioned about an API from Google called Guava. This API has a class called ListMultiMap. Today I am going to show you how you can use ListMultiMap to use the database ResultSet more efficiently. This will give developers a clear visibility regarding the column names and …
Read more

2,608 total views, no views today

File search with timer in Java

Hi guys, Hope you guys are doing great. Today, I am going to show you how to implement a file search with a timer in Java. By ‘timer’ I mean that execution will stop after a certain time provided. You must came across this kind of functionality where the main program is stopped at a …
Read more

2,241 total views, no views today

How to consume REST Web Service in Java

Hi folks, Hope you guys will be doing great. Today I am going to show you how to consume REST Web Service in Java. So, first thing first. What is Web Service? Web Services is a technology which provides an efficient way to share application logic across multiple machines running various operating systems and using …
Read more

6,521 total views, no views today

Database connection pooling using Java

Hi Folks, Today I am going to show you some old school stuff. The Database Connection Pooling. I know there are several frameworks in Java that provides this facility, but I thought of sharing this to you guys because it’s actually a good piece of code. And it is always fun to know what’s going …
Read more

3,796 total views, no views today

How to create generic XML parser using SAX

Hi All, Today, I am going to show you how to create Generic XML Parser using SAX in Java. Idea is to pass the name of the nodes and get its values. I will be using SAX parser for this and a third party API called Guava from Google. One extra functionality in this code …
Read more

8,568 total views, no views today

How to prevent duplicate form submission in Spring MVC

Hi guys, Today I am going to tell you how to prevent duplicate form submission in a Spring MVC based project. This issue is not actually a technology specific issue. It can arise with any technology and every technology has different way to resolve it but the concept for resolving the issue remains the same. …
Read more

15,551 total views, no views today

How to run SQL *Loader using C, PHP and Java

Hi Guys 🙂 Today, I am going to tell you how to run sqlldr command using C, PHP and Java. It will be a command line interface for running sqlldr command in all the three language mentioned. First of all, what is SQL *Loader? SQL*Loader is a bulk loader utility used for moving data from external …
Read more

13,277 total views, 3 views today