Synchronize MII transaction - only one running instance at a time

Hello,
I have a scenario where I use an MII transaction triggered by PCO, and it may be the case that the same PCO notification triggers this transaction twice within a very short time, i.e., the second transaction instance starts its execution before the first instance has finished. But I really need to make sure that those calls are done one after the other and that they do not overlap.
What is the best way to achieve this? Which MII technologies can I use? I do not want to use message services and schedule a job that handels the requests one after the other - I need real time action and  in this case I would need to schedule the Job every second. Im really looking for a kind of semaphore/mutex solution to make sure that the MII transaction call can be fired by PCO and in case the previous transaction call is still running, the current one should wait until the previous one has finished.
Thank you for your input and ideas!
Best Regards,
Matthias

Hi Steve,
1. The PCO notification will be triggered when a PLC counter increases (which is actually the trigger that another piece has been produced on one of our production lines) - this happens in average every 10 to 15 seconds, but due to some special setup it can be the case that 2 or 3 consecutive pieces come out at the end of the line immediately one after the other, followed by a larger pause.
2. The expected duration of the MII transactoin will be approx. 2 to 3 seconds.
3. The exact software versions we use are PCO 2.1.6.1 and MII 12.1.9.123.
to be precise, the serialization of the transactiona does not need to be for all instances, but only for instances of the same production line, i.e., transactions of different lines may run at the same time, but for a single production line the transaction calls must not overlap.
The reason is the following: We want to implement a "difference posting" of produced pieces: each PCO message holds the  PLC counter value, and in the MII transaction I want to refer to the counter of the previously produced piece. If the difference is one, everything was OK, one additional piece needs to be recorded in the system. If the difference is greater than one (for the sake of example, lets say 3) I will record 3 new pieces in the system, and if the difference is less than one (wrong order in message delivery, should normally not happen) I will simply ignore the message. This gives us the possibility to not lose data during a PCO outage: PCO is up until PLC counter value 10, is down from PLC counter value 11 to 15, and comes back at PLC counter value 16. When I process the message with counter value 16, I will see that the last processed piece was for counter value 10, therefore I need to create 6 pieces - the 5 I have "lost" plus the current one.
To be able to safely refer to the previously produced piece, there must not be any parallel transaction executions, since then maybe two instances read the same "previous counter" and therefore mess up the collected data.
I hope this gives you an idea what I want to achieve.
Best Regards,
Matthias

