Tech Notes
What is a WSDL?
WSDL, webservice description language, is the contract definition of any webservice. This XML document is used to tell the world what is going to be the definition/structure of the webservice, what that webservice has to offer. Here is an example webservice document explained using inline comments. We are not taking any complex example here. But [...]
Performance Testing Web Service Using SoapUI
Performance testing is a critical step in the life cycle of any project. This step checks if the application is capable of handling expected load within desired response time limits in given environment resources. Web services are not free from the performance requirements. Generally, web services involve remote access by many clients, hence web services [...]
Important Practical Tips for JUnit Users
Test driven development, automated testing, open source unit testing frameworks, mocking test data, etc. etc. have been buzzing around us for past few years. Most of the Java developers must have used JUnit to write unit test cases at least once. Below are some of the points that I found important while writing JUnit test [...]
Java Logger Utility
Here is a utility that will help you to better use java.util.logging.Logger class. In this utility, I have tried provide the most commonly used features in this utility. In this article, few important features of Java logger framework are also explained in brief while going through the code. I am not going into deep to [...]
Retrieve Basic User Attributes from Active Directory using LDAP in Java
In previous article, we have seen how to connect to active directory (AD) using Java provided LdapContext object. It may not be always the situation that you are satisfied with authentication of users against the AD database. You may want to retrieve all user details for one or other purpose. Obviously, that is why you [...]
Active Directory Access Authentication using LDAP and Java
Active directory (AD) stores resources, which can be users, systems (computers) or any other resources in object form. But this storage is hierarchal and not relational. There are many databases available which allow us to store objects directly in relational manner. AD is primarily used to store access related information for resources. This information is [...]
Decorative Programming using Annotations
Annotation is not a new feature getting introduced in Java 5, but in this release Java is trying to explore the power of this feature. If we look at the open source product stack adapting to Java 5, then this is the feature what has changed most of the products considerably. It has begun a [...]
Static Imports in Java 5
Static keyword is used to allow access to an attribute/ a method or a class without creating instance of it. (Some of you may argue that this is not object oriented way, but we leave that discussion aside for now.) We use static for those elements which do not change from instance to instance of [...]
Varargs in Java 5
Varargs means variable arguments, something really different from normal Java language syntax. Normally, we define method signature to offer a contract to the callers of that method by restricting number and type of input parameters, return data type and exceptions thrown. Using vararg feature, we can overcome this restriction partially and make the signature dynamic. [...]
Enums in Java 5 with Code Examples
Enumerations already existed in other languages like C, C++, SmallTalk etc. Enums are used primarily to handle a collection of logically grouped constants. In Java, for ages we have been handling constants (number constants here) through separate Java files, sometimes by encapsulating those in relevant POJOs, and even using a wrong design style of implementing [...]
