配接器商業物件結構

安裝配接器之後,您必須建立商業物件。 除了已配置的資料處理常式所強制的商業物件結構之外,不需建立商業物件。連接器處理的商業物件可以具有 InterChange Server 容許的任何名稱。

配接器會從佇列擷取訊息,並嘗試將訊息內容移入商業物件 (由 Meta 物件定義)。嚴格地說,連接器既不控制亦不影響商業物件結構。這些是 Meta 物件定義的功能,也是連接器的資料處理常式需求。實際上,並沒有商業物件層次的應用程式資訊。 相反地,連接器在擷取及傳遞商業物件時的主要作用是監視訊息至商業物件 (或相反) 程序的錯誤。

範例商業物件內容

本節以名稱值資料處理常式說明連接器的範例商業物件內容。

[ReposCopy]
 Version = 3.0.0
 [End]
 [BusinessObjectDefinition]
 Name = Sample_WebSphere MQ_LegacyContact
 Version = 1.0.0
  
 [Attribute]
 Name = ContactId
 Type = String
 MaxLength = 255
 IsKey = true
 IsForeignKey = false
 IsRequired = true
 DefaultValue = 1001
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = FirstName
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = Jim
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = LastName
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = Smith
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = OfficePhoneArea
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = 650
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = OfficePhone
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = 555-1234
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = OfficePhoneExt
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = x100
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = FaxArea
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = 650
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = FaxPhone
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = 555-1235
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = Department
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = Engineering
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = Title
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = Software Engineer
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = EmailAddr
 Type = String
 MaxLength = 255
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 DefaultValue = jim.smith@crossworlds.com
 IsRequiredServerBound = false
 [End]
 [Attribute]
 Name = ObjectEventId
 Type = String
 MaxLength = 0
 IsKey = false
 IsForeignKey = false
 IsRequired = false
 IsRequiredServerBound = false
 [End]
  
 [Verb]
 Name = Create
 [End]
  
 [Verb]
 Name = Delete
 [End]
  
 [Verb]
 Name = Retrieve
 [End]
  
 [Verb]
 Name = Update
 [End]
 [End]
 

Copyright IBM Corp. 1997, 2003