wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes weblogic jdbc, problem while retrieving date object. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic jdbc, problem while retrieving date object." Watch "weblogic jdbc, problem while retrieving date object." New topic
Author

weblogic jdbc, problem while retrieving date object.

unni krishna
Ranch Hand

Joined: Jul 14, 2004
Posts: 39
I have come across a peculiar problem when I try to deploy ear in Weblogic Sun Solaris.

I am trying to fetch data from a table which has a field of type DATE.

I am using resultset.getObject(index) method to get the object for each column in the table. The issue starts here. In my windows system when I try to get the type of this object it returns java.sql.TimeStamp for the date column but when I deploy in UNIX it returns to me that object type of this column is java.sql.Date.

Can anyone explain why is this behaving differently in different platforms ?

I am using Weblogic 8.1 SP2 for the deployment in sun and windows OS.


Software Engineer (SCJP)<br />USTechnology, CA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: weblogic jdbc, problem while retrieving date object.
 
Similar Threads
SQL & Java Data Mapping using EJB
problem retrieving date type from database.
case Types.DATE Error - urgent
HibernateException - Wrong column type
Fetching Time from Resultset