FTP protocol in J2SE Plain Adapter

HI All,
            I have to achieve FTP in J2SE (sender)adapter as i am picking the file from different server.In simple File adapter we can easily achieve it using FTP transport protocol but how to achieve the same in J2SE .What configuration i have to do in my J2se adapter?.Plz help me as it is urgent................
Regards
Saurabh Sharma

When you have achieved this already in J2EE adapter, there should not be any problem in configuring the J2SE adapter. The parameters you need are described in only help:
http://help.sap.com/saphelp_nw04/helpdata/en/0d/00453c91f37151e10000000a11402f/frameset.htm
&#9675;       ftp.host=<ftp-server>
&#9675;       ftp.port=<port-no.>
&#9675;       ftp.user=<user name>
&#9675;       ftp.password=<password>
&#9675;       ftp.connection=perFileTransfer|permanently
&#9675;       ftp.mode=<Binary|Text>
Regards
Stefan

Similar Messages

  • How to register a file adapter in XI Server? [XI 3.0 / J2SE Plain Adapter]

    Hi,
    I am trying to register an outbound file adapter (J2SE Plain Adapter Engine) in the XI server to finally map the adapter to a communiction channel.
    What I tried is to activate the SLDaccessor service in the J2SE Plain Adapter Engine (as mentioned in Plain Adapter Docs -> Serive: SLDaccessor Service).
    After restarting the Adapter, the protocol in Plain Adapter Engine didn´t show any errors.
    Now my problem is where can I find in the "XI-Tools" (SLD, Configuration Builder, ABAP-based Server GUI) that the registration of the adapter did run properly?
    What I expected was that my file adapter would appear in the Integration Builder in my communication channel under the tab "Parameters" in the drop-down box "Adapter Engine". Unfortunately, it is not listed there.
    Furthermore, I do not exactly understand the benefit of registering the adapter in the SLD. What is the real advantage than establishing a connection between the adapter and the XI with the parameters XI.TargetURL etc.
    Regards,
    Kris

    Jason, thanks for your answer.
    Unfortunately, it is not running yet. The Adapter protocol states now:
    11:03:00 : No entry in SLD found for Bus.System 'WeissmannBuisSys1'
    The corresponding adapter configuration looks like:
    XI.SenderParty=
    XI.SenderService=WeissmannBuisSys1
    XI.Interface=OrderMI
    XI.InterfaceNamespace=http://www.foobar.de/sap/xi/test170604
    Can I at least assume that there has been a connection to the business SLD?
    If yes, I do have a Business System 'WeissmannBuisSys1' in SLD -> Business Landscape as well as in my Configuration Scenario under 'Business Systems'. Is this the right one to specify in the parameter XI.SenderService or will there be something else expected?
    Besides that, the corresponding documentation is somehow confusing to me:
    You can set the following arguments (except in mode FILE2XMBSTREAM) and use them to identify the adapter configuration during routing and mapping in the Integration Engine pipeline. You can also find an explanation about each argument there.
    - XI.SenderParty=<sender party name>
    - XI.SenderService=<sender service name>
    - XI.SenderInterfaceNamespace=<namespace URI>
    - XI.SenderInterface=<name>
    - XI.ReceiverParty=<receiver party name>
    - XI.ReceiverService=<receiver service name>
    You must set at least XI.SenderService and XI.Interface. The receiver is generally determined by routing in the Integration Engine. This specification is not mandatory.
    The XI.Interface mentioned in the last paragraph is not listed above in the parameters list. I assume XI.Interface == XI.SenderInterface.
    In the german documetation there is also another XI.InterfaceNamespace mentioned in the last paragraph which I assume is XI.SenderInterfaceNamespace.
    Regards,
    Kris

  • J2SE Plain Adapter

    Hi,
    We are using J2SE Plain Adapter ...
    In one of my scenario i need to send a flat file from one system to another.
    To achieve this i have created a sender file adapter in J2SE with content conversion. file is picked successfully ..i have given a sample file as follows
    123;abc;xyz
    456;qwe;fds
    then in moni i can see this file as in XML.
    now  i need to convert this xml file into flat file by using J2SE receiver file adapter.
    Can anybody help me how to configure receiver file adapter in J2SE?
    Please see the below code... for sender file J2SE adapter..
    <b>## file adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
    version=30
    mode=FILE2XMBWITHSTRUCTURECONVERSION
    Use Password Tokens
    PWD.tokenHandler=PWtokens
    Integration Engine address and document settings
    XI.SLDConfiguration=SLDaccessor
    XI.TargetURL=http://abc.com:8000/sap/xi/engine?type=entry
    XI.User=xyz
    XI.Password=xyz
    XI.Client=100
    XI.Language=en
    Quality of Service (EO,EOIO,BE)
    XI.QualityOfService=EO
    Repository Information
    ##XI.SenderParty=ADAPTER
    XI.SenderService=BS_SENDER_FCC
    XI.Interface=MI_FCC1_Out
    XI.InterfaceNamespace=http://www.sap-press.com/xi/training/00
    #XI.ReceiverParty=
    #XI.ReceiverService=
    File processing config
    file.sourceDir=f:/abc/
    file.sourceFilename=xyz*
    file.type=TXT
    #file.encoding=UTF-8
    file.pollInterval=10
    file.processingMode=delete
    xml.documentName=MT_FCC1
    xml.documentNamespace=http://www.sap-press.com/xi/training/00
    xml.recordsetName=Data
    xml.recordsetStructure=item,1
    xml.item.fieldNames=ID,Name,Address
    xml.item.fieldSeparator=,</b>
    Thanks in Advance..
    Regards,
    Reehan

    use this help link as a reference;
    http://help.sap.com/saphelp_nw04s/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm
    it is as similar to the sender side configuration

  • Configure SSL in J2SE Plain adapter

    I tryed to configure SSL in J2SE Plain adapter. (7.0)
    I've generated a certificate file "certif_file.cer" and
    while I put in GUIBrowserEngine Property File the following
    line:
    HTTP.SSLcertificate=F:\tech_adapter_70\certif_file.cer
    I've got the following error message:
    16:19:10 : Error(s) in GUIBrowserEngine configuration
    parameters found:
    ERROR: Certificate file 'F: ech_adapter_70certif_file.cer' not
    found, must quit!
    It seems that something wrong with my definition of full path
    to this file. But I do not find from SAP Library any solution
    about this problem.
    Could you help me?

    Hi Boris,
    Please try to give the full path using backslash '/' :
    e.g.  F:/tech_adapter_70/certif_file.cer
    I hope it will work.
              The J2SE Adapter Engine uses SSL only for communication line encryption, not for client and server authentications. Since this is a drawback with respect to security, you should use the J2EE Adapter Engine in insecure environments.
                             All configuration data for the Plain J2SE Adapter Engine is maintained in flat property files.The file for the engine administration data itself is located in the following directory:
    <installation directory>/tech_adapter/BaseConfiguration
    The file for the adapter configuration data is located in the following directory:
    <installation directory>/tech_adapter/Configuration
                       The adapters of the Plain J2SE Adapter Engine are configured locally and not in the Integration  Directory. Exchanged messages are also stored directly in the file system.
    Therefore, ensure that only the operating system user, who has started and therefore owns the adapter engine process, can read the property files and has access to the directories used for message exchange.
    *Pls: Reward points if helpful*
    Regards,
    Jyoti
    Edited by: Jyoti Acharya on Dec 19, 2007 5:05 PM

  • J2SE Plain Adapter - Continuous Operation

    Hi All,
    I would like to ask for your assistance in configuring the J2SE Plain Adapter Engine for continuous operation.
    This is the scenario:
    We currently have the db_receiver (jdb receiver) adapter up and running. The connection to the DB is ok and also the communication to XI is successful. However we would like now to have it permanently running as NT service to avoid running the run_adapter.bat and open the web browser, enter user and pass, etc, every time we need to use the adapter.
    Following the directions given by the Adapter.pdf document, under section u201CContinuous Operationu201D, the service SAPAdapterengine was successfully created, but now we have two doubts with regards to this:
    1-     The service mentioned above is not started right after the installation and every time we try to do it, the following message is displayed: The SAPAdapterengine service on Local computer started and stopped. Some services stop automatically if they have not work to do, for example, the Performance Logs and Alert service.
    2-     How the newly created service detects the configuration weu2019ve done for the db_receiver adapter in the very first time?
    Is there any extra step to link the service and the previous configuration made for db_receiver? Could you please give me or point me to some info source that explain the way the service works?
    Thanks in advance. Your help is highly appreciated.
    Kind regards

    Hi Diego,
    Have you had any luck in getting this to work. I am having the same issue, would really appriciate the help.
    Kind regards

  • Send Filename from j2se FILE Adapter

    Hi,
    I need store filename from local file to xml element. When I use j2ee adapter there is no problem. I sended Filename to Adapter Metadata and through DynamicConfigurationKey in mapping I write it to element.
    My question is: How could i do it in j2se plain adapter? (In our customer there is no way for using j2ee adapter)
    Many thanks,
    Paul.

    hi,
    try this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //obtengo la Key del FileName
    DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
    Hope it helps
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

  • Sender File Adapter (FTP Protocol)

    Hi Every Body,
    I have a problem in using Sender File Adapter of (FTP Protocol Type)
    I have given all required settings to get connected to the FTP Server.
    When i give ( Source Directory and Exact File Name ex : MDMERP.xml)
    File gets picked up.
    But When i give (Source Directory and Exact File Name ex : *.xml)
    it gives below exception
    Error occurred while connecting to the FTP server "mdmerp6:21": java.net.ConnectException: Connection refused: connect
    Strange any guess !! :(((
    Regards
    Srinivas

    Hi,
    If that is connection error then it should have not allowed to pick up when i have given the specifif file name ,
    .xml is too not working
    my problem all starts if i use other than file name declarartion it throws error
    of below kind
    Error occurred while connecting to the FTP server "mdxxxp6:21": java.net.ConnectException: Connection refused: connect
    Can i use " Advanced Selection of Source File" and make it run\
    With regards
    Srini

  • File Sender Adapter with FTP protocol

    Hi,
    I implementet a file sender adapter with FTP protocol. There is a problem: the sender processes the files even if they're in use by another application.
    I.E. If another application put files (via ftp) in the sender work directory (that is on ftp), the sender processes those files before their transfer is completed.
    I don't want that this sender in a communication channel in PI 7.1, imports files in the system when they aren't completed yet.
    There are some ways to block sender before it processes incompleted files (in an ftp)?
    Thanks
    Matteo

    Hi,
    File sender adapter provides a check for NFS mode
    +Check this
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
    This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.+
    Other approach can be to apply OS level checks
    Regards
    Suraj

  • File selection sequence in the FTP connection for File Sender Adapter

    Hi,
    I have a file to Proxy scenario using FTP connection parameters.
    If there are multiple files in the sender folder, XI picks up the files randomly with no processing sequence.
    I want XI to pick up the files based on the date time stamp meaning the  oldest file created in the folder should be processes first and rest all in sequence there after.
    I know processing sequence can be set for NFS connection but not for FTP .
    Please suggest if there's any way to make this work.
    Thanks in advance.
    Thanks and Regards,
    Amit Bhagwat.
    Edited by: Amit Bhagwat on Nov 4, 2009 5:17 AM

    Hi
    For the Transport Protocol "File Transfer Protocol (FTP)" files are always processed in ascending alphabetical order
    If you want the file to be processed in sequence then you can use Quality of Service EOIO in the sender adapter.
    The files are processed in the sequence they are picked up.
    otherwise use BPM for File Sequencing..
    Refer the following Threads
    FTP Sender Adapter - Processing Sequence
    Processing Sequence issue of FTP protocol
    Regards
    Abhijit
    Edited by: Abhijit Bolakhe on Nov 4, 2009 10:32 AM

  • J2SE JDBC Adapter

    Hi
    I'm trying to setup a Plain J2SE JDBC adapter but i'm not sure what format the properties should have in the configuration.
    What should i fill in for the JDBC driver section? I have a MS SQL implementation -
    db.jdbcDriver=?????
    i tried db.jdbcDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver but that didnt work.
    The log says ERROR: Attempt to load JDBC driver failed ("java.lang.ClassNotFoundException: ")
    Thanks

    >
    Riaz Patel wrote:
    > Hi
    >
    > I'm trying to setup a Plain J2SE JDBC adapter but i'm not sure what format the properties should have in the configuration.
    >
    > What should i fill in for the JDBC driver section? I have a MS SQL implementation -
    >
    > db.jdbcDriver=?????
    >
    >
    > i tried db.jdbcDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver but that didnt work.
    >
    > The log says ERROR: Attempt to load JDBC driver failed ("java.lang.ClassNotFoundException: ")
    >
    > Thanks
    Have you upload the DB Driver on PI System?
    I think that you did't do this...

  • Processing Sequence issue of FTP protocol

    Hi,we are using the standard SAP MDM data syndication mode which using SAP XI to publish the data to client system.In this sceanrio,we think the data files generated by MDM Syndication Server should be processed according to their time stamp in the file system, starting with the oldest file.I saw the Processing Sequence parameters of transport protocol File System (NFS) in XI file adapter,but not in the FTP protocol.It seems if we want to sure the processing sequence by date,we have to use NFS.
           In the Notes 821267,it mentioned "The File Adapter allows you to configure the Processing Sequence of files for the Transport Protocol "File System (NFS)", which also determines the order for EOIO processing. Files can either be processed in ascending alphabetical order (Processing Sequence "By Name") or by their last modification time stamp (Processing Sequence "By Date"), where the oldest file is processed first. For the Transport Protocol "File Transfer Protocol (FTP)" files are always processed in ascending alphabetical order." 
           My question is if the file name is consisted of the timestamp,such as "data20081116122345.xml"  "data20081117122040.xml",will the files be processed by the "timestamp" name ascending in the Transport Protocol FTP? For example "data20081116122345.xml" first, "data20081117122040.xml" second.Thanks.

    Yes, if the file consist of timestamp then with alphabetical order, it will execute in the sequence you described.
    Thanks

  • Http and ftp protocol extremely slow (pop working well though)

    Hello. Starting today, on one of my macs, http and ftp protocol are extremely slow (page load 90 sec. instead of 2) (pop working well though). Provider finds nothing, on second mac all is fine (same cable, same settings … ). Cable connection, checked both sockets, changed cable, no change. Since pop3 protocol seems to work fine, this does look like a software problem to me. (Repaired permissions, no other tests or means. All used software up to date (OSX10.6.8 etc.))
    I'd be thankful for any idea.

    Not at all. Then I turned on NetBarrier, for testing and to avoid any damage (piece of software I don't employ in vain), and all slowed down again, but not quite as badly as before. Restarted, and now it seems back to normal with all extensions loaded. (I had done that before, obviously, and with no outcome, so it can't very well have been just that. But what?)
    I'll watch and learn, and report back; unless you have any further suggestions for the moment. Either way, thankyou very much so far.

  • How to get the filename from J2SE File adapter

    In our project scenario , we are using J2EE and J2SE engine both .J2EE for mapping  and J2SE for Deliveying the message .
    In one senario, routing will be based on the filename .
    J2SE Sender File adapter --- XI Adapter --- XI pipe line
    So the File reaching to XI pipelane via J2SE File adapter--> XI adapter.
    When we are using the dynamic configurator in the XI to get the filename
    we are not able to get the file name  becasue it is coming to XI via
    XI adapter.
    How to get the filename ????Hope I am clear about the problem.

    hi,
    try this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //obtengo la Key del FileName
    DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
    Hope it helps
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

  • Question about J2SE-File-Adapter

    Hallo,
    i would send with the J2SE-File-Adapter a *.CSV to SAP XI.
    The structure in the SAP XI is:
    PlaintMaintenanceMessagetype
    ......Datasource..................string
    ......Data
    ..........item
    ..............EquipmentID.............string
    ..............FunktionalLocation......string
    ..............Data....................string
    ..............Time....................string
    The *.csv File structure is:
    6ATESTDEMOYVES,
    1234,
    Limo,
    20060105,
    122030,
    The configuration of the J2SE-File-Adapter is:
    classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
    version=30
    mode=FILE2XMBWITHROWCONVERSION
    ##File Adapter specific parameters (example, see docu)
    ##file.type=BIN
    file.type=TXT
    file.encoding=UTF-8
    xml.documentName=ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender"
    xml.structureTitle=6ATESTDEMOYVES
    xml.processFieldNames=fromConfiguration
    xml.fieldSeparator=;
    xml.fieldNames=Datasource,EpuipmentID,FunctionalLocation,Data,Time
    But it not runing! Can anybody help me? Are any How to guide to send a *.csv with the J2SE-File-Adapter.
    Thanks laura
    With the XML File it works. But there are ofer 40000 records in the *.csv, and i will not create this in *.xml!
    The structure of the XML.File are:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender">
      <Datasource>6ATESTDEMOYVES</Datasource>
      <Data>
        <item>
          <EpuipmentID>1234</EpuipmentID>
          <FunctionalLocation>Limo</FunctionalLocation>
          <Data>20060105</Data>
          <Time>122030</Time>
        </item>
        <item>
          <EpuipmentID>1235</EpuipmentID>
          <FunctionalLocation>Bier</FunctionalLocation>
          <Data>20060106</Data>
          <Time>122031</Time>
        </item>
       </Data>
    </ns:PlaintMaintenanceMessagetype>

    Hi Laura,
    You can navigate thru these links to get more information:
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
    Cheers,
    Chandra

  • PI 7.3 AEX - XI 3.0 message protocol in the SOAP adapter.

    Hello,
    My client's landscape is on SAP PI 7.3 AEX(Java only installation) and SAP ECC 6.0 EhP4.
    I have configured a HTTP-Proxy scenario. For the proxy messages to go into the SAP ECC system, I have configured a SOAP Receiver adapter in PI 7.3 AEX.
    I have created a service interface in ESR in PI 7.3 and generated the proxy in the SAP ECC system.
    I have configured the SOAP receiver to use the XI 3.0 protocol and by using the Addressing Type as 'URL Address'. The URL that I am using is " http://<SAP_ECC_server>:PORT/sap/xi/engine?type=entry  ".
    When I try to test the scenario, the messages are not reaching the target ECC destination and in the SOAP Receiver communication channel, I am getting the following error:
    Information:                Delivering to channel: SOAP_RECEIVER
    Information:                MP: processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
    Information:                SOAP: request message entering the adapter with user Guest
    Error:                          SOAP: call failed: java.io.IOException: unable to create a socket Information                 SOAP: sending a delivery error ack ...
    Now, in my client estate there is also a SAP PI 7.11 system, I have replicated the service interface in the ESR on 7.11 and regenerated the proxy in SAP ECC. When I now run the scenario, it works.
    Just stressing here on the point that, the abap proxy generated from SAP PI 7.3 ESR did not work(but worked when I generated the abap proxy from SAP PI 7.11 ESR) when configured using the XI protocol on the SOAP adapter.
    ALso, I have gone through the 'Note 1247043 - Release Restrictions for EHP 1 for SAP NetWeaver PI 7.1'.
    Is the behaviour I am facing a release restriction on SAP PI 7.3
    Need suggestions from anyone who has tried configuring this scenario, is there anything that I have missed?
    I am happy to share more info if required...
    Thanks in advance,
    Best Regards,
    Karthik

    HI Karthik,
    Did you able to resolve this in PI 7.3??
    Even i am also facing the same issue in receiver soap adapter for abap server proxy:
    SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: unable to create a socket
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: unable to create a socket
    Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: unable to create a socket
    Please let me know how did u resolve this?
    Thanks,
    Prasanthi

Maybe you are looking for

  • Enqueuing JMS_TEXT_MESSAGE with Java creates strange message payload

    Hello everybody, I'm trying to enqueue a JMS_TEXT_MESSAGE. There is no problem doing this with PL/SQL, but with Java the payload of the enqueued message seems to contain garbage. I tried a lot but actually I have no idea why this happens. Here are th

  • Two step confirmation in Warehouse

    Hi All, Two step confirmation (We can use this indicator to define whether confirmation of the withdrawal of materials from a storage bin and arrival of materials at the target storage bin is allowed in the warehouse in two steps) indicator has been

  • How to hide reset button in af-query panel in ADF

    Hello All, i am using Jdeveloper version- 11.1.2.0.38.60.17 ,i am facing problem with hiding reset button in "af-Query panel". kindly suggest me how to hide it. it's urgent. Thanks & Regards AbhijeetPS Edited by: 967068 on Oct 23, 2012 12:39 PM

  • Add values across multiple subject areas

    Hello Everyone, This is a pressing issue i am facing at the moment. I am on OBIEE 11g latest version. This is the scenario at hand. There are several tables of which each connects to the same time dimension and a global customer dimension. There are

  • Can't install update to New Adobe CC(2014) Photoshop

    Hello I use a PC and everything on my computer is up to date, from Ram to memory card. I was on earlier having problems with Photoshop. The call center said the best thing for me to do is to download the new version and its also best to get rid of th