xBus

Examples

This document represents the simple examples specific for the standard.conf and for the crontab files.

 
 standard.conf
sdfsd

xBus

dfs
###############
#   standard.conf   #
###############

#---------------------------------------------------------
# Basic Definitions
#---------------------------------------------------------

Base_Trace_Level=3
Base_Trace_Tracer=net.sf.xbus.base.core.trace.FileTrace
Base_FileTrace_Filename=trace.log
Base_Trace_MaxLength=999999
Base_Retry_Count=3
Base_Timeout_Seconds=10

#--------------------------------------------------------------------
# System Definitions
#--------------------------------------------------------------------

System_PartsOrderAutoline_Type=Text
System_PartsOrderAutoline_Message=SimpleTextMessage
System_PartsOrderAutoline_Filename=/Autoline/DEALERSHORTNUMBER/KPOD
System_PartsOrderAutoline_FinalResolution=Preserve

System_PartsOrderWholesale_Type=Text
System_PartsOrderWholesale_Message=SimpleTextMessage
System_PartsOrderWholesale_Sender=AS400FileSender
System_PartsOrderWholesale_Filename=
    /QSYS.LIB/KCC.LIB/KPODDEALERSHORTNUMBER.FILE/KPODDEALERSHORTNUMBER.MBR
System_PartsOrderWholesale_ConflictResolution=Append
System_PartsOrderWholesale_AS400=ZK

Router_PartsOrderAutoline.Default_Distribute1=PartsOrderWholesale

Journal_Write_PartsOrderAutoline.Receive=true
Journal_Write_PartsOrderWholesale.Send=true
#--------------------------------------------------------------------
# Dealers
#--------------------------------------------------------------------

Dealer_BM_Name=TestDealer
Dealer_BM_ShortNumber=BM

Dealer_74_Name=AnotherTestDealer
Dealer_74_ShortNumber=74

#--------------------------------------------------------------------
# AS/400
#--------------------------------------------------------------------

AS400Connection_ZK_SystemName=203.231.146.5
AS400Connection_ZK_User=QUSER
AS400Connection_ZK_Password=QUSER

#--------------------------------------------------------------------
# Definitions for logging the activities in the journal
#--------------------------------------------------------------------

Journal_Implementation_Class=net.sf.xbus.protocol.journal.FileJournal
Journal_FileJournal_Filename=journal.log
Journal_MessageLength_Bytes=100

#--------------------------------------------------------------------
# Transformations between Messages
#--------------------------------------------------------------------

TransformRequest_SimpleTextMessage_SimpleTextMessage=SimpleTextCloneTransformer
TransformRequest_XBUSXMLMessage_XBUSXMLMessage=XMLCloneTransformer
TransformRequest_SimpleTextMessage_XBUSXMLMessage=XMLWrapperTransformer
TransformRequest_XBUSXMLMessage_SimpleTextMessage=XMLUnwrapperTransformer
TransformRequest_AS400ProgramMessage_AS400ProgramMessage=XMLCloneTransformer

#--------------------------------------------------------------------
# XML parser settings for different messages
#--------------------------------------------------------------------
AS400ProgramMessage_ParserSettings_IgnoringComments=true
AS400ProgramMessage_ParserSettings_IgnoringElementContentWhitespace=false
AS400ProgramMessage_ParserSettings_XMLValidating=true


#--------------------------------------------------------------------
# Parts - Online
#--------------------------------------------------------------------

FileReceiverService_System_InquirySystem1=StockCheckAutolineRequest
FileReceiverService_Timeout_Seconds=1

System_StockCheckAutolineRequest_Type=Text
System_StockCheckAutolineRequest_Message=AS400ProgramMessage
System_StockCheckAutolineRequest_Filename=/Autoline/common/Input_DEALERNUMBER_WILDCARD.xml
System_StockCheckAutolineRequest_FinalResolution=Delete

System_StockCheckWholesale_Type=Object
System_StockCheckWholesale_Message=AS400ProgramMessage
System_StockCheckWholesale_Sender=AS400FileSender
System_StockCheckWholesale_AS400Name=ZK

System_StockCheckAutolineResponse_Type=Text
System_StockCheckAutolineResponse_Message=AS400ProgramMessage
System_StockCheckAutolineResponse_Sender=FileSender
System_StockCheckAutolineResponse_Filename=
    /Autoline/common/Output_DEALERNUMBER_WILDCARD.xml
System_StockCheckAutolineResponse_ConflictResolution=Overwrite

Router_StockCheckAutolineRequest.StockCheck_Invoke1=StockCheckWholesale
Router_StockCheckAutolineRequest.StockCheck_Distribute1=StockCheckAutolineResponse

Journal_Write_StockCheckAutolineRequest.Receive=true
Journal_Write_StockCheckWholesale.Send=true
Journal_Write_StockCheckAutolineResponse.Send=true

 crontab File
 
#  min. hour month month week command
#   day   day  
# ----------------------------------------------------------------------------------------------------------
0 2 * * * /opt/integrationlayer/bin/as400filereceiver.ksh PackageInformationVLS
5 2 * * * /opt/integrationlayer/bin/as400filereceiver.ksh ShippingStatusVLS
10 2 * * * /opt/integrationlayer/bin/filebytearraylistreceiver.ksh CustomerSalesInfoAutoline
25 2 * * * /opt/integrationlayer/bin/as400filereceiver.ksh WarrantyCreditsIMPHDL
30 2 * * * /opt/integrationlayer/bin/as400filereceiver.ksh TechnicalCampaignsIMPHDL
40 2 * * * /opt/integrationlayer/bin/as400filereceiver.ksh MenuPricingIMPHDL
5 6-22 * * * /opt/integrationlayer/bin/filebytearraylistreceiver.ksh PartsOrderAutoline
30 6-22 * * * /opt/integrationlayer/bin/as400bytearraylistreceiver.ksh PartsReceiptIMPHDL