Logging Messages using Java Logging API

java-thumbnail

The Logging API in Java enables Applications to log messages of some level which will be very useful for debugging purpose. Say, if a system fails for some reasons, then the reason can be easily traced out by looking at the information available in the log file. In this section, let us see an overview […]

Working with Virtual Proxy Pattern

java-thumbnail

Application is often a collection of components and in most of the situations it may be the case that a component should be loaded until it is first accessed by the Client. Reasons may be that the component in consideration may be using most of the system resources. For example, consider the Microsoft Word Application […]

Making use of the Properties class

java-thumbnail

In this section, let us make use of the Properties class for storing and loading application related configuration values as well as other user information. It is also possible to query or modify the various System properties using this class. For example, the following code tries to get all the properties that are available for […]

Parsing Input using Scanner

java-thumbnail

A Scanner object can be used to read text input from a number of sources. The input source can be a file, an input stream or even from a string. It internally uses the Regular Expression Api for parsing and getting the input. Let us see a simple example to parse a String object, also […]

Parsing XML Documents using SAX

xml

Xml Parsers are used to parse and extract information from Xml Documents. The most commonly used Xml Parsers are Simple API for Xml Parsing and Document Object Model. SAX Parsers are preferred when the size of the Xml Document is comparatively large and the application doesn’t wish to store and reuse the Xml information in […]

Persisting Object State in Xml Format

xml

Persistence is the process of saving the state of an object permanently to a storage like file or database, and the state of the object can be restored at a later time. In Java terms, Persistence is nothing but Serialization. For example, the following code is used to save the state of an object in […]

Randomly accessing the file contents

java-thumbnail

In this techincal tip, let us see how to access the contents of a file randomly instead of the traditional sequential access. Imagine that we want to search for a particular record in a file. If we prefer Sequential access in this case, then it will involve traversing over the file byte by byte and […]

Sorting Custom Types in Java

java-thumbnail

The class java.util.Collections provides many Utility methods for simplifying the most commonly used operations. One of the methods available in that class is sort() which is used for sorting elements. Let us the see how the Collections.sort() method operates on pre-defined data-types as well as user-defined data-types. also read: Java Tutorials Java EE Tutorials Design […]

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 […]