Similar Messages

  • (please urgent) two web modules , but only one run at the same time

    Hi sirs;
    In jDev 11g, I've a project with two viewControler fusion Adf and one model ( service bc4j ) ;
    When i Deploy the application using the topmost drop down list from jDev Ide ( application drop down list), only one of the two application works simultaneously.
    Look , the two applications works, but they do not work at the same time.
    stack trace like :
    zip:C:/Users/t/AppData/Roaming/JDeveloper/system11.1.1.1.33.54.07/DefaultDomain/servers/DefaultServer/tmp/_WL_user/PlanejamentoRH_V2.0/ebw81b/war/WEB-INF/lib/_wl_cls_gen.jar!/view/DataBindings.cpx
    25/09/2009 15:56:25 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl setLifecycleContextBuilder
    INFO: ADFc: Inicializando Ciclo de Vida da Página do ADF para o ambiente JSF, LifecycleContextBuilder é 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    25/09/2009 15:56:25 UNEXPECTED_CLIENT_OBJECT_TYPE oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    SEVERE: oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    25/09/2009 15:56:25 UNEXPECTED_CLIENT_OBJECT_TYPE oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    SEVERE: oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    25/09/2009 15:56:25 UNEXPECTED_CLIENT_OBJECT_TYPE oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    SEVERE: oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    <25/09/2009 08h56min13s AMT> <Error> <HTTP> <BEA-101020> <[ServletContext@7863650[app:PlanejamentoRH module:ORHQVagas path:/ORHQVagas spec-version:2.5 version:V2.0]] Servlet failed with Exception
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'controlerBean' resolved to null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:67)
         at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:126)
         at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:230)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:400)
         at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.renderAsElement(FormElementRenderer.java:211)
         Truncated. see log file for complete stacktrace
    >
    Is thrown , just when we try to browse the second application( the first one is ok , up and working );
    No metters , whose of the two applications is browse first , every the first work and the second fail;
    I've made other very simple application with two projects and the two worked well, at the same time, but the real project is giving me this problem;
    If someone could point me to some white-paper or give me some tips , I'll appreciate very much;
    Fowards Thanks;
    Marcos Ortega
    Brazil

    I reproduce it here;
    I Just relocate  the DataBindgs.cpx   to view/foo/DataBinds.cpx  and rename the view_view1PageDef to  view_foo_view_view1PageDef  and it's Works;
    Please muhammed, it is related with mds / ADF Security Configuration ?
    I was sure , that it will not work , in my thoughs "UNEXPECTED_CLIENT_OBJECT_TYPE" was throne because the second application should not be able to create a second instance of appModule because GUID problems ;
    As a metter of fact, it was raised again , but the page and all data was displayed;
    Lets see the log;
    Target URL -- http://127.0.0.1:7101/Application2-ViewController1-context-root/faces/view1.jspx
    09/10/2009 08:58:21 oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationCpx
    INFO: file:/C:/Users/t/AppData/Roaming/JDeveloper/system11.1.1.1.33.54.07/o.j2ee/drs/Application2/Application2-ViewController1-webapp/WEB-INF/classes/view/foo/DataBindings.cpx
    09/10/2009 08:58:22 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl setLifecycleContextBuilder
    INFO: ADFc: Inicializando Ciclo de Vida da Página do ADF para o ambiente JSF, LifecycleContextBuilder é 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    09/10/2009 08:58:25 oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store
    *09/10/2009 08:58:28 oracle.jbo.uicli.mom.JUApplicationDefImpl logCpxUsageIdCollision*
    SEVERE: Both view.foo.DataBindings.cpx and view.DataBindings.cpx use the same usageId: view_view1PageDef
    FIX: Use view_foo_view_view1PageDef as the usageId in view.foo.DataBindings.cpx
    09/10/2009 08:59:27 oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationCpx
    INFO: file:/C:/Users/t/AppData/Roaming/JDeveloper/system11.1.1.1.33.54.07/o.j2ee/drs/Application2/Application2-ViewController-webapp/WEB-INF/classes/view/DataBindings.cpx
    09/10/2009 08:59:28 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl setLifecycleContextBuilder
    INFO: ADFc: Inicializando Ciclo de Vida da Página do ADF para o ambiente JSF, LifecycleContextBuilder é 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    *09/10/2009 08:59:28 UNEXPECTED_CLIENT_OBJECT_TYPE oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl*
    SEVERE: oracle.adf.controller.internal.metadata.xml.MetadataResourceXmlImpl
    09/10/2009 08:59:30 oracle.adf.share.jndi.MDSBackingStore isReadOnlyMDSStore
    INFO: Read only backing store

  • JMS Queue working with only one AIA instance.

    Hi,
    We are having a Web-Logic JMS Queue configured for an instance. I have developed a consumer in AIA instance to pull the messages from the Queue.
    And this works fine.
    Now I have an another instance consumer which is pointing to the same Queue, but it fails to get the messages from it.
    I have switched off the consumer in the FIRST instance, but even then consumer from the SECOND instance was not able to pull the messages.
    Later, I tried switching on the consumer of the FIRST instance, and all the messages were pulled in this instance.
    So how can I make it work with two AIA instances and one JMS Queue, provided only one AIA instance consumer is active at a time.
    Thanks in Advance.
    Regards!

    * Likely your best bet is to check your server logs for "Error" and "Warning" messages, and/or, since these questions are specific to AIA's usage of JMS, post your questions to the AIA newsgroup.
    * WL JMS does not impose a limit on the number of consumers on a queue, but it does only allow one named connection with the same "client id" to connect at a time. Its unusual to name connections in queueing applications, but possible - and AIA may be doing this. (If this is the problem there should be "client id in use" style log messages or exceptions.)
    * Another possibility is a misconfiguration of your remote consumer. Make sure the URL is correct, and remember, if an application is running in the same cluster as the remote destination, don't specify a URL.
    * Also, if the remote consumer is running in a different domain, make sure the domains are named differently, and that no two JMS servers in the two domains have the same name (as per the unique naming restrictions documented in the Best Practices section of the JMS configuration guide -- http://download.oracle.com/docs/cd/E14571_01/web.1111/e13738/best_practice.htm#CACJCGHG ).
    Regards,
    Tom

  • How to open multiple sql files in only one ssms instance

    how to open multiple sql files in only one ssms instance, I can't get anything to work that I find online..I hope you can help us.

    I tried opening two files but selecting and hitting enter. it opens one SSMS and two tabs.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • HELP !! only one ASM instance  up at any given time on a 2 node RAC cluster

    OS: Solaris 10
    Oracle: 10.2.0.4
    Problem: Installing ASM, dbca hangs, and errors out with End of communication channel.
    Only one ASM instance can be brought up at any given time
    PLEASE HELP !!!!
    - nk

    alert log
    ======
    Thu Oct 1 23:09:54 2009
    lmon registered with NM - instance id 1 (internal mem no 0)
    Thu Oct 1 23:09:54 2009
    Reconfiguration started (old inc 0, new inc 12)
    ASM instance
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished
    Thu Oct 1 23:24:59 2009
    Errors in file /oracle/admin/+ASM/bdump/+asm1_lmon_1999.trc:
    ORA-00481: LMON process terminated with error
    Thu Oct 1 23:24:59 2009
    LMON: terminating instance due to error 481
    Thu Oct 1 23:24:59 2009
    System state dump is made for local instance
    Thu Oct 1 23:24:59 2009
    Trace dumping is performing id=[cdmp_20091001232459]
    Thu Oct 1 23:25:00 2009
    Instance terminated by LMON, pid = 1999
    Thu Oct 1 23:25:03 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Interface type 1 bge1 192.168.10.0 configured from OCR for use as a cluster interconnect
    Interface type 1 bge0 10.134.246.32 configured from OCR for use as a public interface
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as /oracle/product/10.2.0/db_1/dbs/arch
    Autotune of undo retention is turned off.
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.4.0.
    System parameters with non-default values:
    large_pool_size = 12582912
    instance_type = asm
    cluster_database = TRUE
    instance_number = 1
    remote_login_passwordfile= EXCLUSIVE
    background_dump_dest = /oracle/admin/+ASM/bdump
    user_dump_dest = /oracle/admin/+ASM/udump
    core_dump_dest = /oracle/admin/+ASM/cdump
    asm_diskgroups =
    Cluster communication is configured to use the following interface(s) for this instance
    192.168.10.1
    Thu Oct 1 23:25:03 2009
    cluster interconnect IPC version:Oracle UDP/IP (generic)
    IPC Vendor 1 proto 2
    PMON started with pid=2, OS id=17923
    DIAG started with pid=3, OS id=17925
    PSP0 started with pid=4, OS id=17927
    LMON started with pid=5, OS id=17929
    LMD0 started with pid=6, OS id=17931
    LMS0 started with pid=7, OS id=17933
    MMAN started with pid=8, OS id=17937
    DBW0 started with pid=9, OS id=17939
    LGWR started with pid=10, OS id=17941
    CKPT started with pid=11, OS id=17943
    SMON started with pid=12, OS id=17945
    RBAL started with pid=13, OS id=17955
    GMON started with pid=14, OS id=17957
    Thu Oct 1 23:25:04 2009
    lmon registered with NM - instance id 1 (internal mem no 0)
    Thu Oct 1 23:25:04 2009
    Reconfiguration started (old inc 0, new inc 14)
    ASM instance
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished
    Thu Oct 1 23:40:09 2009
    Errors in file /oracle/admin/+ASM/bdump/+asm1_lmon_17929.trc:
    ORA-00481: LMON process terminated with error
    Thu Oct 1 23:40:09 2009
    LMON: terminating instance due to error 481
    Thu Oct 1 23:40:09 2009
    System state dump is made for local instance
    Thu Oct 1 23:40:09 2009
    Trace dumping is performing id=[cdmp_20091001234009]
    Thu Oct 1 23:40:10 2009
    Instance terminated by LMON, pid = 17929
    Thu Oct 1 23:40:12 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Interface type 1 bge1 192.168.10.0 configured from OCR for use as a cluster interconnect
    Interface type 1 bge0 10.134.246.32 configured from OCR for use as a public interface
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as /oracle/product/10.2.0/db_1/dbs/arch
    Autotune of undo retention is turned off.
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.4.0.
    System parameters with non-default values:
    large_pool_size = 12582912
    instance_type = asm
    cluster_database = TRUE
    instance_number = 1
    remote_login_passwordfile= EXCLUSIVE
    background_dump_dest = /oracle/admin/+ASM/bdump
    user_dump_dest = /oracle/admin/+ASM/udump
    core_dump_dest = /oracle/admin/+ASM/cdump
    asm_diskgroups =
    Cluster communication is configured to use the following interface(s) for this instance
    192.168.10.1
    Thu Oct 1 23:40:13 2009
    cluster interconnect IPC version:Oracle UDP/IP (generic)
    IPC Vendor 1 proto 2
    PMON started with pid=2, OS id=26086
    DIAG started with pid=3, OS id=26088
    PSP0 started with pid=4, OS id=26090
    LMON started with pid=5, OS id=26092
    LMD0 started with pid=6, OS id=26094
    LMS0 started with pid=7, OS id=26096
    MMAN started with pid=8, OS id=26100
    DBW0 started with pid=9, OS id=26102
    LGWR started with pid=10, OS id=26112
    CKPT started with pid=11, OS id=26114
    SMON started with pid=12, OS id=26116
    RBAL started with pid=13, OS id=26118
    GMON started with pid=14, OS id=26120
    Thu Oct 1 23:40:13 2009
    lmon registered with NM - instance id 1 (internal mem no 0)
    Thu Oct 1 23:40:14 2009
    Reconfiguration started (old inc 0, new inc 16)
    ASM instance
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished

  • I need to host a Shared PDF on SharePoint. If it is on SharePoint can only one person comment at a time? I know documents have to be checked out when using SharePoint. I need multiple users to be able to comment in real time and see comments in real time.

    I need to host a Shared PDF on SharePoint 2010. If it is on SharePoint can only one person comment at a time? I know documents have to be checked out when using SharePoint. I need multiple users to be able to comment in real time and see comments in real time. Is this possible?

    try here:
    http://www.bbb.org
    File a complaint with them. Verizon will call you to fix the blunder.
    But remember it is always up to the customer to insure what they are getting and what it costs. Don't trust the word of a sales person who makes their living on getting that sale. Lies, deceit or false promises will be and have been used by sales people for thousands of years.
    Good Luck

  • I was trying to add an itunes library to my computer, and now my itunes library can not be found. An ipod can be synced with only one iTunes library at a time. How can I find my Itunes library, complete with playlists ?

    I was trying to add an itunes library to my computer, and now my itunes library can not be found. An ipod can be synced with only one iTunes library at a time. How can I find my Itunes library, complete with playlists ?

    I have the same problem too and tried alot of things like time zone , restarting or changing DNS of wifi connection to 8.8.8.8 still nothing happens .. !!
    iPhone 5s, iOS 8.3

  • HT204088 How how can I synch my ipod + iphone music to my new computer? I get the same error  "my ipod or iphone is synched with another itunes library.An Ipod can be synched with only one itunes library at a time. What would I like to do Erase and Synch

    How can I synch my ipod & iphone music (purchased from itunes on my old laptop) to my new laptop? I keep getting the same message on my itunes on my new laptop: " The ipod/Iphone is synched with another itunes library. An ipod/iphone can be synched with only one itunes library at a time. What would you like to do - Erase and Synch or Transfer Purchases?" What do I do?
    A couple of other items:
    1) I am guessing Apple does not keep a history of all my music purchases? As I did not have my entire library backed-up anywhere, and relying on the music I have on my ipod and my iphone as my only source of itunes music....I have lost over 500 songs!!!
    2) I used to have an Apple account under another account name, and since have switched to a new account name. Is there anyway to find the history of purchases from my old Apple account name and transfer these over to my new account name and onto my new laptop?
    I hope someone can help, I am having a very difficult time trying to obtain answers. Angie

    The iphone/ipod is NOT a storage/backup device.  Not maintaining a backup copy is a big mistake.
    You can transfer itunes purchases from your iphone/ipod to your computer:
    Authorize your computer for all accounts and then click  File>Transfer Purchases

  • HT4527 an iphone can be synced with only one itunes library at a time error on same pc

    an iphone can be synced with only one itunes library at a time error on same pc why?

    Damaged library... See Empty/corrupt library after upgrade/crash.
    tt2

  • An iPhone can be synced with only one iTunes library at a time

    I recently bought a MacBook Pro, and I figured it would be pretty simple to move my iPhone to sync with iTunes on the Mac from iTunes on my pc, afterall it is the same program and both are designed for the iPhone.
    I have been successful in getting the Contacts and Calendar to sync, but the Music, Applications, Video and a few other things give me this message when I check the sync box:
    "The iPhone is synced with another iTunes library. Do you want to erase the iPhone and sync with this iTunes library? An iPhone can be synced with only one iTunes library at a time. Erasing and syncing replaces the contents of this iPhone with the contents of this iTunes library."
    Obviously, I don't want to erase everything. Actually, I don't care about Music, Videos, Podcasts or Ringtones as I don't have any, but I do care about Photos and Applications. Actually Photos I can reload too, but I don't want to loose the apps I have purchased with the iTunes App Store.
    I even tried going back to the PC and unchecking the Sync boxes on it, hoping this might disassociate it from the phone, but now even on that PC I get the same message.
    How do I disconnect phone from the old iTunes and be able to sync it to the new iTunes? This should be simple right?

    I made an appointment with a Mac Genius and I will say that while it was better than getting to talk to India on a poor quality phone call it was just about as helpful. Sure she was cute and friendly, but I left without my issue resolved and was surprised that I didn't even get a followup from anyone asking about my experience (hence my venting here)
    Anyway, I found a solution for my issue here: http://tinyfish.net/2008/07/18/how-to-sync-iphone-with-multiple-computers/
    This is a real solution to the issue, and has the benefit that I can do this to as many machines as I need and sync at any of them instead of just one. Hopefully, Apple doesn't delete my response since it truly is the answer to the problem and others might be looking for the same solution.

  • I got a new pc and I am getting this message: The ipod 'harms ipod' is synced with another itunes library  Do you want to erace this Ipod and synce with this itunes library?  An Ipod can only be synced with only one itunes library at a time.  Erasing and

    The ipod 'harms ipod' is synced with another itunes library.Do you want to erase this ipod and sync with this itunes library?  An ipod can be synced with only one itunes library at a time.  Erasing and syncing replace the contents of this ipod with the contents of this itunes library.
    I don't know what to do?  I should save my library before I replace the contents, but I don't know how to do that! HELP!!

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • I bought a MAC for the first time and plugged my Itouch into it to download my music on it, but is says The iPod "Rick's IPOD" is synced with another iTunes library. An iPod can be synced with only one iTunes library at a time. What should I do?

    I bought a MAC for the first time and plugged my Itouch into it to download my music on it, but is says The iPod “Rick's IPOD” is synced with another iTunes library. An iPod can be synced with only one iTunes library at a time. What should I do?

    Same as you would if you bought a pc; copy everything from your old computer to your new one.  Then you can just sync everything from the new computer, as you did with the old one.

  • Delete only one text message at a time w/o deleting entire conversation?

    Does anyone know how to delete only one text message at a time without having to delete the entire conversation? The only two options I get are "clear conversation" or "cancel."
    HP   Windows XP  

    That's the same option I get too. It seems to me I recall seeing somewhere that you could delete individual messages in a thread but I don't remember where.
    It seems silly to limit deletions to only the entire conversation since with most phones you can delete individual messages.

  • Only one row appendable at a time in alv

    I would like to limit only one blank row at a time in my alv grid. Means, if i append a row using the standard "Append Row" Button, the user should not be able to append a second blank row till he fills out the first one.
    Any hints ??
    regards,
    Priyank

    Hi Sascha,
    Thanks for the reply but it does not work.
    i put some code in the ...AFTER event, but it seems it is not executed on clicking the append button. I set a breakpoint there but it did not break.
    any other suggestions?
    my main problem is that when i append multiple rows in the alv and subsequently save the data from this alv grid, somehow one field is getting cleared and not holding the value the user has entered. for example, if i add 5 rows and then put data in these rows and save it, second row shows an initial value for a date field in the table. rest of the rows hold the correct value.  i don't know if it is a webdynpro bug or my mistake...i tried redoing everything but to no avail...same problem everywhere.
    thus i m trying to restrict the user to one row at a time only. it will be ideal if i can somehow solve the original problem. if not, even restricting to one row will be good enough.
    regards,
    Priyank

  • HT4969 How do I pull up only one specific calendar at a time (i.e. 'home calendar')?

    How do I pull up only one specific calendar at a time on my iPhone (i.e. 'home calendar')?
    Thanks!

    In the calendar app, press the button in the upper left, "Calendars" and turn off/on the ones you want/don't want.

Maybe you are looking for