Archive for September, 2008
Apache Http Server And SVN
Every developer and Every Project in this world uses a version system. Of all versioning systems i’ve used the most elegent one is SVN. With its ease of use and over the http access facility it made my life easier than any otehr system.
There are 2 different ways we can host SVN over HTTP. One [...]
Scheduler In Java
Whenever people think of creating any scheduler in java the first thing that come to mind is Quartz. Quartz is Enterprise Job Scheduler which is well tested across the J2EE Industry. So here i’ll explain How to use Quartz and few of its useful features.
First and Foremost thing one has to do to create a [...]
SOAP Message Using Sockets
Recently i had to call a webservice for creation of a demo. And i had no time to learn any packages which create SOAP envelope’s. The only thing i know is plan old java. Then i thought why not use sockets for sending messages. Here is a sample Program which sends soap messages and gets [...]
Read Full Post | Make a Comment ( 4 so far )Creating A Service Out of Java Class
Recently i got a small request from one of my client to provide him a windows/linux service which runs like a deamon and mails some files in the pc every fortnight. As i’m a java guy was trying to find out options how to do this. Luckily we guys have an option in form of [...]
Read Full Post | Make a Comment ( None so far )Java Mail Over SSL(Gmail As Example)
This is a sample program which can send a mail using gmail server as smtp host.
import java.security.Security;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.mail.BodyPart;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* This sends mail to Intended receipients using Gmail SMTP Server and Account
*
* @author Ashwin
*
*/
public class MailSender {
[...]
Read Full Post | Make a Comment ( 6 so far )Few Tips / Useful Statements And Functions in SQL
Whenever i try to write some sql to retreive a report to display to a business user there comes a Question of Formatting. You can do it in 2 ways either by retreiving the data and then start formatting it respective language before creating report or use Database functions and Constructs to achieve this.
Of the [...]


