File-to-File scenario using J2SE Engine

...Previous

Step2: Configuring Plain J2SE File Adapter for both Sender and Receiver

a)       First let’s Configure Sender Adapter : file_sender2is  

 

Below mentioned Parameters are Mandatory while configuring a Sender PlainJ2SE Adapter

classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
version=30
##Here we are using a Simple Row Conversion
mode=FILE2XMBWITHROWCONVERSION
## Integration Engine address and document settings (example, see docu)
XI.TargetURL=<Integration Engine URL of XI to which PlainJ2SE Adapter need to connect>
XI.User=<XI UserId>
The user must have the authorizations of group SAP_XI_APPL_SERV_USER
On the Integration Server.
XI.Password=<Password>
XI.Client=<XI Client >
XI.Language=EN
#XI.SenderParty=<Sender Party>
XI.SenderService=<Sender Business Service>
XI.Interface=<Sender Message interface>
XI.InterfaceNamespace=<Namespace>
#XI.ReceiverParty=<Receiver Party>
XI.ReceiverService=<Receiver Business Service>

 

The below mentioned parameters have to mention according to our requirement. Here we are doing with row conversion. 

 

After Configuring Adapter follow these steps click Store Configuration Data next click Restart and then click Reload.

If Adapter is working fine then it should be in Green status. Check View log if it shows Red.  

b)       Configure the Receiver Adapter :file_receiver 

It’s better to give the path for XI.httpService as mentioned below.

XI.httpService=http://<TargetIPAddress>:<Service Number>/file/test

Note: TargetIPAddress and Service Number are the same details that we mentioned in Receiver XI Communication Channel. So that our XI Adapter will find the Target system depending upon these details. 

 

After Configuring Adapter follow these steps click Store Configuration Data next click Restart and then click Reload.

If Adapter is working fine then it should be in Green status. Check View log if it shows Red.  

Step3: Test the Scenario: 

Now place a file with name PlainJ2se.txt in Input folder After the poll interval of 30secs as we mentioned in sender file adapter it should be archived in Archive folder and should place the target file name PlainJ2se<add timestamp>.txt in Output directory. 

Check in the View log of sender File plain J2SE after placing a file in Input folder. 

 

The above screenshot shows the successful process done by the Sender adapter as it was picked the file from Input folder sent to Integration Engine and also archived to D:/Archive. 

 

Now check the View log of Receiver File J2SE Adapter.

This screenshots shows that Receiver FileJ2SE was also processed successfully. 

 

Check the Tcode: SXMB_MONI in PI System.

 

Note:

 1) We can check this Adapter Engine in RWB of PI system. 

2) Here we can only test message from RWB. 

Limitations:

  1. We can’t develop Adapter Modules in Plain J2SE Adapter Engine.

  2. We can’t check the Adapter Monitoring or Communication Channel monitoring centrally in PI system.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image