Blocking multiple SOA Instances when polling from DB Adapter?

Hi,
I am on SOA 11.1.1.3 and have a simple requirement of sequential processing from a database table. I hence created a BPEL process to poll the DB and process the records sequentially by inserting 10 records in a single XML (and doing a while loop on these records). I have also kept a polling interval of 30s with Logical Delete option.
When I have just 10 records in the table, it works fine by creating one instance. However, when there are 20 records in the table, it creates 2 instances of 10 records each and since these two instances are processed in parallel, the sequential processing no more happens and records are processed out of order.
Is it possible to limit the number of instances to just one and prevent the second instance from kicking off. I have read about the singleton process but can I use this on a single node as well?
Any inputs will be appreciated.
Thanks!

Hi
From what I know there is nothing out of box that does guarantee ordered execution of instances. That is due to the Queue based work storage and multiple threads pulling data for execution of instances.
I am not sure if that should be supported out of box as well.
Polling process is expected to poll for records every X interval. And create instances that can be processed with in the container.
From what I understand, the requirement needs to stop the polling process if there is a active instance
OR
Create a instance during each polling and check if there is an existing instance, wait till the other instance is complete and then proceed in order if multiple instances have been polled during the waiting window.
One option that I have implemented that works at the source (database) works like this:
1. Change the Db Adapter to logical delete
2. Create a view on the database to only show 1 NEW record, or no records if there is a RESERVED record
3. You might have to write a trigger on the table for updates to complex view created
At least the requirement that I had was to process records in the order they were created.
Status table look up might be tricky as it can not guarantee ordered execution of records as threads might grab the status in random order. But if the requirement is 1 at a time rather than ordered, this would be fine.
But from JVM load perspective, instances might be sitting in the memory doing constantly trying to grab status from table. From performance perspective other options would need to be explored.
Regards
Kalidass Mookkaiah

