Archive for January, 2008

Java web service client applications use a web service proxy client to interact with the Web services APIs. A proxy client allows the developer to invoke the web service APIs as if it was a local method. For generating a web service proxy client, we need the WSDL files that describe the web service interfaces. [...]

Today when I tried to generate a web service client for Business Flow Manager API (WSDL files are BFMIF.wsdl, BFMWS.wsdl), WebSphere Integration Developer started giving me an error message and no web service client files are generated. :-(. The error message is as follows.

IWAB0639E Error in generating Java files and deployment descritpors from WSDL file
[...]

LIKE clause with PreparedStatement

How to use a LIKE clause with PreparedStatement object? I had this requirement and all the methods that I tried were not working. Java was not giving me any compile time nor run time errors. However the result was not coming as expected. I did some search on that and finally I got the solution. [...]

There is an easy an elegant way to convert or store an exception stack trace to a string variable. The following method takes an exception object as a parameter and returns the string representation of the stack trace.

public String getStackTrace(Exception ex) {
java.io.StringWriter out = new java.io.StringWriter();
[...]

Lot of times we need to schedule a servlet or JSP that runs at regular intervals. . Here I am going to talk about how to schedule a servlet to run at regular intervals which is deployed in WebSphere Application Server. The easiest way to schedule a server is to call a TimerTask class from [...]

New Rules For Cricket

I just got a mail forward from one of my friend.
After watching the test match, someone has written some rules have to be incorporated by ICC to give the other teams a perfect clarification
 
(1)    Ricky Ponting – (THE TRULY GENUINE CRICKETER OF THE CRICKET ERA AND WHOSE INTEGRITY SHOULD NOT BE DOUBTED) should be considered [...]

Defensive coping

Defensive copying is used for protecting the field of an object from being changed by all non native class. Sometimes if we do not use defensive copying our object may hold incorrect data. For eg:

import java.util.*;
 
public class Test {
private Date today;
 
public void setToday(Date dt) {
this.today = dt;
}
 
public Date getToday() {
return today;
}
 
public static void main(String [...]