File Adapter Question in SOA 11g

Hello,
just started with this soa stuff and looks like it can be very useful, i have a question:
i am doing a SyncRead within a bpel process and want the file is not necessarily there as soon as that process runs, so if it doesnt find it i want it to wait 5 seconds and retry and i want it to retry this up to 3 times...
what is the best approach to getting this done?
thanks

Hi,
You can put the invoke(synchRead) within a scope activity. Now add a catchAll activity, and within it add wait activity(5 sec') and replay activity.
The replay activity will always start the scope from the begining.
You will also need to add an if condition with 3 times counter. 1 branch will go to the above activities, and the second one will continue with the process.
Arik

Similar Messages

  • File Adapter Transactional in SOA and OSb

    Hi All,
    Is file adapter transactional in SOA and OSB. I have a requirement where a inbound file adapter polls for a file and it is consumed by a topic.If topic is down,how can I know that the same file will goes to topic when is up(how can I make it transactional).I want to do this both in SOA ans OSB.
    Any help would be appreciated.
    Thanks,
    Kumar.

    Hi Kumar,
    File Adapter itself is NON TRANSACTIONAL...
    4.2.9 Nontransactional
    The Oracle File Adapter picks up a file from an inbound directory, processes the file, and sends the processed file to an output directory. However, during this process if a failover occurs in the Oracle RAC back end or in an SOA managed server, then the file is processed twice because of the nontransactional nature of Oracle File Adapter. As a result, there can be duplicate files in the output directory.
    http://docs.oracle.com/cd/E28280_01/integration.1111/e10231/adptr_file.htm#BABIEBJF
    Cheers,
    Vlad

  • FTP Adapter XML file with Attachments in SOA 11g.

    Hi All,
    I have a unique requirements where I need to generate an XML file and write it to an FTP server through SOA 11g. The content of this XML File may contain attachments like agreement copies, terms and conditions (files in *.pdf format). Now sometimes I need to add these pdfs as attachments and include them in the XML file and write them to FTP Server from SOA 11g.
    Has anyone ever encountered such a scenario. Can you throw light on how this could be achieved.
    Thanks,
    Venkat

    I am not entirely sure by what do you mean by "including attachments inside the XML" ?
    Do you want to say that XML might contain the contents of the attachment, something like this -
    <XML_Body>
    <Attachment>content in cleartext</Attachment>
    </XML_Body>
    Or should it contain pointers like "href" inside the XML ?

  • File adapter questions (beginner)

    Hi everyone,
    I two questions on two topics about file adapter.
    1. I have set up a File adapter for a CSV file to be the input file of my process. Now I would like to have an XML file as the input file, but the content is always ignored.
    here is the XSD :
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Employees" xmlns="urn:Employees">
    <xs:element name="Employee" type="EmployeeType"/>
    <xs:simpleType name="InitialType">
    <xs:restriction base="xs:string">
    <xs:maxLength value="1"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="AgeType">
    <xs:restriction base="xs:integer">
    <xs:minInclusive value="18"/>
    <xs:maxInclusive value="50"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="EmployeeType">
    <xs:sequence>
    <xs:element name="EmployeeID" type="xs:string"/>
    <xs:element name="FirstName" type="xs:string"/>
    <xs:element name="MiddleInitial" type="InitialType"/>
    <xs:element name="LastName" type="xs:string"/>
    <xs:element name="age" type="AgeType"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    And now the sample XML file :
    <?xml version="1.0" standalone="yes"?>
    <Employees>
    <Employee>
    <EmployeeID>1</EmployeeID>
    <FirstName>John</FirstName>
    <MiddleInitial>N</MiddleInitial>
    <LastName>Smith</LastName>
    <age>24</age>
    </Employee>
    <Employees>
    How can I do that ? Do I need the Oracle XML Gateway ?
    2. In the BPEL console, I can trace the successfull processes. Alright ... But when I put in a file with the wrong format (eg: missing fields), the process does not even appear in the console. How can I trace them ? (completionPersistPolicy is "on").
    Thank you :)

    I'm interested in 2 question (missing fields) too.
    Ema

  • Some problems in finding answers of interview questions Oracle SOA 11g

    hi
    These questions were asked from me in an interview. could someone please help me to get the answers?
    Q1: While using a file adapter if we have declared an elements schema length as 100 and file reading the file adapter that element contains 120 characters, then what will happen ? Is there any way to read that file?
    Q2: In a BPEL process there is a partner link which is invoked more than once in this BPEL. While creating assertions in Test suit for this composite how we will write assertions for this partener link?
    Q3: In a Flow activity if we have added 2 assign activities in each branch, then will we really have performance improvement as compared if we use them serially?
    Q4: In OSB how to restrict the no of messages coming to Proxy service?
    Q5: in OSB how to use dynamic URL of business service? (we will get to know the url at rum time or we have to create url at runtime)
    Q6: While using fault policy framework if have set the retry count as 3. Now when the retry count is exhausted then how this fault will be clost.faulted or open.faulted?
    Q7: can we have two service bindings in one composite if there is only one BPEL process in that composite?
    Q8: Q: If we need to validate any message in OSB after pipeline stage according to its destination
    thanks in advance

    John
    Please check these links and may answers some of your questions
    http://www.sap-img.com/business/sap-bw-interview-questions.htm
    http://www.techinterviews.com/?p=184
    http://rapidshare.de/files/3829216/Bw_Interview_Questions.pdf.html
    http://groups.ittoolbox.com/archives/archives.asp?l=sap-career&i=671624
    Hope this helps
    Thnaks
    Sat

  • File Adapter Questions

    [Edwin moving internal questions to OTN]:
    I'm looking for answers on some BPEL questions I have.
    * Is it possible to iterate over an array in an assign element? How?
    * Where can I find a description of the JCA binding parameters when using the JCA Files adapter (oracle.tip.adapter.file.outbound.FileInteractionSpec)
    * When I modify the FileNamingConvention parameter of the JCA binding for the file adapter, it seems that I need to restart the whole BPEL PM in order for these chenges to take effect? Is this the only way?
    * The format of the %TIME% substitution parameter in the FileNamingConvention only contains the date, no time. Can this format be modified somehow?
    * Can the %TIME% substitution parameter in the FileNamingConvention be combined with the %SEQ%? It doesn't seem so.

    Hi Peter,
    When I modify the FileNamingConvention parameter of >>> the JCA binding for the file adapter, it seems that I >>> need to restart the whole BPEL PM in order for these >>> chenges to take effect? Is this the only way?When you modify the JCA binding parameters, all you need to do is re-deploy the process in question. You shouldn't need to restart the server since hot process deploy is supported.
    The format of the %TIME% substitution parameter in >>> the FileNamingConvention only contains the date, no >>> time. Can this format be modified somehow?We're already aware of this issue and have logged it as a bug. We'll try to make this more granular than a day, e.g. second.
    Can the %TIME% substitution parameter in the
    FileNamingConvention be combined with the %SEQ%? It
    doesn't seem so.No, these two substitution parameters cannot be combined and we haven't encountered this requirement. I assume you'd want this because the previous issue would mandate a SEQ to make multiple files written on the same day uniquely named. Would you still have use-cases for combining these two substitution parameters if TIME were made more granular?
    Where can I find a description of the JCA binding
    parameters when using the JCA Files adapter
    (oracle.tip.adapter.file.outbound.FileInteractionSpec)This will be coming out in documentation with the release. If you have specific questions or would need info on some particular things, e.g. some InteractionSpec params, we'd be happy to send it to you.
    thanks,
    Navneet

  • File Adapter Question - Part 2

    Hello Everyone,
    I'm hoping someone can help me.  I have a scenario in which I am trying to send an XML file (which is placed on our UNIX system, in a specific directory) to the Integration Engine and then have it mapped back into the R/3 system using an RFC which our development team has created.  I have set up the scenario in the Integration Directory, and have the mapping completed in the Integration Repository. 
    I'm just curious to know if anyone has done this and <b>can provide an example</b> of their scenario.
    Also, at this point, I have placed the file in the directory, which I have specificed in my File Adapter configuration, but I do not see messages in the RWB or SXMB_MONI.  Does anyone have any ideas as to why?
    Thanks so much for your help!  I do appreciate it.
    Regards,
    John

    John,
    satish's sugestion is regarding the process mode.
    But before you use delete mode, check the communication channel status.
    Go to the communication channel monitoring tool (RWB, Component Monitoring, Adapter Engine) and check it out.
    For the CCM: http://help.sap.com/saphelp_nw70/helpdata/en/44/2a1a8620323f0ee10000000a114a6b/frameset.htm
    Regards,
    Henrique.

  • File Adapter Question...

    Hi all,
    could somebody tell me if there is a way to limit the number of files processed by a File Adapter in a poll cycle?
    We need to load files from seven folders, each one has different priority (files from one folder have more priority than other folder ones)
    I hope to was clear...
    Best regards,
    Diego.

    Hi,
    There is no direct function to do this. I think.
    But you can use the OS command to execute the script to make the markings. So the Script will mark the files ReadOnly etc , then file adapter will pull the ReadOnly files only..
    This is workaround here.
    And you can think of EOIO also.
    Regards,
    Moorthy

  • Two file adapter questions

    First, can someone post a URL for detailed file adapter documentation?
    Second, I'm a little confused how to use the file adapter in the case where I'm writing out a message whose schema is contained in one of the wsdl files instead of in an xsd file.
    The particular case is that I call the Google search service, which returns a message of type doGoogleSearchResponse. The schema for this message is embedded in the google.wsdl file from Google. When I browse in the file adapter wizard to choose a schema for the write operation, I can only see schema from my projectName.xsd file, none from the google.wsdl file (even though it's in the project). How can I use the file adapter to write out the Google search reply?
    Thanks,
    Bret

    Hmmm. Step 4 of the file adapter wizard requires me to specify a "Message Schema". There is no apparant way to get past that step without choosing one. Should I just choose any schema in the project and then go back and fix the code?
    Bret

  • Java.io.IOException: Too many open files while deploying in soa 11g

    hi all,
    I am getting a strange error while deploying any composite .. it's a hello world kinda composite but while i am trying to deploy it i am getting "java.io.IOException: Too many open files" while deployment.. i have tried to deploy it in 2-3 ways but all of them resulted in the same error..bouncing the soa server might be an option but can someone give an insight as why it is happening and can it be resolved without restarting the server..
    Thanks

    yes..so this problem is with unix only ..coz i previously worked in Windows ..never got this problem..

  • File Adapter Issue in SOA Suite11g

    Hi,
    I have been facing a strange issue while testing my BPEL process.
    I have a BPEL process which reads input as event listener and then does a small transformation
    At last its writing that output message into a txt file using FileAdapter.
    While testing the BPEL process, its showing success instance id but no files are generating.
    When I was checking at Audit Trail, its showing the output message is being passed into the FileAdapter.
    Same time I was checking the server log, but there was no error/exception.
    Can anyone help me to resolve the problem?
    Note:
    I have been using SOA Suite v11.1.1.4 & have configured FileAdapater with option of Logical Path
    Regards,
    Deba

    Hi,
    My problem got resolved.
    There was some access issue to see the txt files at the File Directory.
    Thanks.

  • Simple File Adapter Question [ XSD validity  ? ]

    Imported an XSD into JD 101333. [ several large, known as good, used in Biztalk etc ]
    tried to make ESB inbound adapter
    spent ages trying to find out why it wouldn't accept it [ then I found a tiny tiny paragraph in the manual stating it must have a namespace ?  why , honestly who cares ]
    2nd ; still won't validate, now it says "Invalid Reference" .. Which log setting do I switch on in Jdeveloper to see why it's throwing a hissy fit ?
    Note : this is a known good set of XSDs and is in use production ; for it not to import into JD is a major drawback to the people I'm evaluating BPEL/ESB for... so please help.

    2nd problem found .
    The XSD elements use a ref:
    e.g.
    <xs:element ref="MyMessageType"/>
    the solution is to add
    targetNamespace="http://my.validators.com/msgs"
    xmlns:pv="http://my.validators.com/msgs"
    in the schemadef
    now replace the xs:element with
    <xs:element ref="pv:MyMessageType"/>
    In all honesty where is this written in the manuals ? It's a fair question.
    Added to that you have NO hint as to what is wrong ; I had to deconstruct about 3000 lines of XSD to find the problem. since if you use "Validate XML" in Jdeveloper it works just fine.
    Massive hole guys.

  • OSB Install question on SOA 11g

    Hello Experts,
    I have installed SOA 111g and below is the environment:
    Web Logic -- 10.3.6
    SOA -- 11.1.1.6.0
    AIA -- 11.1.1.6.0
    Created Doiamns, configuration completed and users are testing it..
    Forgot to install OSB and Oracle recommends that we install OSB first, before SOA.
    Question
    Is that ok to install OSB in the same location of SOA, at this point??
    Thanks
    Rgds
    Natrajan

    Natrajan,
    It is just an recommendation or good approach to Install Osb first before we install Bpel.
    But In case you have already installed SOA , you can go ahead and Install OSB . It should not matter to you.
    Hoping that this is your local machine and I am pretty sure that It will work fine. Since my OSB is topped on SOA Suite.
    Thanks
    Tirumala Dixit.

  • How to find EOF in BPEL File adapter

    Hi All,
    I am using file adapter in BPEL(SOA 11G) to read a csv file. The CSV file is very large so we have are processing the files in batched of 20000 records.I am inserting the records form CSV file to a staging table and after that I am invoking a concurrent Program for further processing.This is working fine and BPEL is initiating no of instances based on the file size.
    The issue here is, I want to submit the concurrent program only once when all the records are stored in staging table, I mean to say the BPEL Process should process the file in batches and then insert them in to the staging table. Once all the records from the file are stored in the table, then only the Concurrent Program should get submitted.
    I am using DB Adapter for invoking a PL/SQL API and from there we are submitting concurrent Program.
    Please help me on this to solve this.
    Thanks!

    It is possible to register a Java Listener class, which can/will be invoked, when a last batch in the file, is read. Code for invoking the concurrent Program can be written in side this class.
    Refer to following document on how to register the Java Listener class
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CACJBIGD
    Moreover, as an alternate to the above approach, chunk read interaction specs can be implemented along with the Sync File Read for your scenario( However,This will be a whole re-write, considering your current approach. Good News is, there is full-fledged example readily available for this in oracle docs).
    Here is the link if you would like to implement the Chunk Read.
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#BABJFCBH
    Mark the posting appropriately as "hlepful" or "correct answer", if your issue is solved.

  • How to read MS-Excel file by using file Adapter

    hi friends,
    I have an issue on read Operation by using file Adapter.
    It is necessary to read excel file by using file adapter. But in the native format of file adapter there is no option to read excel type of files.
    So friends, please help me how to solve this problem?
    Thanks in Advance..

    See also this post:
    Read Excel File Using FileAdapter in SOA 11g
    It might help you

Maybe you are looking for

  • Issue with Audit Log report in SharePoint 2010

    I have enabled REPORTING feature at site collection level and configured the site collection audit settings. I tried to generated Audit log reports, most of the time it keeps on processing as shown in fig.It keeps on processing, never comes to report

  • Error while installing Oracle 9i on Redhat9

    Hi, While running ./runInstaller on Linux 9 I get following error--- "The user is root. OUI cann't continue installation if the user is root." I have set all the Oracle and linux parameters like- oracle_sid, path etc. I have also created one user nam

  • Automatic Content Distribution issues

    Hi I am trying to test On Demand Content distribution in my environment and its not working. Feel like I am missing something obvious. Also I read over this article: http://blogs.technet.com/b/neilp/archive/2013/01/03/on-demand-content-distribution-f

  • Using Adobe in SAP

    Hi, Can somebody please let me know how to use Adobe in SAP? Thanks & regards, Yogita Moderator message - Please ask a specific question - post locked Edited by: Rob Burbank on Aug 5, 2009 1:05 PM

  • Pocketmac 4.1.25 will not run

    i have an Macbook Pro 2.4 Ghz Intel Core 2 Duo OSX version 10.5.6 and have tried a number of times to install Pocketmac for Blackberry 4.1.25.  I am using it with a Blackberry 8830 running verion 4.2. I contiunally get this error message.   "The appl