Actually the solution does not seem to work the way I need it, what I actually need is as follows:
1. I have an DB where I store information in timestamp format without timezone.
2. I get that timetsamp from db in the form of java.util.Date from hibernate and as discussed java.util.Date does not store the timezone
3. But the java.util.Date appends the timezone of the application server to the information its carries, so it assumes that whatever timezone it gets from the 'Application Server' timezone and appends it to the info. You can see that by printing a java.util.Date variable, it displays the timezone.
4. So suppose if now I am getting Apr 4 2008 7:00 from the DB into a java.util.Date variable, the java.util.Date by itself will append EST as my application server is in EST but I want to append GMT to it somehow. Like I want Apr 4 2008 7:00 GMT and not Apr 4 2008 7:00 EST.
5. This is just beacuse I would then convert into whatever timezone I need and display, like for the above I would display Apr 4 2008 3:00 EST
I guess this small example should be more useful.
Thanks again,
Rohits