Similar Messages

  • Multiple SOA instances run on Same Linux BOX

    Hi,
    Can multiple SOA installed be installed on same Linux box? Can someone pls answer this.
    Regards,
    Rakesh

    it should be supported; It is just a new installation of SOA Suite into a new directory structure. Keep in mind that you need to have different databases to hold up the SOA Schema's. Note that from release 11g, you can have multiple SOA schema's into a single database instance.
    Marc

  • Guaranteeing sequence order when polling with DB adapter

    We need to read rows from a source table using the DB adapter in polling mode, and deliver them to separate files in the same order they were read from the DB.
    My understanding is that when polling, if we find 10 records to be processed, 10 separate BPEL processes will be created.
    It's not clear how to then maintain the sequence order when creating the files, as each process may execute faster or slower than others.
    Any advice appreciated
    Toby

    Marc/Sjoerd,
    Firstly, thanks for your replies.
    On Marc's suggestion, if say we read 100 records using the database adapter, we get 100 processes. How do we control which process will be the first one to be processed, and which of the remaining 99 processes will be subsequently processed once the first has been completed by the cruncher process?
    Sjoerd's 1st and 2nd option are not acceptable to us - we have to ensure the same order the records are read. for example record 1 could be a creation and record 2 could be an update to the first so delivering the update to the destination system before the creation will result in an error.
    I'm not clear about option 3 - this sounds similar to Marc's suggestion. I can't see how order is maintained between a group of processes created as a result of the database adapter polling, and them being serviced by a cruncher/singleton process. What is to stop the bp which contains the first record being processed first, then the bp which contains the fifth record being processed second, then the bp which contains the second record being processed third etc?
    Thanks
    Toby

  • Multiple Video Instances (when watching video on sites like Hulu)

    The following behavior is seen in all browsers: IE8, Chrome, etc:
    When going to video sites like Hulu or ComedyCentral.com, the video player is intermittently playing multiple instances of the same video out of sync by approximately 100 ms of each other.  It sounds like an echo with usually 2 or 3 instances max, occasionally 4 instances.   If the pause button is pressed when this behavior is being exhibited, it pauses the single instance which actually is synced with the video (and the video pauses).  However, the other 1, 2, or 3 other instances of the audio continue to play their audio track.  To stop the audio from continuing I have to re-direct to another site or close the browser.
    This behavior was first seen a couple of days ago.  I have the latest version of Flash and have un-installed/re-installed multiple times including the browsers themselves.  Any help is greatly appreciated!

    I had the same problem too. As far as i can tell, it was caused because flash installed itself twice; When i went to add/remove programs, not only did i have the "flash 10" program, but shockwave flash as well. The only fix i found was to complete uninstall everything, all the drivers, destroy the registry entries it left behind, and completly remove FF, and reinstall all of that again, just for it to function like it should.
    And even now, im dreading that the next "upgrade" is just going to undoe everything and screw me over again.
    Particularly on the comedy central videos, it was obviously playing the video twice; the video ran slow as crap, and the audio repeated with say a 3 second delay.
    Complete removal and reinstall of my browser and the plugin has seemed to fix it..atleast for now..why this problem exists, why it installs itself multiple times, and why this new version was obviously not tested before release, you would have to ask adobe..but they will just tell you to update your drivers.

  • How can I block spam e-mail when the "from address" keeps changing?

    How can I block a spam mail sender when that spamer uses a different e-mail address everytime!  I have set up a rule with the spamers name (which does not change) and setting the rule to "is equal to" but it is not working. 

    deckersmom
    Verizon can't fix it and yahoo can't change your Samsung application function.
    Just use the free Yahoo app.
    i Have a yahoo and Gmail and use separate apps for this reason.

  • Why do I end up with multiple sessions/instances when I just want a new tab to be opened?

    Each time I click on a link in an email or in a browser page I am getting another instance of FF opening instead of opening a new tab in the same-single instance. I can have many, many instances opens all with the a single tab of each clicked through link. It's very confusing to find the pages I want with so many open instances.
    How can I go back to have a click through just opening a new tab?

    hello, this is a google setting that you can change at google.com/preferences.

  • Multiple AIA instances on same Linux box

    H,
    Can multiple SOA instances be deployed on same linux box then with AIA on top of it.
    Can some one pls answer this?
    Regards,
    Rakesh

    Yes you can but:
    Each SOA installation must be in his own ORACLE_HOME directory.
    Each AIA installation must be in his own ORACLE_HOME directory.
    You must point to different databases. You can not have mulitple SOA schema's in one sinlge database.
    Marc
    http://orasoa.blogspot.com

  • How to control File read Proxy Service when it is polling from folder?

    Hello all,
    In my current requirement we are receiving  xml's through one folder(LOCAL) from source side.we are picking those xml's  by proxy service PS1  as file transport for every 10 sec and configured that folder path.In PS1 message flow we put on routing action to one bussiness service,that business service sending those xml's to one MQ.
    We already created this interface but the issue is source side they plan to change that folder and also they want to stop this service(folder to MQ) sometimes based on synarios.That folder will be delete or if exist proxy wont read messages from that folder.
    But proxy is still looking for that folder in Test ENV on Unix system then it gives error beacuse of unix folder structure is different,proxy unable to create that folder in unix system.it is creating in windows.
    Now we want to control that service when the folder is ready that time only  proxy will activate otherwise not..i.e like if condition "if cndtion is satisfied PS1 starts the polling from that folder else condition should be work.
    How can i control PS1 service?
    Is there any chance to control by using another proxy?
    Experts please guide me..
    regards
    venu

    Hi Terry,
    According to your description, my understanding is that you don’t want the yollow bar notification to display when you open Access documents.
    This issue seems to be about the client application. Please compare the followings with the things that you did:
     1.Open the documents
     2.Click File->Options->Trust Center->Trust Center Settings
     3.Click Protected View, unselect ‘Enable Protected View for originating from the Internet’
     4.Click Message Bar, select ‘Never show information about blocked content’
     5.Click Macro Settings, select ‘Disable all macros without notification’
    In addition, as this issue is about Office, I commend you create a new thread in Office forum, more experts will assist you with this issue.
    Office forum:
    http://social.technet.microsoft.com/Forums/en-US/home?category=officeitpro
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • When I mouse over an active tab, a circular "block" symbol appears and prevents me from either clicking on or closing the tab

    When I am in FireFox, and I mouse over any area that would normally allow me to do something, like select a tab, close a tab, or even fill text into this details box, a circular "block" symbol appears and prevents me from entering or doing anything. I have scanned all of the installed programs in the Control Panel and removed anything suspicious and reviewed addons and the like in FireFox, all to no avail. BTW, this problem does NOT occur while in Google Chrome, but I much prefer FireFox. Help!!!

    Note that your System Details List shows multiple Flash plugins.
    # Shockwave Flash 11.9 r900
    # Shockwave Flash 11.8 r800
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    You can check the Flash player installation folder for multiple Flash player plugins and remove all (older) version(s) of the plugin (NPSWF32) and (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • Single SOA Suite Install with multiple oc4j instances and java processes

    We right now have 5 BPEL processes and 5 ESB processes all running under one java.exe process. We would like to seperate some of
    them out into their own java.exe processes without having to install more
    %ORACLE_HOME% instances of SOA Suite. I can create an oc4j instance but of
    course it doesn't have any SOA Suite stuff deployed to it. I tried to see what
    the install would do with this new oc4j instance but it wants to create a new
    %ORACLE_HOME% with an entire installation of SOA Suite.
    Is there some sort of way to clone oc4j instances that have SOA Suite deployed to them so that you
    don't need multiple %ORACLE_HOME% instances?
    ### How is this Issue Impacting Your Business ###
    We really don't want to have a lot of %ORACLE_HOME% instances to have to maintain. We are
    migrating projects over from our current integration server product and we'll
    have potentially dozens more BPEL and ESB projects. We definitely want to
    group and isolate projects so that outages of one project do not bring down
    others that are unrelated.
    We are currently experiencing periodic problems with one BPEL project that requires recycling but all the other BPEL and ESB
    projects get recycled also. If we could put this project into it's own java
    process without creating another SOA SUITE instance, it would be a big
    help.
    ANSWER
    =======
    You can create multiple domains in BPEL or create multiple systems/groups in ESB to group different projects.
    MY REPLY:
    =========
    We have been using systems/groups in ESB but they all run under the save java.exe process. I would assume that having a seperate domain in BPEL would also run in that same java.exe process.
    Right now, the one BPEL project we have a problem with will gobble up all the JDBC connections from time to time and that requires a recycle of SOA Suite, which means all BPEL and ESB projects that run in that java.exe process get recycled also. We're working that issue in a different ticket.
    It would be nice if the SOA Suite installation would install against a new oc4j instance and not assume it has to create a complete %ORACLE_HOME% instance. The components of SOA Suite seem to be J2EE based components.
    Scenario: I already have an oc4j instance called oc4j_soa and a complete %ORACLE_HOME% installation of soa suite. I then create a new oc4j instance from Enterprise Manager. Then I would deploy the esb-dt, esb-rt, orabpel, etc. components of SOA Suite to that new oc4j instance and modify the necessary config file so that it can work with OHS and the SOA Suite Databases. Is this possible?
    Does anyone have any experience with this or do people typically install multiple complete installation of SOA Suite with mulitple Oracle Homes?

    Hi,
    yes, on metalink you get in touch with real experts....
    You have to install serveral application servers to get different ORACLE_HOMEs.
    For each one, you can install a BPEL PM.
    But: For each BPEL PM you need your own database instance, or you have to configure them as a clustered BPEL installation.... (but i do not know if this work with non RAC DBs)

  • When moving from one master block to detail block  it must save record.

    when moving from master block to detail block it must save record or it will give message like 'save changes '....
    when i write it ,but this message will be coming.
    But if i save record message will appear two times.
    plz Help me.
    Thanks & Regards
    Venkata.
    Message was edited by:
    venkata

    Hi,
    you could ask for Form_Success when moving to detail_block (in wehn-new-block-instance i.e.) and if not form_success you could show an alert to ask for commit changes...
    Jose.

  • Need to get data from multiple database instances in a single query

    Hi,
    I need a small favour from you guys. The prob is as follows:
    I need to get name, row_id from table A from schema 1 and gbu_name, name from table B from schema 2 where a.name = b.name. I wrote the query in the following manner:
    SELECT a.name, a.row_id, b.gbu_name
    FROM Schema1.A as a, Schema2.B as b
    Where a.name = b.name
    But this query is not working and the error is like " The table does not exists".
    Please update me how to avoid the error and get the right sort of result.
    Thanks & Regards,
    Debabrata

    Ah, youre actually asking different things.
    In your topic title, you say youre running separate instances
    In your body text, you say you are under different user/schema
    So tell me, do you have more than one database or not? How many entries in your TNS file?
    I would say, for "multiple database instances"
    SELECT
      a.id, b.id
    FROM
      tableA a
      INNER JOIN
      tableB@OTHER_DATABASE_LINK_NAME b  <--NOTE!
      USING(id)And of course you will have to look up CREATE PUBLIC DATABASE LINK sql..
    Message was edited by:
    charred

  • Jdbc connection blocks when run from jar

    The following code establishes a connection EXCEPT when run from within a jar file:
    String jdbcDriverName = "oracle.jdbc.driver.OracleDriver";
    String dbConnectionURL = "jdbc:oracle:thin:@192.168.2.7:1521:PRISM";
    String userName = "mdo";
    String password = "mdpass";
    // Load the JDBC driver and create a connection to the database
    Class.forName( jdbcDriverName );
    OracleDataSource dataSource = new OracleDataSource();
    dataSource.setURL( dbConnectionURL );
    dataSource.setUser( userName );
    dataSource.setPassword( password );
    connection = dataSource.getConnection();
    When run from a jar file, the application does not execute beyond the line:
    connection = dataSource.getConnection();
    No exceptions are thrown, it just appears that getConnection never returns.
    Do I need to do anything different to execute this code from within a jar file?
    Thanks in advance,
    Phil
    <><

    When building the JAR file, I inadvertently included files from two Oracle JDBC driver versions (1.2 and 1.4). I was building a single jar file with all files in it.
    I am guessing same named files existed in both driver JARs and caused "confussion" when combined into the single JAR.
    Still, I would have expected an exception to be thrown or a null connection to be returned instead if the thread just blocking.
    Thanks for all replies,
    Phil
    <><

  • When I open some pages, another web site opens. I want to block that site and its URL from opening.

    When I open some pages, another web site opens. I want to block that site and its URL from opening.

    BlockSite extension.
    https://addons.mozilla.org/firefox/3145/

  • I registered on icloud from my gmail and now when i log on icloud and type password its say your account is been blocked for security reasons.when i reset be email its just send on email but wich email i dont remember.i have @icloud email pls help

    (https://iforgot.apple.com i registered on icloud from my gmail and now when i log on icloud and type password its say your account is been blocked for security reasons.when i reset be email its just send on email but wich email i dont remember.i have @icloud email pls help

    drop the CAPS thats rude.
    iforgot.apple.com there is a link for find my apple id click here
    https://iforgot.apple.com/appleid?language=US-EN&returnURL=https://appleid.apple .com/cgi-bin/WebObjects/MyAppleId.woa&app_id=93&app_type=ext
    Peace, Clyde

Maybe you are looking for