cancel
Showing results for 
Search instead for 
Did you mean: 

J2SE Adapter Engine

Former Member
0 Kudos

Hello Guru's,

I have a following scenario:

I needed to send a file with sFTP and with XI this is not possible (XI only supports FTPs) so I have installed a J2SE adapter engine on the receiver side and the adapter is the XI XML adapter. Now I still need to do the following:

Configure the J2SE adapter engine so that I can place a file in a certain directory on the server. Now I am not sure what to do with certain configuration parameters. I have read the help.sap.com but can someone help me out with an example?

Best regards,

Guido

Edited by: G. Koopmann on Jun 23, 2008 10:19 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Open your J2SE engine and configure the Receiver file adapter like :

    1. File adapter java class

classname=com.sap.aii.messaging.adapter.ModuleXMB2File

version=30

mode=XMB2FILE

##Adress for XMB endpoint

XI.httpPort=8210

XI.httpService=/file/if007bsh --- > This path shoulbe mentioned in XI adapter in XI. case sensitive

##File Adapter specific parameters

file.createDir=1

file.targetDir=d:/xi/dev/if007bsh/inbox --> dir where u want to create the file

file.targetFilename=IF007BSHa.dat --> File name

  1. file.writeMode=append

  2. file.writeMode=overwrite

file.writeMode=addTimeStamp

file.counterMode=immediately

  1. file.counterMode=afterFirst

  2. file.counterSeparator=

  3. file.counterFormat=00000

  4. file.counterStep=1

XI adapter in Directory -->

Use host name, port and mention path as /file/if007bsh

use logon data for Non SAP system and use adapter engine id and password.

Kulwinder

reward if helpful

Former Member
0 Kudos

Hi,

Some formatting was wrong in earlier reply.

##File adapter java class

classname=com.sap.aii.messaging.adapter.ModuleXMB2File

version=30

mode=XMB2FILE

##Adress for XMB endpoint

XI.httpPort=8210

XI.httpService=/file/if007bsh --- > This path shoulbe mentioned in XI adapter in XI. case sensitive

##File Adapter specific parameters

file.createDir=1

file.targetDir=d:/xi/dev/if007bsh/inbox --> dir where u want to create the file

file.targetFilename=IF007BSHa.dat --> File name

#file.writeMode=append

#file.writeMode=overwrite

file.writeMode=addTimeStamp

file.counterMode=immediately

#file.counterMode=afterFirst

#file.counterSeparator=

#file.counterFormat=00000

#file.counterStep=1

XI adapter in Directory -->

Use host name, port and mention path as /file/if007bsh

use logon data for Non SAP system and use adapter engine id and password.

Kulwinder

reward if helpful

Former Member
0 Kudos

Thnx for the helpfull reply!

I also need to do this for the soap adapter, do you have an example for that too?

Former Member
0 Kudos

Hi,

No data for SOAP sir, Please search in forum or ask a fresh question

Kulwinder

Former Member
0 Kudos

Hi all,

Which parameters need to fill in for this:

XI.httpPort=8210

XI.httpService=/file/if007bsh

Which httpPort and service is this?

stefan_grube
Active Contributor
0 Kudos

> Which parameters need to fill in for this:

>

> XI.httpPort=8210

> XI.httpService=/file/if007bsh

You can use any free port on the local system and any path.

The URL where you send the messages from XI is combined like this:

http://<host>:8210/file/if007bsh

Any adapter channel need a different port.

Regards

Stefan

Former Member
0 Kudos

Hi ,

XI.httpPort= It is the administration port given in the HTTP service while J2SE installation. It can vary with each installation.

XI.httpService= this path can be anything, whatever u like. The only condition is that it should be same as mentioned in XI adapter (path) in XI and Receiver File adapter in J2SE.

Kulwinder

Reward If helpful

Former Member
0 Kudos

Hi,

Thnx for explaining, how can retrieve the port?

Then I can configure it on the right way.

Thnx again.

stefan_grube
Active Contributor
0 Kudos

Just type any port you like. You could take the default 8210 for example. Other channels use 8211, 8212 and so on.

Regards

Stefan

Answers (0)