Get poll interval parameter from adapter module

Hi,
I'd like to make special treatment in my adapter module based on the "poll interval" information filled in Processing Parameters part of the adapter configuration.
Can an adapter module access this information?
regards
Yann

Hi Yann,
>>>>Can an adapter module access this information?
of course it can you just have to use
a correct parameter's name
check this post to get the java code
Re: Access the URL Parameter from a Adaptermodule
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • How to get parameter for Adapter Module ?

    Hi XI Expert,
    I have write some simple adapter module in my sender file adapter. in order to make it more flexible i need to read some parameter that already set in communication channel module parameters.
    please advise how to get those parameter value from my ejb module.
    Thank You and Best Regards
    Fernand

    hi,
    follow this example SAP contribution for parameter in Adapter Module
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    Regards
    Ramesh P

  • Is it possible to send error message from Adapter Module to CCMS?

    Hi
    Is it possible to send error message from Adapter Module  to CCMS...?I have written on adatper module from there i have to send error message to CCMS or SXMB_MONI. Is it possible if yes please send me the related documents
    Best Regards
    Ravi Shankar B

    Hi
    I have written following User Defined Exeption in my Module program
    class DuplicateFileException extends ModuleException{
              DuplicateFileException(String message){
                   super(message);
    I am throwing my Exception like this
    try{
         throw new DuplicateFileException("Duplicate File");
    }catch(DuplicateFileException e){
         throw e;
    But i am not getting this exception in SXMB_MONI. In adpater monitoring i am getting the following exceptions
    <b>
    2007-05-16 15:51:30 GMT+05:30: Retry interval started. Length: 5.000 s
    - 2007-05-16 15:51:30 GMT+05:30: Error: java.lang.NullPointerException
    - 2007-05-16 15:51:30 GMT+05:30: An unknown error occured.
    - 2007-05-16 15:51:30 GMT+05:30: Processing started
    - 2007-05-16 15:51:25 GMT+05:30: Error: java.lang.NullPointerException</b>
    can any one give me the idea how to send error from module program to SXMB_MONI
    Thanks & Regards
    Ravi Shankar B

  • How to set polling interval for database adapter in interconnect?help plz!!

    Hi
    i have 4 database adapters with same name subscribing to same event in 4 different interconnect instances(i.e., same business event and application event in different hubs) and pointing to same source application database , same destination application database.
    source application database have one oai bridge schema.When a message has to be sent,message will be enqueued in messageobjecttable.This message can be taken by 4 databse adapters.and send to 4hubs then 4 messages will be sent to destination application instead of single message.
    To avoid this,I want to set database polling interval in 4 adapters sych a way that if one adapter take message in MESSAGEOBJECT TABLE,the other three adapters don't pick same message.
    this way i can avoid redundacy at destination application.Please reply soon
    Thanks

    You would seem to have an extremely unusual use case for interconnect. The whole purpose of Interconnect is to concentrate the message processing into one hub and distribute the message to those applications interested in it. The use of 4 hubs from one application is probably not supported for precisely the reasons you are having trouble. Can you give us more details of your use case?
    I am not sure that adjusting the polling interval for the different adapters will help. Since at some point you will get a collision where 2 or more adapters poll at the same time.

  • Polling interval in file adapter.

    Hi,
    I have a doubt regarding the file adapter polling interval.
    Suppose we get a file of size 512 MB and PI file adapter taking long time (say 15 Min) to process it, we have a polling interval of 10 min.
    I have a 2 doubt in this case.
    1. what will happen in the next polling interval. because the older file still is in process and it is still in the source folder location.
    2. if at the same time there is new file get places in same folder location. then how the file adapter behave in this case. Is it start picking the second file or again poll the incomplete file.
    I want to know that is PI maintaining some lock while processing some file from source folder.
    regards,
    Navneet

    Hi,
    I guess normally it should process both files, earlier one which is in process and the new one as well (it depends your selection string in file name scheme).
    Also refer thsi Wiki to help in avoiding duplicate file processing:
    http://wiki.sdn.sap.com/wiki/display/XI/DifferentwaystokeepyourInterfacefromprocessingduplicate+files
    Regards,
    Divyesh Vasani

  • Making Polling Interval on DB Adapter as a property.

    Hi All,
    I am trying to make the polling interval on my db adapter as a prpoerty so the polling interval time gets read from a property file and hence i dont have to redploy the process when i want to change the polling time interval. Is it possible ?
    Thanks
    K

    in case of 11g and the use of mediator you can use it using the assing in the mediator itself and set the 'PollingFrequency' property
    http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10231/adptr_propertys.htm#CIHJIDCH
    haven't tested it, but i assume you can use a xpath expression in there.
    and then you can use getPreferences function to retrieve the values which you can set in the console on runtime, see :
    http://eelzinga.wordpress.com/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    hope it works :)

  • Accessing a file in Imported Archive from Adapter module

    Hi,
    I am designing a module for File/FTP and Mail adapters. Is it possible to retrieve data from a CSV or TXT file uploaded in the Imported Archive from the Java code in the module? If this is possible, do I use the same approach as accessing the CSV data from the mapping using a UDF? If this is not possible, can you suggest other ways were I can access a CSV or TXT configuration file from an adapter module?
    I would like to avoid using Module key, Parameter name and Parameter value as I would like to make the adapter module generic and the data I will be reading might be too much to be specified in this location. However, I would use the Module key, Parameter name and Parameter value to specify the CSV or TXT filename which the adapter module will be using.
    Thanks in advance for any help that you can provide.
    Regards,
    Elbert

    Imported archives are part of mapping flow and adapter modules are more part of routing. Therefore I don't think imported archive could  be made accessible anywhere outside mapping.
    but my CSV or TXT file would be updated regularly by the developer.
    So were you planning to import this file again and again under imported archive? This doesn't seems to be a good solution when you think about changin Design part in Production environment. It would be better to give access to certain folder to developer to put the file there and access it using some code. You may refer this
    /people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi
    Regards,
    Prateek

  • Get Message details in custom adapter module

    Hello,
    Could you please let me know how can we retrieve following parameters in custom adapter module?
    Message size
    Message Mapping name
    Operation Mapping name
    Sender and Receiver Interface names
    Thanks!
    Regards,
    Shweta

    Hi Shweta
    Not all the information is available directly from the adapter module.
    Message size
    Retrieve the input stream of the payload, convert the stream to bytes and count the bytes length.
    Message msg = (Message) inputModuleData.getPrincipalData();
    XMLPayload payload = msg.getDocument();
    InputStream inStr = payload.getInputStream();
    // Convert inStream to bytes
    int size = bytes.length;
    Sender and Receiver interface names
    You can only get Sender interface in sender module, and receiver interface in receiver module. You can get the from the getAction() method.
    Message msg = (Message) inputModuleData.getPrincipalData();
    String interfaceName = msg.getAction().getName();
    Operation Mapping name
    This is not directly available from the Adapter Framework. One workaround is to access this via the Integration Directory API. With the Interface Determination Service API, you can read the Interface Determination object to get the associated mapping. To do this you have to make a SOAP call to the API.
    Message Mapping name
    I'm not sure how this can be retrieved as this is only available in ESR.
    If the module is on the receiver side, another option is to extract the information during mapping and store it into Dynamic Configuration, then in the receiver module, to extract it from Dynamic Configuration.
    Rgds
    Eng Swee

  • Maximum Polling Interval in File Adapter

    Hi,
    Can you please let me know what can we set as the maximum polling interval in the Sender File adapter?
    I have a scenario where I am setting the File Adapter polling interval as 7884000 secs. i.e.2190 hr= approx 3 months.
    But the file adapter is polling at very short intervals.
    Any help on this would be appreciated.
    Regards,
    Sampada

    You need to configure the polling settings so that the system does not become overloaded, but at the same time, in a way that end users do not notice a major decrease in performance over time. Keep in mind that the greater the polling interval, the less frequently users will receive updates.
    Adapter Scheduling - Hail SP 19 :-)

  • How to get the sent date in Adapter Module

    Hi
    How to get Sent Date in Adapter Module. I have used message.getSentTime(). But i am getting in 1179051733406 format is there any way to change this format.
    Is there any other way to get the date when file sending.?
    Is it possible to get Soap Header data Run Time xml file elements (<SAP:Date>) in SXMB_MONI into my Adapter Module.
    Please Help Me
    Best Regards
    Ravi Shankar B

    Is it possible to get Soap Header data Run Time xml file elements (<SAP:Date>) in SXMB_MONI into my Adapter Module.?
    Hi ravi, if you enable Adapter specific Message Attributes in your Adapter CC,(Source File TimeStamp), you can access the same in your ADapter code as a dynamic configuration
    Regards
    krishna

  • Best approach for RFC call from Adapter module

    What is the best approach for making a RFC call from a <b>reciever</b> file adapter module?
    1. JCo
    2. Is it possible to make use of MappingLookupAPI classes to achieve this or those run in the mapping runtime environment only?
    3. Any other way?
    Has anybody ever tried this? Any pointers????
    Regards,
    Amol

    Hi ,
    The JCo lookup is internally the same as the Jco call. the only difference being you are not hardcoding the system related data in the code. So its easier to maintain during transportation.
    Also the JCO lookup code is more readable.
    Regards
    Vijaya

  • Getting value of parameter from request object

    If i submit a form using button element of html form then i dont get name of the button element as Parameter of request object and hence its value.
    why and how?
    Thanks in advance

    what do you mean submit a form with a button? You don't submit a form with a button, you submit it with a submit element. Unless you use Javascript to submit from an onclick handler in the button. In which case, you aren't submitting from the button, but from the script. I'm not sure that buttons are sent in forms. Why would they? If you are using buttons and Javascript, then you could use a hidden field and set it's value to the button's value when it's clicked before submitting the form.

  • Accessing files in library from adapter module

    Hello everyone!
    We are using XI with Netweaver 2004 and have programmed our own adapter for message transformations.
    After the transformation we want to validate the generated XML file with the validator from SAP XML Toolkit.
    Validator validator = new Validator();
    String[] xsdFileNames = new String[]{
         "???/de/nordakademie/ext/gen/" + ediStandard + "/" + parser.getEdiVersion().toLowerCase() + "/xsd/" + parser.getEdiMessageName().toLowerCase() + ".xsd",
         "???/de/nordakademie/ext/gen/" + ediStandard + "/" + parser.getEdiVersion().toLowerCase() + "/xsd/segments.xsd"
    boolean isValid = validator.validate(byteIn, xsdFileNames);
    But we don't know how to address the necessary xsdFiles for the transformation. At the moment we get thw following error: [location : null] ERROR : E:\...\de\nordakademie\ext\gen\edifact\d96a\xsd\orders.xsd (The system cannot find the path specified)
    The xsd files are located in the following package: de.nordakademie.ext.gen.edifact.d96a.xsd.
    This package is part of a jar file which was deployed to the J2EE-Engine in a Libary.
    But how can we access these files in the code example above?
    Thanks in advance!

    Hey!
    Thanks for your help. I ha´ve now solved the problem. The following code works:
    String xsdMessagePath = "de/nordakademie/ext/gen/.../abc.xsd";          
    String xsdSegmentsPath = "de/nordakademie/ext/gen/.../xyz.xsd";
    Validator validator = new Validator();
    URL xsdMessageUrl = getClass().getClassLoader().getResource(xsdMessagePath);
    URL xsdSegmentsUrl = getClass().getClassLoader().getResource(xsdSegmentsPath);                                   
    String[] xsdFileNames = new String[]{
         xsdMessageUrl.toString(),
         xsdSegmentsUrl.toString()
    boolean isValid = validator.validate(byteIn, xsdFileNames);

  • Length parameter in adapter module

    Hello,
    With sender J2EE JMS adapter i configured flat to xml conversion with localejbs/AF_Modules/MessageTransformBean.
    For parameter xml.fieldNames I have  35 fieldnames and the length of the value of the parameter becomes 347. However it seems that length of the parameter is not allowed to exceed 256.
    Am i right? Does anybody have a workaround. Adjusting length of my fieldnames is not possible.
    tnx
    emile
    Message was edited by: Emile Hermans

    Apply patch 11 or higher, then the restriction will no longer be valid.
    Stefan

  • Mail Adapter IMAP Polling Interval

    Hello,
    we are using a XI mail adapter with IMAP. It is possible to decrease the polling interval on the mailbox?
    The default value is onces per minute.
    kind regards,
    Thorsten Dee

    hi,
    IT depends if the channel configured as the sender or the receiver.
    For Sender there is "Poll Interval" Parameter
    For Receiver there is no such option.
    for more details see [this decumentation|:http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm]
    Edited by: Pavel sheynkman on Dec 7, 2008 6:35 AM

Maybe you are looking for

  • JSP Code to connect Oracle 10g Database

    Can some give the JSP code for connecting Oracle 10g database

  • Ipad - Sync photos and it will delete Apps..what the **** is going on

    I have updated both my iphone and Ipad2 to latest operating system, but tell me apple what the **** were you thinking? 1) Now I can't sync my photos on to my Ipad from my laptop, if I do it will delete all my Apps! 2) Icloud appears to be a waste of

  • Linking R/3 with ESS

    Hi, I have created Business event groups,types and Business Events in R/3. But I am not able to see them in ESS. I am able to access other info like Personal Info, Leave balance, travel, inbox etc. on ESS. But I am not able to view Business Events, S

  • Resume jpeg is saving way to small. How to save larger image that's readable.

    created my resume in cs6 and the jpeg is so small, no employers can even read the text without zooming in a bunch. How do i save a readable/larger image of my resume?! HELP!!! Thank you!

  • Purchase Order ,  Materials

    Hi All, I am look for a link (tables) for a sales order --> purchase order number --- > purchased materials ... The report has to pull the <b>purchased materials</b> for <b>sales orders</b> .....sales order does not produce a production order , it ge