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 » WebSphere Message Broker (ACE) Support » Schema field type 'long' to Mapping of that field..

Post new topic  Reply to topic
 Schema field type 'long' to Mapping of that field.. « View previous topic :: View next topic » 
Author Message
shashivarungupta
PostPosted: Sun Nov 02, 2014 3:48 pm    Post subject: Schema field type 'long' to Mapping of that field.. Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Hi,

As per xsd schema model, a field is defined with type 'long' and that field is mapped (using WMB GUI Mapping Editor) to a field of same type 'long' in output message assembly.

The question is while mapping that field over wmb (v8.0.0.4) , wmb treats that field of type 'long' as an 'integer' with range between -9223372036854775808 and +9223372036854775807 , as Esql does for 64-bit integer constant/variable value ?

The another question could be, why am I asking this question. Because in one of the scenario I've been facing is, Java is sending the long type value to that field, which may/may not be get converted to integer type (or similar type) by mapper over wmb, before it gets mapped with output field of long type.

Mapper has 'Move' transformation between two fields without any condition.


Thanks !!
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
martinb
PostPosted: Mon Nov 03, 2014 3:07 pm    Post subject: Reply with quote

Master

Joined: 09 Nov 2006
Posts: 210
Location: UK

Yes the Broker Knowledge Center topic "ESQL to XML Schema data type mapping" confirms xs:long - INTEGER, which has the range you quote.

The Java long range is compatible, see

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html

http://stackoverflow.com/questions/15505515/java-long-primitive-type-maxumum-limit

"The long data type is a 64-bit two's complement integer. The signed long has a minimum value of -2E63 and a maximum value of 2E63-1".
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 » WebSphere Message Broker (ACE) Support » Schema field type 'long' to Mapping of that field..
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.