Monthly Archives: March 2011

How to send an email from UNIX using mailx.

#!/bin/sh # # Purpose: Demonstrate how to send an email from UNIX using mailx. ############################################################ # Example 1 – Simple: echo “This is the body.”| mailx -s “mailx Test1” sample@sample.com # Example 2 – Using Variables: SUBJECT=”mailx Test2″ EMAIL_ADDRESS=”sample@sample.com“ BODY=”This … Continue reading

Posted in HowTo, unix | Leave a comment

DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704

SQLCODE -204 is "object does not exist". I was getting this error while executing a query, this was happening because I was using the SCHEMA name of Q7 database and executing the query inside Q0 db. means not able to … Continue reading

Posted in DB2, Java, Troubleshoot | Leave a comment

When we need HttpSessionBindingListener?

The HttpSessionBindingListener interface is implemented when an object needs to be notified if it's being bound to a session or unbound from a session. Objects implement this interface so that they can be notified when they are being bound or … Continue reading

Posted in HowTo, Java | Leave a comment