Tag Archives: java
A Simple Java RMI example

Using Java RMI, the methods of remote objects can be invoked from other jvms, possibly in different hosts! Let’s see…

XML Serialization of Java Objects

To serialize a Java object to XML you need XMLEncoder class. Let’s see an example! 1. Create a Customer class…

Creating a simple Web Service in Java

Create a web service application project in Netbeans. Create a class named Customers. In this class we will declare the…

Generating unique IDs in Java

With the UUID class you can generate unique ids. The identifiers generated by UUID are universally unique identifiers. UUID is…

Using mysql with Java

First of all download the Connector/J. Don’t forget to add in your project a reference to mysql-connector-java-x.x.x-bin.jar file. Let’s see…

Establish FTP connection with Java

To establish a connection with a FTP server we are going to use Apache commons Net library. You can download…

Create XML file with JAVA

If you would like to create an XML file similar to this: 1 2 3 <customers> <customer id="124587956" firstname="George" lastname="Karpouzas"/>…

Get URL contents with Java

It is very easy to download url contents using a few lines of java code: The source code below is…

Previous Page