jUDDI and Configuration in jBoss and MySQL database

Sub-systemArchitecture

UDDI is one of the core Web Service standard. It provides access to Web Service Description anguage which provides binding information and message formats required to interact with the web services listed in its directory. Enterprises that seek to optimize software or service reuse subscribe to some form of service-oriented architecture (SOA), server programs or […]

Recursively traversing files and folders using Java File API

java-thumbnail

In this section, let us see how to recursively traverse over files and folders by making use of Java File API. Whether it is a folder or a file, both are represented as a java.io.File object. For example, consider the following code snippet, also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File […]

Factory pattern – Design Patterns in Java/J2EE

java-thumbnail

Creational pattern deals with the creation of objects and it hides the complex logic involved in the object creation object from the clients. One of the common creational patterns is the Factory pattern and it is used extensively in Applications. Let us understand what factors should be considered in mind while designing a Factory pattern […]

Conversion between Array and List types

java-thumbnail

In some cases, we may need to convert an array to a list or vice versa. The method asList() is available in the Arrays class, and the toArray() method in list and set classes serve this purpose. also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials The Arrays.asList() method converts […]

Querying Class Information at Runtime using Java Reflection API

java-thumbnail

Java Reflection API provides support for querying information about a class at run-time. This information includes the list of public as well as private members (methods) available for the class, the various public operations it supports etc. This section will guide you in making use of the Reflection API.¬†Suppose we have the following test class […]

Using the Jar Utility

java-thumbnail

Jar stands for Java Archive file and it is used to compress and archive one or more files. It is equivalent to Zip file in Window operating system. A typical jar file contains Java class files in addition to source files as well as resource files, like images and properties. Let us see how to […]

Storing Application Data using Preferences API

java-thumbnail

Applications can now make use of the Java Preferences API for storing and retrieving Application related data. The location where the Data gets stored is implementation specific. Two levels of Preferences come into picture, one is the User Preferences for storing user information and the other is the System Preferences that deals with information common […]

Threads Synchronization

java-thumbnail

Synchronization is done in order to protect a segment of code from being accessed by more than a single Thread at any particular instance of time. In Java, synchronization is achieved with the use of synchronized keyword. Synchronization can be applied to methods as well as to a block of code. also read: Java Tutorials […]

Overriding the toString() method in Object class

java-thumbnail

The toString() method in the Object class is used to display some information regarding any object. If any code needs some information of an object of a class, then it can get it by using this method. The toString() method of an object gets invoked automatically, when an object reference is passed in the System.out.println() […]

Externalizable Interface in Java

java-thumbnail

Serialization is the process of giving persistence storage to Java objects so that they can be restored at a later time. Classes can be made persistent in Java by implementing the Serializable interface. Serializable is a marker interface meaning that it has no methods within it. Any Serializable class can be passed on to ObjectOutputStream.writeObject(object) […]