Configuration file for the Process Mode

In addition to converting data to and from an EDI format, the EDIadapter can also be used with an NDO data tree as both input and output. The EDIAdapter normally uses the Deliver Mode when NDO is the input. Process Mode is used to get data from a transport, enrich the data or submit a request and get a response, and put the data to another transport. Process Mode is most appropriate when interfacing with applications that operate in a synchronous manner such as a CORBA call, an RFC request reply, or a database SELECT.

The Process Mode file already has comments removed. Copy the file below to a configuration file and then modify the lines that have instructions listed below.

Adapter
	adapter=EDIAdapter
	mode=PROCESS
	data=NDO
	prefix=<prefix> 					# Obtain the prefix name from the
						# Schema configuration
 						# file generated from Export Schema
 						# to MQSI, e-BizIntegrator, 
						# or e-Biz 2000.
	msg.type=<prefix>.IC.<schema name>  > # Obtain the
							# prefix name from the
 							# configuration generated from
 							# Export Schema to MQSI, e-Biz    
							# Integrator, or e-Biz 2000.
	maximum_num_retries=2
	transport.context.name=ADKContext
	transport.out.name=OUT
	failurequeue.name=FAIL
	transport.in.name=IN
	transport.out.name=OUT
	transport.failure_store_name=FAIL
	maximum.transport.retries=2
 	transport.exit_if_empty=true
	acknowledge.put=true

#NCF Serializer  
	Input.Serializer.Factory=NCFSerializer_Factory  
	Input.Serializer.Library=adk33ncfsd  
	Output.Serializer.Factory=NCFSerializer_Factory  
	Output.Serializer.Library=adk33ncfsd  

#XML Serializer  
	#Input.Serializer.Factory=XMLSerializer_Factory  
	#Input.Serializer.Library=adk33xmlsd  
	#Output.Serializer.Factory=XMLSerializer_Factory  
	#Output.Serializer.Library=adk33xmlsd

OTContext.ADKContext
	NNOT_CTX_DEFAULT_TIL_ID    = FAIL
	NNOT_CTX_TMID		   = MQSeriesTM
	NNOT_CTX_ENFORCE_TX	   = TRUE

TransactionManager.MQSeriesTM
	NNOT_SHARED_LIBRARY    = oti21mqstm
	NNOT_FACTORY_FUNCTION =
							 NNOTMQSeriesTXManagerFactory
	NN_TM_MQS_QMGR	 = TEST_MQ1   # Obtain the Queue
							# Manager name from
 							# MQSeries.

Session.ADKSession
 	NNOT_SHARED_LIBRARY    = dbt21mqs
 	NNOT_FACTORY_FUNCTION  = NNMQSSessionFactory
 	NNMQS_SES_OPEN_QMGR    = TEST_MQ1   # Enter the Queue
									# Manager name from
 									# MQSeries.Transport.IN
    NNOT_SHARED_LIBRARY        = dbt21mqs
    NNOT_FACTORY_FUNCTION      = NNMQSQueueFactory
    NNOT_TIL_OPEN_SESSION_ID   = ADKSession
    NNOT_TIL_OPEN_TSI 								= TESTQ    # Enter the local
										#	 queue where
 										# the message(s)
										# originally reside 
 										# on the queue.

Transport.OUT
    NNOT_SHARED_LIBRARY        = dbt21mqs
    NNOT_FACTORY_FUNCTION      = NNMQSQueueFactory
    NNOT_TIL_OPEN_SESSION_ID   = ADKSession
    NNOT_TIL_OPEN_TSI          = OUTQ    # Enter the
										# local queue where
 										# the message(s) is
										# being moved.

Transport.FAIL
	NNOT_SHARED_LIBRARY        = dbt21mqs 
 	NNOT_FACTORY_FUNCTION      = NNMQSQueueFactory
	NNOT_TIL_OPEN_SESSION_ID   = ADKSession
	NNOT_TIL_OPEN_TSI          = FAILQ      # Enter the
										# local queue that
 										# serves as the
										# failure queue in 
 										# MQSeries.

	EDIAdapter 						# The lines below are unique
							# to each map and must
 							# be carefully edited. 

rtp.mapSwitches="C:\Program Files\Nnsy\ECMap\Maps\ NDO2\temp.x12" NDO_TO_NDO PO -t ANY -dg "C:\Program Files\Nnsy\ECMap\Maps\NDO2\NDO_TO_NDO" -dt "C:\Program Files\Nnsy\ECMap\Maps\NDO2\NDO_TO_NDO" -nt -ne -c -l -wx 0
 	rtp.acquire_dir=O

After the EDIadapter configuration file has been created and edited, you can click on Run Map. ECMap will call the NNSYadapter33.exe with the command line parameter: "-file=<configuration file>".