SAMPLE ADAPTER quest

Hi
Could anyone tell me if we could deploy the sample adapter and get a complete scenario working (file to file as sender and reciever)??
I am trying to do that. I see that the adapter is able to rename my file but does nothing more than that. I dont see any messages on the communication channel too.
Could anyone give me a step by step procedure on how to get the sample adapter working as sender and reciever.
--Jai

Hi,
Related help for the Adapter Development:
Adapter Development
Adapter Development
and the error may be because of many reasons:
1) What is the status of Sender Communication Channel in the Runtime Workbench? Does it show green status?
2) Did you get messages in the SXMB_MONI?
If you get this then only you can think of getting the messages in the Receiver side.
Hope this helps,
Rgds,
Moorthy

Similar Messages

  • How to test the sample adapter code on PI 7.1?

    Hi,
    I would like to test the sample adapter on PI 7.1.
    I followed these explanations:
    /people/gowtham.kuchipudi2/blog/2006/01/04/testing-sample-adapter
    How-to deploy Sample Adapter in PI 7.1
    but I still can't get things working.
    The com.sap.aii.adapter.sample.ra.jar file I retrieved from the server doesn't contain any ra.xml file so I took the SampleRA.xml I found in the sample_ra.jar file fetched from a PI 7.0 server.
    I used this XML file content to fill the adapter metadata in the integration repository.
    The sample adapter is deployed and its JNDI name is
    deployedAdapters/com.sap.aii.adapter.sample.ra/shareable/com.sap.aii.adapter.sample.ra
    I don't know where to put this information in the metadata.
    As a result my sender and receiver communication channels are said to be running in the runtime work bench but there is no message thrown when I put the expected file in the source directory.
    The sender communication channel stays blind.
    Could someone help me?
    Thanks in advance for any help.
    Olivier

    Hi,
    Thanks for your answer but there is no sample_ra.rar file on my PI 7.1 server.
    Instead I have a com.sap.aii.adapter.sample.ra.jar file that is located at
    D:\usr\sap\P71\DVEBMGS01\j2ee\cluster\apps\sap.com\com.sap.aii.adapter.sample.ra\connector\bin\com.sap.aii.adapter.sample.ra.rar
    and
    D:\usr\sap\P71\DVEBMGS01\j2ee\cluster\apps\sap.com\com.sap.aii.adapter.sample.ra\connector\connectors\com.sap.aii.adapter.sample.ra.rar
    It is the same file and its content is:
    testing: META-INF\                OK
    testing: META-INF\MANIFEST.MF     OK
    testing: com\                     OK
    testing: com\sap\                 OK
    testing: com\sap\aii\             OK
    testing: com\sap\aii\af\          OK
    testing: com\sap\aii\af\sample\   OK
    testing: com\sap\aii\af\sample\adapter\   OK
    testing: com\sap\aii\af\sample\adapter\ra\   OK
    testing: com\sap\aii\af\sample\adapter\ra\CCIConnection.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\CCIConnectionFactory.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\CCIConnectionMetaData.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\CCIConnectionRequestInfo.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\CCIInteraction.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\CCIResourceAdapterMetaData.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\SPIConnectionManager.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\SPIManagedConnection.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\SPIManagedConnectionFactory$XIManagedConnectionFactoryController.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\SPIManagedConnectionFactory.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\SPIManagedConnectionMetaData.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XIAdapterCategories.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XIConfiguration.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XIConnectionEventListenerManager.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XIConnectionSpecImpl.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XIInteractionSpecImpl.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XILocalizationUtilities.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XIMessageFactoryImpl.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XIMessageRecordImpl.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XISecurityUtilities$1.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XISecurityUtilities.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\XITrace.class   OK
    testing: com\sap\aii\af\sample\adapter\ra\package-version.properties   OK
    testing: com\sap\aii\af\sample\adapter\ra\rb_JCAAdapter_ChannelMonitor.properties   OK
    testing: com\sap\aii\af\sample\adapter\ra\rb_JCAAdapter_ChannelMonitor_de.properties   OK
    testing: com\sap\aii\af\sample\adapter\ra\rb_JCAAdapter_ChannelMonitor_en.properties   OK
    testing: com\sap\aii\af\sample\adapter\ra\rb_JCAAdapter_ChannelMonitor_fr.properties   OK
    testing: com\sap\aii\af\sample\adapter\ra\rb_JCAAdapter_ChannelMonitor_ja.properties   OK
    There is no ra.xml file
    Regards
    Olivier

  • Sample Adapter Migration from PI 7.0 to 7.1

    Hi All,
    i want to migrate the 7.0 Sample Adapter to 7.1. I followed the instructions written in the paper 
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0667f56-96c7-2b10-0e9a-c40fbd523f4d
    But i get the following error message in the message-monitoring, after sending a xml:
    Message could not be forwarded to the JCA adapter. Reason: class com.sap.aii.af.sample.adapter.ra.XIMessageRecordImpl:sap.com/com.sap.aii.af.sample.adapter.ra @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 5ab9f6b4 @ alive incompatible with interface com.sap.engine.interfaces.messaging.api.Message:interface:com.sap.aii.af.ms.ifc @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 7d9ab9c5 @ alive
    Thanks in advance
    Regards Christoph

    This paper is intended to show, how the sample adapter 7.1 can be used to migrate a customer adapter 7.0 to 7.1
    It is not useful to help the migration of the sample adapter itself. For migration you have to compare sample adapter 7.0 and 7.1 to see the changes.
    Regards
    Stefan

  • Error in Service designer with sample adapter

    Hi all,
    I try to use SampleAdapter. When I create a master service based on Sample Adapter (wich is correctly in the classptah on the server). I received the following message : The Master Service does not have an adapter definition.
    I ignore it and I create an alias for this Master service. I test it in request manager and the service created with the sample adapter work ??
    What can I do to supress error message in Service Designer ?
    Thanks

    Vasanthakumar,
    in my previous experiences with internal/external parties communication, I've found out that the best practice is to create an integration scenario and then create the configuration scenario from scenario wizard. It is much simpler and easier.
    Briefly, you'll have to create a dummy party/service in order to "wrap" your internal system, since the external party should not receive information regarding internal systems (Business system name, for example).
    Regards,
    Henrique.

  • Config Sample Adapter as SENDER & RECEIVER

    Hi there!
    I have a problem when I try to use the sample adapter as sender and receiver. If I use it only as receiver and the sender is the fileAdapter it works fine...
    The sample adapter is deployed,
    it's metaData is imported. But it is only able to receive, not to send messages.
    In the LogViewer I can see that the adapter is started:
    MCF with GUID 1791c2d060fa11daccb30011431a5d8e is running. Location: om.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.XIManagedConnectionFactoryController.run(
    But the input file is not read and no other method except this run() is called.
    Is anybody out there who can help me with this???
    Thanks in advance and best regards,
    Christian

    Hi,
    U check these blogs which may be helpful to u..
    <b>/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    <b>/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    Sridhar reddy k.

  • Sample Adapter - Error in NWDS for import stmt of class PermissionMode

    Hello,
    I downloaded the latest code of Sample Adapter from the SAPNote 1004000.
    I am trying to build the code in SAP NWDS. I am getting an error for the import statements -
    import com.sap.aii.security.lib.KeyStoreManager;
    import com.sap.aii.security.lib.PermissionMode;
    I looked into the jar for the package com.sap.security. There is no 'lib' folder inside this. These two class are also not in any of the folders and subfolders in this package.
    Now for the KeyStoreManager Class, I found a jar sap.comtcjekeystore_apiAPI.jar which contain a class by the name of KeystoreManager in the package com.sap.engine.interfaces.keystore.
    1. Is this KeystoreManager the same class file as KeyStoreManager?
    2. In which jar can I find the class PermissionMode ?
    Best Regards,
    Neeraj
    Edited by: Neeraj Kumar on Aug 20, 2009 10:44 AM

    Hello Neeraj,
    Now as I mentioned earlier, when I go to com.sap.aii.security package in the jar com.sap.aii.sec.svc_api.jar there is no 'lib' folder. Also there is no security.class in any of the subfolders in com.sap.aii.security .
    - In PI7.1 security.class is in folder ext, check whether you can find the folder ext.
    - Your SampleAdapter has already implementation code in it, as you mentioned in the source there are import statements, so the point to focus is to make your source error free, after compile.
    - In case you have the sap.comtcsecssfcore.jar added to your build path, try to reimport the two classes, still if it show error try to close and open your module project.
    Regards,
    Prasanna

  • Problem with PCK 7.1 SP07 JCA Sample Adapter

    Hello!
    I have a Problem with the JCA Sample Adapter in the PCK 7.1 SP07. I will test the Configuration ( http://help.sap.com/saphelp_nwpi71/helpdata/en/f7/0c2441509fa831e10000000a1550b0/content.htm ) .
    But the receiver channel has a Massage processing failure: u201CMessage processing failed. Cause: java.lang.Exception: JNDI name of the ra connectionFactory is not configured. Go to the directory and create a value with name 'JNDIName' and value 'deployedAdapters/<ra name>/shareable/<ra name>' as module configuration data of the module 'ModuleProcessorExitBean'u201D
    In the JNDI-Browser of Netwaver Administration canu2019t found JNDIName from directory ('deployedAdapters/sample_ra/shareable/sample_ra). I have located the name deployedAdapters/com.sap.aii.adapter.sample.ra/shareable/com.sap.aii.adapter.sample.ra and change this in the receiver channel  u201CTo_Au201D. But I have the same problem.
    I hope you can help me!
    Thanks & Regards
    Stefan

    Hello!
    Yes I followed the Instruction.
    I have deployed the Sample Source as AdapterJCA, change the JNDI name in the SampleRa.xml and upload to CPA Cache. 
    I have by now the Configuration deleted in PCK and rebuild the scenario. The demo Configuration runs now. I think the Configuration in the CPA Cache was wrong.
    Stefan

  • JCA: Sample Adapter Transaction Support

    Hi guys,
      Could anyone tell me the transaction level supported by Sample Adapter.In the code they are using SAPResourceAdapter to access the J2EE Thread Manager.But in the code it has given that it won't support Local Transaction or XA Resource.
      So what is the Transaction level supported by Sample Adapter.
    regards,
    siva.

    You have to distinguish between 1) the Transaction level support of the J2EE Connector Architecture (JCA) and 2) the internal usage of the J2EE transaction manager.
    Ad 1) the XI docu says <i>JCA resource adapters can provide all kinds of JCA transactions. The Adapter Framework does not use them</i>. That's why the sample adapter uses NoTransaction.
    Ad 2): The transaction manager has to be used for asynchronous processing (QoS Exactly Once). This is used for transaction management inside the adapter. For details see the sample adapter code or the Adapter Development docu http://help.sap.com/saphelp_nw04/helpdata/en/59/59d6409ff68631e10000000a1550b0/content.htm

  • How to Debug Sample Adapter

    Hi,
        Is it possible to debug the sample adapter provided by SAP.Because i am deploying it through SDM and wants to debug through NDS.
    regards,
    Siva T.

    Hi Siva,
       We can certainly debug the Sample Adapter.But i am also not sure of how to do that. I also tried for that,but couldn't able to succeed.
    Regards,
    Gowtham K.

  • Problem while modifying sample adapter

    Hi
    I am trying to modify the sample adapter but am stuck with a problem. I am trying to create a connection to my data base (datasource.getconnection()) in place where the sample adapter creates fileoutputstream. But i get this error ;
    Catching com.sap.engine.services.dbpool.exceptions.BaseSQLException:
    ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResource
    Cannot open resource(Managed Connection) with LocalTransaction support or add a second one in the same transaction, for component "ejbContexts/sap.com/com.sap.aii.af.app/ModuleProcessorExitBean"
    --Please help

    Hi
    I am trying to modify the sample adapter but am stuck with a problem. I am trying to create a connection to my data base (datasource.getconnection()) in place where the sample adapter creates fileoutputstream. But i get this error ;
    Catching com.sap.engine.services.dbpool.exceptions.BaseSQLException:
    ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResource
    Cannot open resource(Managed Connection) with LocalTransaction support or add a second one in the same transaction, for component "ejbContexts/sap.com/com.sap.aii.af.app/ModuleProcessorExitBean"
    --Please help

  • PI7.1 Sample Adapter

    I created a simple scenario utilizing sample adapter (JCA) to see how it works. It's PI7.1. The sender side works fine but i got this error message in the receiver side:
    Adapter Framework caught exception: Cannot lookup the ra connectionFactory. Reason: Path to object does not exist at sample_ra, the whole lookup name is deployedAdapters/sample_ra/shareable/sample_ra.
    Delivering the message to the application using connection JCA_http://sap.com/xi/XI/sample failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Cannot lookup the ra connectionFactory. Reason: Path to object does not exist at sample_ra, the whole lookup name is deployedAdapters/sample_ra/shareable/sample_ra..
    Can anyone please help me to solve this?
    Thanks!

    Check with NW Administrator how the EJB modules are named in JNDI.
    Put the same name to the module parameter.
    Regards
    Stefan

  • Sample adapter is not called by XI

    I have deployed the sample adapter in our namespace.
    I send a message to the adapter. The adapter is never called.
    The adapter has the status aktiv.

    Hi,
    did you have a look at this weblog:
    /people/gowtham.kuchipudi2/blog/2006/01/04/testing-sample-adapter
    Regards,
    michal

  • Sample adapter Trace

    Hi. Can anyone tell me how to view the Trace or log file for the sample adapter (sample_ra.sda). I would like to know the location to which the trace is written out and also the severity level.
    --Jai

    Hi,
    a) In order to trace the message you have go to runtime workbench
    b) Select message monitoring
    c) Select message press  detail display where in you can see and trace ur message
    Regards,
    G.Varun Kumar

  • Sample adapter with NWDS

    Hi gurus
    Could any one give me a description of how to use the sample adapter (sample_ra.sda) with NWDS so that I would be able to compile it successfully.
    [I need to know what files to import and how i do it]
    Thanks in advance
    Jason

    > - How do i import this new adapter in XI?
    > - Do i need to package it in a certain way?
    you have to deploy the adapter to the XI/PCK with SDM.
    For this your create an RAR (ressource adapter archive) with WinZip and store this in an SDA file again with WinZip.
    See here:
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/eae1401b52b533e10000000a155106/frameset.htm
    The adapter meta data are uploaded to Integration Repositiory, so you can create communication channels for your adapter.
    > - Is it obligatory to have a PCK?
    No, but with a seperate testing system you minimize the risk to disrupt the XI system with bad code
    > The documentation on SDN are not very clear on the matter.
    We will work on that soon
    Regards
    Stefan

  • Sample adapter code

    Hi,
    Can any one on XI 3.0 SP17 or higher send me the sample adapter code present in sda file?
    it would be of great help.
    thanks
    regards
    fariha

    i am finding the code for Synchronous messages which is present in XIAdapterCategories.java
    I am on XI 3.0 SP15
    I think this code is present in SP19.
    Can anyone could please send this code on SP19 it would be of great help?
    thanks
    regards
    fariha

