thanks for the reply Deepak.
My standalone program works perfectly alright when websphere and the
java class running on same machine.
I am using IP address and port number even it is same machine.
When i try to run the same java class from someother machine it doesn't work.
Websphere is running on first machine and i am using the same IP address and port number.
Any thoughts why its happening like that?? See the exception stack trace posted above.