XML Pull Parsing (Demo)
XML Pull Parsing makes parsing XML documents easier and efficient. This post introduces this API. You may get the required API from http://www.xmlpull.org/. Java docs are available at:...
View ArticleMaven (intro)
Maven is a software project management tool, based on project object model. It aims at reducing the load of developer by making in software build process simple and faster. Following are worth...
View ArticleTextField vs TextBox
javax.microedition.lcdui provides TextField and TextBox which are sometimes confusing. Both are to allow the user to enter text, but question arises, when to use which one? In this post, I will try to...
View ArticleRecord Management System
RMS is a database (flat file) which MIDlets can use to persist data. In this post, I will introduce the audience with RMS. The device platform maintains the integrity of the MIDlet's record stores...
View ArticleJBoss Application Server
Talking about J2EE application servers, JBOSS is a popular choice. The reason is that JBOSS is open-source EJB solution with lot of impressive features that are missing in Weblogic, WebSphere, and the...
View ArticleAccessing Beans (EJB)
In the post, I will write about how to accessing a bean in EJB. Accessing deployed beans is simple. First write the the client code and set up JNDI environment settings for the client. It can be done...
View ArticleEJB - Entity Beans
This post contains an introduction to Entity Beans. An entity beans are used to represent a business object in a persistent storage mechanism for example: customers, orders, products, employees etc. We...
View ArticleDeploying MIDlets onto Mobile Devices
The subject topic is very interesting and a lot of people have asked me about this. It is just a matter of knowing how this works. I am sure you will find it very interesting. MIDlets are programmed...
View ArticleMIDlet Suite
In this post, I will introduce you to the MIDlet suite. I assume that you people have worked with Eclipse. In Eclipse, you create projects and all the contents of the project are placed in the project...
View ArticleWriting MIDlet for SMS
SMS stands for Short Messaging Service and it is very common in mobile communication. J2ME provides an API for SMS which makes messaging very easy. I will write a MIDlet to show how to create a...
View ArticleNetbeans 6.1 New Feature
Netbeans 6.1 is available now. There are many new and improved in NetBeans 6.x. In this post, I will list the newly added and improved features. Mobility (Java ME) source:...
View ArticleCreating JAR files
This post is all about learning how to create JAR files. After going through this, you will be able to easily create JAR files. The basic JAR command syntax is as follows: jar cf myjar input-file(s)...
View ArticleAccessing Resources in a JAR File
JAR files are used to deploy applications. They comprise of java classes and other resources like images etc. In this post, I will explain how to access resources packed in a JAR file. To access...
View ArticleCreating the JNLP File (Java Web Start)
If you plan to run an application with Java Web Start, you have to create JNLP (Java Network Launching Protocol) file. In this post, I will briefly explain how to do that. The JNLP file is an XML file...
View ArticleJava Web Start (advantages)
Ever thought of launching full-featured Java applications with a single click? Java Web Start provided with Java Standard Edition (J2SE), version 5.0 helps making this possible. In this post, I will...
View ArticleIntroduction to JAXP
If you want to process XML data using applications written in the Java programming language, then JAXP is the best choice. JAXP stands for Java API for XML Processing. I will introduce JAXP in this...
View ArticleSAXParserFactory Example
To change the parser implementations, JAXP provides a class called SAXParserFactory. I will present an example that will show how to use this class. First thing is to create an instance of...
View ArticleJAXP SAXParser class
You can doa lot if interesting stuff once you have the instance of SAXParser class. I will introduce a code snippet that will show you what you can do with an instance of SAXParser. JAXP provides...
View ArticleXSLT processing in Java
XSLT (Extensible Stylesheet Language Transformations) is used to transform XML files into other formats like HTML format. There are many XSLT processors (libraries) available to be used in Java for...
View ArticleUsing the JAXP validation framework
While working with XML documents, you need to validate the documents. You may use setValidating() method on a SAX or DOM factory. But Java 5.0 (JAXP 1.3) introduces JAXP validation framework which can...
View ArticleTransaction savepoints (JDBC 3.0)
JDBC 2 provides complete transaction rollback control over transaction. But if you want to rollback to a point, you cannot do so. JDBC 3.0 introduces savepoints which makes this possible. JDBC 3.0...
View ArticlePrepared statement pooling (JDBC 3.0)
JDBC 3.0 provides improved connection pooling. This post is all about that. It is also possible to pool prepared statements. A prepared statement allows us to keep frequently used SQL statement in a...
View ArticleReturning multiple results (JDBC 3.0)
If you have worked with JDBC 2, you might be knowing that if your statement is returning multiple results, only one ResultSet can be opened at a time. This is a limitation. Good new is that JDBC 3.0...
View ArticleRetrieving auto generated key (JDBC 3.0)
JDBC 3.0 introduces a lot of interesting and exciting features which makes database programming simpler. In this post, I will address how to retrieve auto generated keys using JDBC 3.0. To get the key,...
View ArticleCompiling a Java class using JavaCompiler
Java 6 introduces a way to compile Java classes from a Java class. In this post, I will present an example to show how this is done. I have a Test.java file: Java Code: public class Test{ public static...
View ArticleJava Compiler API (brief intro)
We all know that javac command is used to compile the java classes. Even if we are using some IDE (Eclipse, JBuilder, NetBeans), javac is called at the background for compilation. But with the release...
View ArticleReading RSS using Informa API
RSS (Really Simple Syndication) is a family of Web feed formats used to publish frequently updated content such as blog entries, news headlines, and podcasts. It is actually a specification for XML...
View ArticleWorking with the DOM parser
You will be introduced to the working of DOM parser in this post. We can get a DocumentBuilder instance as soon as we have a DOM factory. The methods available for the DocumentBuilder instance are very...
View ArticleUsing the DocumentBuilderFactory
In this post, I will present an example to show how to use the DocumentBuilderFactory. First step is to import the required classes. Java Code: import java.io.File; import java.io.IOException; import...
View ArticleOMA standard for data synchronisation - SyncML
SyncML is the standard for data synchronization and is accepted by Open Mobile Alliance (OMA). All the major players, including Ericsson, Nokia, IBM, Motorola, and Symbian support this protocol. The...
View Article
More Pages to Explore .....