Tag Archives: Java

Tagging a list of projects in SVN

In every project we do before we release the projects its quite important to create a snapshot for each service/subproject. In SVN terms we call this a tag. One can use any SVN clients available in the market like Tortoise, sliksvn etc.and create this tag but when we are dealing with a large set of […]

read more

Adding a Custom header to your Web Service (WSDL)

It’s very common that you have to define a WSDL and want it to have custom header. I have been using WSDL’s with custom headers for some time and thought I will post this sample WSDL for all of you who want to define a SOAP 1.1 WSDL with a custom message header. Below is […]

read more

Generating Client JAVA code for WSDL using SOAP UI – AXIS2 WSDL2JAVA

Create a Soap UI project using your WSDL. Set the Preferences in SOAP UI for AXIS2 home directory. Right Click on the WSDL in SOAP UI and click generate code. Select ADB binding and the following settings and click generate Following is the directory structure and code files generated. That’s it, you can now use […]

read more

Getting Started with Liferay Portal V 6

I am currently doing a Proof of concept for a customer using liferay portal. Thought I will put together my learning’s for others to benefit. As I am quite busy these days, you might have to wait a few more days for further details.. You can post your comments if you have any specific questions […]

read more

WSDL2JAVA using AXIS2 code generator command line

The Code Generator tool consists of a command line version and an Ant Task.  I have attached a guidance to use the WSDL2Java utility using the command line. Also, illustrated how to build file using custom Ant task and invoking the Code Generator from Ant. Invoking the Code Generator From Ant Since the users may […]

read more

Comparison – Test NG v/s JUnit

I have been using TestNG recently but i never really compared it properly with JUnit. Over the next few days i will try to assess the two and come up with an article of my own. in the mean while you can refer to a decent comparison available at http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/ stay tuned to SB for […]

read more

All about JDBC

JDBC drivers are available for most database platforms, from a number of vendors and in a number of different flavors. There are four driver categories: Type 1- JDBC-ODBC Bridge Driver Type 1 drivers use a bridge technology to connect a Java client to an ODBC database service. Sun’s JDBC-ODBC bridge is the most common Type […]

read more

Value Objects [Transfer Objects]

The main reason for using the value objects is because in comparison to using enterprise beans, it is always efficient to pass a single argument with multiple fields in it than passing fields individually. Also it also helps us to enforce the business rules associated with an entity in a lot easier way. Some technologies […]

read more

Singleton Design Pattern

If we are talking about Design Patterns, One of the most common pattern that crosses your mind is Singleton Design Pattern. The underlying definition of the same is “Ensure a class only has one instance, and provide a global point of access to it.” Even though it is simple and most of you might already […]

read more

Java Portlet Specification – JSR 168

The Java Portlet Specification defines a contract between the portlet container and portlets and provides a convenient programming model for Java portlet developers. The Java Portlet Specification V1.0 introduces the basic portlet programming model with: two phases of action processing and rendering in order to support the Model-View-Controller pattern. portlet modes, enabling the portal to […]

read more