Monthly Archives: January 2009

How to Upload Multiple Files in Java

package com.mp.ws; /** * * @author nitinaggarwal * */ public interface IFileUpload { public byte[] get1File(String name); public byte[][] getMulitpleFiles(String names[]); public String getXmlFile(String name); } package com.mp.ws; /** * * @author nitinaggarwal * */ public class FileUpload implements IFileUpload { public byte[] get1File(String name) { byte data[] = null; FileReader fr = new FileReader(); […]

read more

Pagination: Server Side or Client Side?

What is it best way to handle pagination/sorting and filtering? Server side or at the client side? Numerous times in your projects you might have to face a situation where you need to pull chunks of data dynamically. The obvious issue that you then face is paginationsorting and filtering. You then start to think if […]

read more

Java Persistence API – Getting Started

The Java persistence API (JPA) allows you to store data from POJO’s (Plain old Java Objects) into database tables. The persistence metadata is specified using Java annotations, XML mapping files or a combination of both. In case both are used then the XML information overwrites the annotations in the Java code. This persistence metadata defines […]

read more

Native XML Web Services in SQL Server 2005

These days, you should hardly be surprised when you run into a business requirement to make data available over the Web. Fortunately, database products are making it easier and easier to hook up Internet protocols directly to your data. Microsoft SQL Server is a case in point. While SQL Server 2000 did allow Web data […]

read more