Maybe you are looking for

  • Send answers of these qutions

    1.     Strengths in technical subject ? 2.     Explain best report which u did ? 3.     Major events of reports ? 4.     Difference between interactive and classical reports ? 5.     Types of BDC’s 6.     If you say session than why ? 7.     If you s

  • To learn Oracle 9i DBA

    Hi, I learned oracle 8 DBA(solaris combination) in the past. I want to learn ORACLE 9i DBA. Can you please guide me what books to follow.... Which material will give me good confidence for facing jobs(oracle 9iDBA) in USA. I finished my masters now.

  • Simple Sleep Chart for new baby

    I am a brand new Apple user and a brand new mom. I simply want to create a chart that is based on the hours of the day and what my baby does during those hours (sleep, cry, awake). Any tips? Much thanks!!

  • Hierarchy to be activated.....

    Hi , Assume that there is the standard Date Hierarchy.... When a custom folder is created in which a column is not a date(let's say 10/05/2004) but a month and year (let's say 05/2004) or year (let's say 2004) then in the properties of this item the

  • Magic Mouse won't scroll or swipe in email window, but works perfectly in Safari window.

    My Magic Mouse suddenly won't scroll or swipe in the email window, top or bottom part of the window, but behaves normally in the Safari window.  Replaced the Mouse batteries, 100% power, no difference.  iMac is 2008, pretty old, but was updated to 10