|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Date Format JDBC Connector |
« View previous topic :: View next topic » |
Author |
Message
|
voyager |
Posted: Mon Oct 03, 2005 6:33 pm Post subject: Date Format JDBC Connector |
|
|
 Centurion
Joined: 28 Dec 2004 Posts: 127
|
Friends,
Lately, I have come across a problem with JDBC connector in ICS.
I am trying to write a time stamp value (with milliseconds)
format
MM/dd/yyyy HH:mm:ss.SSS into a SQL table using JDBC connector.
There is already a connector specific property existing on JDBC connector
for DateFormat - MM/dd/yyyy HH:mm:ss.
When MM/dd/yyyy HH:mm:ss.SSS formatted value in BO is supplied to JDBC Connector
to write to SQL Table, JDBC connector throws exception
com.crossworlds.cwconnectorapi.exceptions.
VerbProcessingFailedException[Type: Error] [MsgID: 90012]
[Mesg: ParseException java.text.ParseException: Unparseable date: "2005-09-23 14:14:00.428"]
But, if I change the DateFormat property in Connector Specific properties of JDBC Connector to MM/dd/yyyy HH:mm:ss.SSS, then the rest of attributes in BOs whose date-formats such as MM/dd/yyyy HH:mm:ss would fail.
I am not sure if in any way, I can give this information in Application Specific Information for Attribute in BO because there is only one
attribute with this date format (MM/dd/yyyy HH:mm:ss.SSS).
I would appreciate very much, if anyone could give me suggestions to overcome this error.
Thank you very much in advance. _________________ voyager |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 03, 2005 7:39 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Are you using java.sql.Date or java.util.Date ??
Enjoy  |
|
Back to top |
|
 |
voyager |
Posted: Tue Oct 04, 2005 4:59 am Post subject: |
|
|
 Centurion
Joined: 28 Dec 2004 Posts: 127
|
I am using java.sql.Timestamp _________________ voyager |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|