ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Date Format JDBC Connector

Post new topic  Reply to topic
 Date Format JDBC Connector « View previous topic :: View next topic » 
Author Message
voyager
PostPosted: Mon Oct 03, 2005 6:33 pm    Post subject: Date Format JDBC Connector Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 03, 2005 7:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
voyager
PostPosted: Tue Oct 04, 2005 4:59 am    Post subject: Reply with quote

Centurion

Joined: 28 Dec 2004
Posts: 127

I am using java.sql.Timestamp
_________________
voyager
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Date Format JDBC Connector
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.