Transformations API for XML - II
May 8th, 2008Do read the first postr on this topic before going through this one.
Read the rest of this entry »
Transformations API for XML - I
May 8th, 2008In the next few posts, I will write about how to perform an XSLT transformation using StAX APIs: Cursor API and Event Iterator API.
Read the rest of this entry »
Creating MessageDigest - 2
May 7th, 2008This post is in continuation of “Creating MessageDigest - 1″. Do read that before going through this one.
Read the rest of this entry »
Creating MessageDigest - 1
May 7th, 2008Message digests are secure one-way hash functions that take arbitrary-sized data and output a fixed-length hash value. Thing to remember is that it I s not any encryption technique. It’s simply hashing. Same message will always generate the same hash code and a slight change in the message will generate completely different hash code. In the next few posts, I will talk about how we can generate message digests in our Java programmes.
Read the rest of this entry »
Behavioral Pattern - Iterator Pattern (Example) - 2
May 6th, 2008The defined channel iterator will be common for all the remote controls. So we know which method will do our required task, but the method has to be implemented by the class implementing this interface.
Read the rest of this entry »
Behavioral Pattern - Iterator Pattern (Example) - 1
May 6th, 2008The aim is to iterate through a collection of data using a common interface and more importantly, underlying implementation should not be known. We have a behavioral design pattern called ‘Iterator Pattern’ for this. I will introduce you to it in this post.
Read the rest of this entry »
Path vs ClassPath
May 5th, 2008I have found may people asking the difference between ClassPath and path. They tend to mix these and find this confusing. I will address this issue in this post.
Read the rest of this entry »
Sync4J - II
May 5th, 2008Although the sync4j project has not actually published any source, it is still under active development.
Read the rest of this entry »
Sync4J - I
May 5th, 2008To create an implementation of SyncML protocol, you may use sync4j. I will introduce you to sync4j in this post.
Read the rest of this entry »
Asynchronous method calls - II
May 4th, 2008Do read the first part of this post. In this post, I will prenset another example of asynchronous method calls in EJBeans.
Read the rest of this entry »
Asynchronous method calls - I
May 4th, 2008Methods called on the asynchronous proxy will be executed asynchronously, and the results can be obtained later on.
Read the rest of this entry »
Defining annotations
May 3rd, 2008It is right to say that a typical application programmer won’t need to define annotations in normal routine. But still, one should know how to define annotations.
Read the rest of this entry »
Hibernate Queries - III
May 3rd, 2008I will continue exploring Hibernate queries with example.
Read the rest of this entry »
Hibernate Queries - II
May 2nd, 2008In this post, I will continue presenting HQL tips and trick that will help you in development.
Read the rest of this entry »
Hibernate Queries - I
May 2nd, 2008Hibernate is a popular OR (Object Relational) mapping framework. To access database, we have to use Hibernate Query language. I will present the basics in this post that will help you starting quering database tables using HQL.
Read the rest of this entry »
MIDP packages - 3
April 30th, 2008In this post, I will present the CLDC java.io, CLDC java.util along with collection classes.
Read the rest of this entry »
MIDP packages - 2
April 30th, 2008The CLDC java.io package contains many of the standard J2SE io package classes. Following are CLDC java.io input classes:
Read the rest of this entry »
MIDP packages - I
April 29th, 2008MIDP provides a standard run-time environment that allows new applications and services to be deployed dynamically on end-user devices like cellular phones and pagers. The MIDP is built upon CLDC (Connected Limited Device Configuration).
Read the rest of this entry »
GPS location / Cell id / Placing a call
April 29th, 2008This post presents miscellanoeous tasks that you can do in your J2ME application.
Read the rest of this entry »
Sending SMS (snippet)
April 29th, 2008This post presents a snippet for sending short text messages from J2Me applications.
Read the rest of this entry »
Reading/writing files
April 29th, 2008This post is all about reading and writing text files on mobile device.
Read the rest of this entry »
Subclipse
April 28th, 2008Consider that you are working on a large/medium size Java project in teams. This is an ideal senerio for using Subversion to distribute and maintain source code. Good news is that youc an use integrate your source code with Subversion within Eclpise environment.
Read the rest of this entry »
Subversion (intro)
April 28th, 2008Subversion is a centralized system for sharing information. It comprises of a repository, which is a central store of data. The repository stores information in the form of a file system. Clients can connect to this repository, and can read or write to these files. When a client writes data, it actually makes the information available to others; and when a client reads the data, it actually receives information from others. Its a typical client server system which uses versioning model.
Read the rest of this entry »
JSR 75 (2)
April 25th, 2008In this post, I will write about how to read a file from the file system of a mobile device.
Read the rest of this entry »
JSR 75 (I)
April 25th, 2008JSR 75 specifies 2 optional packages for mobile devices. I will be talking about these in the next few posts.
Read the rest of this entry »
XML Pull Parsing (Demo)
April 25th, 2008XML Pull Parsing makes marsing XML documents easier and efficient. This post introduces this API.
Read the rest of this entry »
Maven (intro)
April 24th, 2008Maven is a software project management tool, based on project object model. It aims at retusing the load of developer by making in software build process simple and faster.
Read the rest of this entry »
Record Management System (III)
April 24th, 2008In this post, I will continue writing about RMS - but more specifically relavent to codding.
Read the rest of this entry »
Record Management System (II)
April 24th, 2008Do read the first part of this post. This post is code specific. I will present some sode snippets to make things obvious.
Read the rest of this entry »
TextField vs TextBox (2)
April 23rd, 2008I will write about TextBox (javax.microedition.lcdui.TextBox). This class inherits from javax.microedition.lcdui.Screen, so you should know that its a Screen and unlike TextField, it cannot be appended to a Form.
Read the rest of this entry »
TextField vs TextBox (1)
April 23rd, 2008javax.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 address this issue.
Read the rest of this entry »
Record Management System (I)
April 22nd, 2008RMS is a database (flat file) which MIDlets can use to persist data. In this post, I will introduce the audience with RMS.
Read the rest of this entry »
OMA standard for data synchronisation - SyncML
April 22nd, 2008SyncML 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.
Read the rest of this entry »
Using the DocumentBuilderFactory
April 22nd, 2008In this post, I will prensent an example to show how to use the DocumentBuilderFactory.
Read the rest of this entry »
Working with the DOM parser
April 21st, 2008You will be introduced to the working of DOM parser in this post.
Read the rest of this entry »
Reading RSS using Informa API
April 21st, 2008RSS (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 files to provide syndicated data.
Read the rest of this entry »
Java Compiler API (brief intro)
April 21st, 2008We 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 of Java 6, it has become possible to compile Java classs from a Java class.
Read the rest of this entry »
Compiling a Java class using JavaCompiler - II
April 19th, 2008You may want to compile more than one classes from a Java class using javax.tools package. This is shown in this post.
Read the rest of this entry »
Compiling a Java class using JavaCompiler
April 19th, 2008Java 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.
Read the rest of this entry »
Retrieving auto generated key (JDBC 3.0)
April 19th, 2008JDBC 3.0 introduces a lot of interesting and exciting features which makes database programming simplier. In this post, I will address how to retrieve auto generated keys using JDBC 3.0.
Read the rest of this entry »
Returning multiple results (JDBC 3.0)
April 18th, 2008If 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 specification allows the Statement interface to support multiple open ResultSets. Lets see hot this can be done.
Read the rest of this entry »
Prepared statement pooling (JDBC 3.0)
April 18th, 2008JDBC 3.0 provides improved connection pooling. This post is all about that.
Read the rest of this entry »
Transaction savepoints (JDBC 3.0)
April 18th, 2008JDBC 2 provides complete transaction rollback control over transaction. But if you want to rollback to a point, you cannot do so. JDBC 3.0 introdices savepoints which makes this possible.
Read the rest of this entry »
Using the JAXP validation framework
April 17th, 2008While working iwth 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 also be used for validating XML documents.
Read the rest of this entry »
XSLT processing in Java - II
April 17th, 2008This post is in continuation of “XSLT processing in Java”. Do read the first part before this one.
Read the rest of this entry »
XSLT processing in Java - I
April 17th, 2008XSLT (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 XSLT transformation. These libraries can be used from a Java application like JSP/Servlet to read a XML file and to transform it into a HTML.
Read the rest of this entry »
JAXP SAXParser class
April 16th, 2008You 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.
Read the rest of this entry »
SAXParserFactory Example
April 16th, 2008To change the parser implementations, JAXP provides a class called SAXParserFactory. I will present an example that will show how to use this class.
Read the rest of this entry »
Introduction to JAXP
April 16th, 2008If 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 post.
Read the rest of this entry »
Java Web Start (advantages) - II
April 16th, 2008Lets continue with advantages of Java Web Start.
Read the rest of this entry »