Java Archive
Web Services are most widely implemented examples of Service Oriented Architecture (SOA). A service contract is defined with the help of SOAP and Web Service Definition Language (WSDL) and that is published for other applications to use. In
Most of the time we use properties file only to load some fairly static values that are used across the project. Some one once asked me whether I have any sample to write the config file from
Here is the list of Java Design Patterns. Each pattern is explained in detail with example and sample code. Hope you find this helpful. Creational Java Design Patterns Abstract Factory Builder Factory Method Prototype Singleton Structural Patterns
Lets see how we can sort our Employee objects using different criteria like id, name, salary. SortTest remains the main class that will perform creating and filling objects for us. This time employee class is plain old
In Java you can do sorting by implementing 2 interfaces 1) Comparable 2) Comparator Here we will see sorting example using Comparable Interface. As an example we will be sorting objects of Employee class. When using comaprable
Here I’m going to post a class that will extract all valid URLs from a web page. The example can be treated as a basic web crawler. My class uses “URLConnectionReader” provided by Sun Tutorial The class
In my last post I mentioned “Config Class”couple of times.. here you will see actual class and its usage. The class is very simple. We just need to provide proper path to config file we going to
It’s been too long, I didnt get time to post anything OpenSource. So here I am again with one simple class Database, to connect to MySQL in Java. You can use this class in 2 ways –