Multiple IDM instances on same host

Can multiple Identity Manager app server instances be run on the same host, connecting to the same db? If so, how is this accomplished. From what I see Identity Manager instances attempt to register themselves using the host name. Is there a property in the properties file that can set a unique name?

It appears to be possible, at least in IDM 7.1
The release notes and Installation guide reference a setting called waveset.serverId that you set in your application server startup script like so:
-Dwaveset.serverId=Name
This would allow each JVM to identify itself differently from any others running on the same physical server.
I haven't tried this yet myself, so caveat emptor.
Jason

Similar Messages

  • Multiple dialog instances on same host for different System

    Dear Sir,
    I install two dialog instances on same host ,one for DEV one for QAS.
    First I install dialog instance for DEV and startup with no error.
    Second dialog instance for QAS install with success end ,but can not start dispatchers.
    Service
    sapmsDEV     3600/tcp     # SAP System Message Port
    sapmsQAS     3601/tcp     # SAP System Message Port
    sapdp01s  4701/tcp  # SAP System Dispatcher Security Port
    sapgw01s  4801/tcp    # SAP System Gateway Security Port
    sapdp00       3200/tcp     # SAP System Dispatcher Port
    sapdp00s  4700/tcp # SAP System Dispatcher Security Port
    sapgw00       3300/tcp # SAP System Gateway Central Instance Port
    sapgw00s  4800/tcp # SAP System Gateway Security Port
    Disp_dev
    ***LOG Q0I=> NiPConnect2: SiPeekPendConn (10061: WSAECONNREFUSED: Connection refused) [nixxi.cpp 8716]
    ERROR => MsIAttachEx: NiBufConnect to sap-qas/sapmsQAS failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    ***LOG Q0L=> DpLoopInit, nomscon () [dpxxdisp.c   1549]
    Stderr
    D:\usr\sap\QAS\D01\work>ntscmgr start MSSQLSERVER -m sap-qas
    failure: StartService, NT ErrorMessage: An instance of the service is already running. StartService SUCCESS
    D:\usr\sap\QAS\D01\work>ntscmgr start SQLSERVERAGENT -m sap-qas
    failure: StartService, NT ErrorMessage: An instance of the service is already running. StartService SUCCESS
    It seem that first startup dialog instance already start MSSQLSERVER -m sap-dev and SQLSERVERAGENT -m sap-dev, so next instance can not start again ,and cause NICONN_REFUSED.
    Could someone help me?
    Thanks
    Regards,
    Matt

    It appears to be possible, at least in IDM 7.1
    The release notes and Installation guide reference a setting called waveset.serverId that you set in your application server startup script like so:
    -Dwaveset.serverId=Name
    This would allow each JVM to identify itself differently from any others running on the same physical server.
    I haven't tried this yet myself, so caveat emptor.
    Jason

  • How to divide SAPS when having two instances on same host

    Hello
    I wander how to divide SAPS when having two instances on same host. By looking at st06?
    Thank you in advance

    Yes SAPS is nothing but the CPU power used by the SAP systems. SO if you have 2 SAP systems stacked on the same server, check the CPU utilization over a period of 7 - 10 days, average out & that should give you a fair bit of idea.
    - Regards, Dibya

  • Multiple AIA instances on same server?

    Hi,
    Does anyone know how to install multiple AIA instances on the same SOA server? The installer hints that this might be possible, although I have not seen how this is done because the installer expects an empty oracle home path. The only information I have found so far is for an earlier 2.x release of AIA and that suggested:
    "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."
    Is this true?
    Thanks,
    Kev.

    957354 wrote:
    Hi Laxman,
    If its a testing purpose its ok to have a one oracle_home and single listener for multiple DB. One problem when applying oracle patches for one of the instances running in a multiple DB running then you need to bring all the DB running in that host since the oracle_home is sharing between all db instances.
    Thanks
    Sunil Rajesh K.C.Starting with 11g, patchset updates are full installs and done into a new home. This makes it possible to migrate one instance at a time. However, your point would be a consideration for one-off patches like CPUs.
    However, please note ... OP --- PLEASE NOTE even with multiple oracle homes, you still only need a single listener.

  • Parallel processing on multiple IdM instances -- real enterprise class

    Hi all. We run what we earnestly hoped would be a true enterprise class IdM v6 SP1 installation: 2x v440 Sol9 app servers each with 2 IdM instances (AS virtual servers), each host dual CPU and 4GB RAM available; connected to a 4 node dual CPU Oracle RAC cluster.
    But our performance, to use a technical term, sucks bollocks, and has done for >12 months. The main area where this hurts is when we run a DBTable ActiveSync process to update the user base and any associated resources.
    We suspect a few things, but ultimately the most frustrating and intractable problem is this: IdM processes all the Update User tasks stemming from the ActiveSync poll one by one, sequentially, in series, and all on the originating IdM instance. So if we have, say, 5000 updates to process, we watch 5000 sequential User Update tasks, one after the other. Even if each task takes only a couple seconds, we often notice inexplicable gaps of many seconds between one sequential task completing (start time + execution time) and the next beginning. The end result is a throughput rate of usually less than 300/hr -- more than 10hrs to process those 5000 updates!
    Despite setting the [custom] Update User wf to execMode='async', IdM seems to refuse to run these tasks in parallel. In an installation of this size and resource capacity, this is excruciating. Plus there's the fact that as I write, and as it crawls along, the IdM instance running the tasks is showing up in prstat like this:
    PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
    28946 sentinel 2583M 2379M cpu3 28 0 87:27:53 25% appservd/177
    That's quite a lot of resource-use for not a lot of outcome...
    So, does anyone know: how can we get these tasks to run multiple in parallel rather than sequentially; how can we get the task load to be spread across all 4 available IdM instances rather than just the one that executed the ActiveSync poll?
    In long suffering desperation, any help greatly appreciated!
    PS - 2 things regarding parallel:
    1. on the TaskDefinition for the Update User wf, there is also an attribute named 'syncControlAllowed' -- anyone know what this means/does? Would setting it to 'false' perhaps give us true async/parallel mode?
    2. I suspect forcing the task into background could potentially give parallel behaviour, but the problem is that Update User is of course called by any user update task, and when done interactively the administrator may not wish to have the task run in the background.

    Hi,
    i'm afraid i don't know an easy answer to your question. But there are several things that should be considered:
    1) 12s average update time seems a lot. I'm sure that can be optimized. Have you thought about a dedicated sync form (assigned to the proxy admin used for active sync)? If you have that you might also consider setting viewOptions.Process there to use a simplified workflow optimized for your sync process. Take a look at the dynamic tabbed user form example as well - some of the resources you have may not be subject to synchronization and those should be ruled out by setting the sync forms "TargetResources" property to an aproptiet value.
    2) i recently found an interessting way of parallelizing tasks. This is potentially dangerous as you have to build something in that prevents this from being a "fork bomb". Still some example code for a simple scenario where you just want to sync global.email, populated by your AS form. If the workflow consisted out of "start", "nonblocking task launch" and "end" the "nonblocking task launch" had an action like
    <Action id='0'>
        <expression>
          <block>
            <defvar name='session'>
              <invoke name='getLighthouseContext'>
                <ref>WF_CONTEXT</ref>
              </invoke>
            </defvar>
            <defvar name='tt'>
              <new class='com.waveset.object.TaskTemplate'>
                <invoke name='getObject'>
                  <ref>session</ref>
                  <s>TaskDefinition</s>
                  <s>Nonblocking Workflow</s>
                  <map/>
                </invoke>
              </new>
            </defvar>
            <invoke name='setSubject'>
              <ref>tt</ref>
              <invoke name='getSubject'>
                <ref>session</ref>
              </invoke>
            </invoke>
            <invoke name='setVariable'>
              <ref>tt</ref>
              <s>accountId</s>
              <ref>user.waveset.accountId</ref>
            </invoke>
            <invoke name='setVariable'>
              <ref>tt</ref>
              <s>email</s>
              <ref>user.global.email</ref>
            </invoke>
            <invoke name='runTask'>
              <ref>session</ref>
              <ref>tt</ref>
            </invoke>
          </block>
        </expression>
      </Action>The workflow "Nonblocking Workflow" then would have accountId and email available in its variables and if it is defined as "async" it will really be launched that way - build in something that prevents your system from exploding...
    3) probably safer than trying what i implied in 2) (i only used this for a totally different task that can not explode) you could consider to have several instance of the database table resource adapter. Lets say your primary key in the db is "employeeId". If you define for seperate resources, each handling employeeIds modulo [1,2,3,4] only you could distribute the load among your cluster. I did a similar thing with flatfileactivesync before.
    4) back to the average 12s again. If you don't have some slow resources this could mean that the parallel resource limit kicks in. Take a look at waveset.properties about limits like this.
    Synchronization is not the ootb strength of IDM - but with some optimization you should be able to get to reasonable results.
    Regards,
    Patrick

  • 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

  • Multiple DMVPN Instances on Same WAN Interface

    Hi Folks,
    Is it possible to run Multiple DMVPN Instances on a single WAN Interface ? Can we for example configure 3 Tunnels on a Router using one same WAN Interface but running separate EIGRP Instances for each Tunnel ? Kindly let me know , Alioune

    Hi Alioune,
    Yes you can create DMVPN as you said with one WAN interface that is possible..... you can have multiple tunnel interfaces pointed to a WAN interface as the source interface which resides in public zone..... with different public ip's as the destination tunnel...
    interface Tunnel1
    description ** A-VPN Tunnel **
    bandwidth 100000
    ip vrf forwarding red
    ip address 10.0.252.2 255.255.255.252
    no ip redirects
    no ip unreachables
    no ip proxy-arp
    ip mtu 1500
    load-interval 60
    tunnel source GigabitEthernet0/0 (WAN Interface)
    tunnel destination  1.1.1.1
    tunnel protection ipsec profile dmvpn
    interface Tunnel1
    description ** B-VPN Tunnel **
    bandwidth 100000
    ip vrf forwarding red
    ip address 10.0.252.5 255.255.255.252
    no ip redirects
    no ip unreachables
    no ip proxy-arp
    ip mtu 1500
    load-interval 60
    tunnel source GigabitEthernet0/0 (WAN Interface)
    tunnel destination  2.1.1.1
    tunnel protection ipsec profile dmvpn
    like the above..... shown sample...
    Please rate if the given information helps!!!

  • Central NetWeaver Installation and DB Instance on same host?

    HI all,
    Would like to ask a question about NetWeaver installation.
    If I choose central installation, means Central Service Instance, DB Instance and Central Instance will be on the same host, but can my DB, say SQL Server reside on separate host?
    If not, is it correct that I have to choose distributed installation? So if distributed installation, can I install Central Service instance and Central intance on one host, and DB instance and SQL Server on another host?
    Thanks,
    Kelvin

    Hi KL:
    You can get this answer directly from the Installation Guides.
    You can download the installation guides for NetWeaver under: https://service.sap.com/instguides
    Hope this helps!
    Regards,
    Federico G. Babelis
    NetWeaver Certified Consultant
    http://www.gazum.com

  • Multiple browser instances receiving same session ID

    I am using Firefox with OC4J, and I've discovered that multiple simultaneous instances of the browser are receiving the same session ID. This is a pretty serious problem I beleive, as it prevents the ability to safely store one browser instance's state information safely in the session. In other words, one browser instance's behavior can stomp on another browser instance's state data.
    Does anyone know what criteria OC4J is using to determine session IDs, and whether to create a new session or deliver an existing one?
    Thanks,
    Brad

    Tugdual,
    Another comment -- the case where the cookie does not exist or is expired isn't the problem. The problem is when the cookie is valid and another browser instance is opened. Since the browser instances access the same cookie, you have no way of knowing on the server side that you are actually talking to two different browser instances. Hence, any storage of state information that is contextual has the potential to be stomped on by the other browser instances.
    In my case, one browser instance (the result of a new window spawn in a UIX page) was knocking over the original window, because it was overwriting some important state infomration.
    Brad

  • Multiple SIM instances on same db - disable Active Sync for one?

    Hello. I am trying to set up two instances of Identity Manager that are running on the same machine and are connected to the same database.
    I want one to be doing the Active Sync provisioning and the other to not.
    Is there a way to disable Active Sync resources from starting up on one instance but not the other? I know I can manually start them, but I'd like the Active Sync resources to automatically start up for one of the servers.
    I am using -Dwaveset.hostname and setting it to a different value for each instance.
    Thanks.

    957354 wrote:
    Hi Laxman,
    If its a testing purpose its ok to have a one oracle_home and single listener for multiple DB. One problem when applying oracle patches for one of the instances running in a multiple DB running then you need to bring all the DB running in that host since the oracle_home is sharing between all db instances.
    Thanks
    Sunil Rajesh K.C.Starting with 11g, patchset updates are full installs and done into a new home. This makes it possible to migrate one instance at a time. However, your point would be a consideration for one-off patches like CPUs.
    However, please note ... OP --- PLEASE NOTE even with multiple oracle homes, you still only need a single listener.

  • Problem in accessing second database instance on same host (ORA-12514)

    Hi,
    I had a database ICMDB installed on my machine. After that i created a second database instance (Service name: BI_APPS) using DBCA on the same machine. Using NETCA i also created a new listener OracleOraDb11g_home1TNSListenerBI_APPS_LISTENER on port 1522 on my machine. Then i configured this listener to listen for connections to service BI_APPS by adding the following to my tnsnames.ora:
    BI_APPS_LISTENER =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
    Then i changed the port in my tns entry for BI_APPS to 1522 as follows:
    BI_APPS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = BI_APPS)
    I then restarted the following services:
    OracleOraDb11g_home1TNSListener
    OracleServiceBIAPPS
    OracleOraDb11g_home1TNSListenerBI_APPS_LISTENER
    After this, when i try to access my first DB ICMDB via toad, the connection is successful. However, when i try to access the service BI_APPS i get the following error:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.
    What am i doing wrong? Here is the content of my files:
    TNSNAMES.ORA
    # tnsnames.ora Network Configuration File: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    BI_APPS_LISTENER =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
    BI_APPS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = BI_APPS)
    LISTENER_ICMDB =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    ICMDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = icmdb)
    SQLNET.ORA
    # sqlnet.ora Network Configuration File: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    LISTENER.ORA
    # listener.ora Network Configuration File: D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    BI_APPS_LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.109)(PORT = 1522))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    ADR_BASE_BI_APPS_LISTENER = D:\app\Oracle
    SID_LIST_BI_APPS_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = D:\app\Oracle\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    Here is output of lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 12-DEC-2013 16:17:01
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                12-DEC-2013 10:34:35
    Uptime                    0 days 5 hr. 42 min. 26 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   D:\app\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File         d:\app\oracle\diag\tnslsnr\ICMDEVDB\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ICMDEVDB)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.109)(PORT=1521)))
    Services Summary...
    Service "BIAPPSXDB" has 1 instance(s).
      Instance "biapps", status READY, has 1 handler(s) for this service...
    Service "BI_APPS" has 1 instance(s).
      Instance "biapps", status READY, has 1 handler(s) for this service...
    Service "icmdb" has 1 instance(s).
      Instance "icmdb", status READY, has 1 handler(s) for this service...
    Service "icmdbXDB" has 1 instance(s).
      Instance "icmdb", status READY, has 1 handler(s) for this service...
    The command completed successfully

    Jimit wrote:
    Hi Ed,
    I understand your point, however whenever i have tried to use the same listener to access my second instance, this is the error i have always received:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.
    That does not indicate you need a second listener.
    And, after deleting the listener.ora file ,if i try the the command lsnrctl start, i get the error:
    ORA-12560: TNS:protocol adapter error
    Hence i restored the files. What do i do?
    I've never experienced a 12560 trying to start a listener.  I'll need to see if I can create a test system on Windows and try to recreate.  Will be a good subject for my blog, that has been too long with no new content.
    Since this is windows, I'd first check that the Windows service for the listenr is started.
    Whatever, multiple listeners is NOT the solution.

  • Multiple WL instances on same machine with multiple clusters

    Hi,
              I am wondering if it is possible to run two separate instances of WL on a
              single machine, with each instance belonging to a separate cluster? The
              machines are not multi-homed, so each instance must listen on a separate
              port.
              Our current architecture looks like this:
              4 web servers running NSAPI WL plug-in
              3 app. server boxes running WL 5.1 SP2
              I would like to start multiple instances of WL on each app. server to better
              utilize the hardware, and would like each instance to be part of a separate
              cluster.
              My questions are:
              1. Do I have to have a separate multicast address for each cluster, or can
              I use the same address since the clusters are on different ports?
              2. In the NSAPI plug-in, you simple specify a list of all the servers for a
              cluster. Are there any issues with having the machine/port names in this
              list belonging to different clusters?
              Thanks,
              Bob
              

    Comments inline.
              Cheers - Wei
              www4.weblogic.com <[email protected]> wrote in message
              news:[email protected]...
              > Hi,
              >
              > I am wondering if it is possible to run two separate instances of WL on a
              > single machine, with each instance belonging to a separate cluster? The
              > machines are not multi-homed, so each instance must listen on a separate
              > port.
              Yes, you can. FYI, in addition, each cluster use different multicast
              address.
              >
              > Our current architecture looks like this:
              >
              > 4 web servers running NSAPI WL plug-in
              > 3 app. server boxes running WL 5.1 SP2
              >
              > I would like to start multiple instances of WL on each app. server to
              better
              > utilize the hardware, and would like each instance to be part of a
              separate
              > cluster.
              >
              > My questions are:
              >
              > 1. Do I have to have a separate multicast address for each cluster, or
              can
              > I use the same address since the clusters are on different ports?
              Different multicast addresses.
              >
              > 2. In the NSAPI plug-in, you simple specify a list of all the servers for
              a
              > cluster. Are there any issues with having the machine/port names in this
              > list belonging to different clusters?
              In-memory replication will not work.
              >
              > Thanks,
              > Bob
              >
              >
              >
              

  • Bug - multiple related instances of same class

    We've discovered a rather subtle bug in the process by which Kodo
    searches for reachable related objects to persist. If an instance of a
    PC class (A) has two relationships to the same PC class (B), and both
    related instances of B have the same value for their PK-field, then only
    one of the related instances of B will be persisted.
    Obviously, this problem only occurs in the context of application
    identity. We've only encountered it when all the instances involved are
    newly created and being made persistent for the first time (else the
    instances would have different PK-values). It should also be noted that
    we're assigning PK-values in jdoPreStore(). Here's the specific
    situation we encountered:
    Class A has two relationships to class B, represented by fields "B b1"
    and "B b2". In our case, A.b1 is the many-side of a bidirectional
    one-to-many relationship; the one-side is implemented by a field "List
    aList" in B. A.b2 is the navigable side of a unidirectional
    relationship; there is no corresponding field in B. (We haven't checked
    whether or how the cardinality or navigability of the relationships
    affects the problem.)
    Let "a1" be the sole instance of A. If a1.b1 is set to an instance of B
    but a1.b2 is null, and makePersistent( a1 ) is called, then a1 and b1
    are persisted correctly and the relation field b2_id in TableA is NULL.
    However, if a1.b2 is set to a second instance of B and both instances of
    B have the same initial value of their PK-field, then a.b2 is not
    persisted. Only one record is added to TableB; it corresponds to A.b1.
    Interestingly, in this case the relation field b2_id in TableA is not
    NULL, but has the default value of b2's PK-field. jdoPreStore() is not
    called on b2 and b2 is not persisted, but its PK-field is read in the
    process of persisting a1.
    Since we've placed the jdoPreStore() callback in a common non-persistent
    adapter superclass, we're currently able to work around the problem with
    a static "seed" PK value that is incremented in the superclass default
    constructor to provide a unique initial value for each PK-field. If
    anyone would like the code for this approach we'll post it, although
    it'll become unnecessary when the problem is fixed.
    Jerry Pulley
    Sr. Developer
    Commerce Technologies, Inc.

    I'm curious what behavior, besides throwing an exception, could even be
    possible. If the pm discovers two object with the same id, it seems that it
    has to choose one of them to make persistent. How could it possibly resolve
    differences in the fields of the two instances in deciding which one is the
    correct one to put in the db? Additionally, allowing this behavior could
    lead to subtle, difficult to detect bugs in your program, since ( as Abe
    points out ) JDO promises that there will only be one instance of an object
    with a given primary key per PM. Other code may make decisions based on
    this expectation ( like refreshing one of the objects after making a change
    in a different PM ), that would lead to problems for code still hanging on
    to the second instance.
    IMHO, it should throw an exception.
    -Eric
    "Abe White" <[email protected]> wrote in message
    news:[email protected]...
    Thanks for the bug report! However, I'm not entirely sure that this is a
    bug (at least not the bug you think it is); either way it's an extremely
    interesting case. The reason I say it might not be a bug is thatassigning
    pk values in jdoPreStore seems suspect.
    We know that a single PM cannot at any time contain multiple instances
    with the same oid value, app id or otherwise. This is obvious from the
    getObjectById method -- only one object can have a particular oid.
    We also know that jdoPreStore is called only for instances managed by a
    PM (duh!).
    Thus it should not be possible to see a case where jdoPreStore is
    called for 2 objects with the same initial oid.
    Now, I realize that when you're dealing with persistence-by-reachability
    things become less clear. However, I think the general point stands: at
    the time that the objects are made persistent they all must have unique
    oid values, and objects must be made persistent before jdoPreStore is
    called.
    Technically we could get around this. The current
    persistence-by-reachability algorithm is something like:
    flushed = {}
    while flushed.size < persistent.size:
    for each persistent instance:
    if instance not in flushed:
    instance.jdoPreStore // may persist more instances
    instance.persistFirstClassFields // may persist more too
    flushed += instance
    In sum this is a breadth-first method of persisting relations. It could
    be changed to a depth-first system instead of persisting all first class
    fields each one is persisted and then immediately the algorithm is
    repeated for that object before the other fields are touched. However,
    this seems like it might lead to other unexpected behavior.
    Generally, it just seems like waiting till jdoPreStore to assign the oid
    of an object seems like a bad idea. I think the real bug is that Kodo is
    not throwing an exception as soon as 2 object with the same oid are
    detected (currently it just lets one overwrite the other in the cache,
    which results in the behavior you see).
    Does anyone else have an opinion on this? I'm certainly not fixed on my
    interpretation of things; if you disagree I'd be very interested in
    hearing other arguments.

  • Multiple Application Instances Accessing Same DAQ Device

    I have a fairly straightforward application that reads from a wireless DAQ device (NI-9205 connected to NI WLS-9163).  I'd like to run multiple instances of the executable, but I get error -201105 (resource reserved) when the DAQmx task is started on the second instance.  Each instance is attempting to acquire from different channels from the same DAQ device.  Is this an issue with the DAQ device in particular, or with DAQmx in general?  Thanks.
    -Joe
    Solved!
    Go to Solution.

    Hi Joe,
    Unfortunately you can only access one type of channel with each program.  For example you could have one program access AI and another use AO, but you cannot have two different programs access AI from the same card.  This is common among all of NI DAQ devices.

  • Multiple HttpSession instances for same session/sessionid?

    Is it possible that my servlet code may encounter different HttpSession Java objects that infact represent the same session and have the same sessionid? (Assuming non-replicated sessions and single JVM)
    I am wondering as we are doing "request serialization per session" by synchronizing on the requests' HttpSession objects, and it (on rare occasions) seems not to work out...
    //Mike

    "Mike Wilson" <[email protected]> wrote in message news:41722d5e$1@mail...
    Ok! So you're saying that encountering multiple HttpSession objects with the
    same sessionid during concurrent requests is a legitimate situation? II did not say that. I said that if you wanted to serialize access to
    objects contained in the session you needed to serialize on the content,
    not HttpSession object itself. That main reason for this you may be getting
    new HttpSession proxies or delegates everytime request is sent and those
    proxies will refer to the same session conntent, but referencese may be
    incomparable so serialization that objects will no work.
    tried to look this up in the servlet spec but didn't really find anything mentioned...
    (apart from the fact that as it is not mentioned it is not forbidden).
    Do you know if this is weblogic specific behaviour, or if it seen on many
    containers?Not understaning what is being done is platform-independent.
    As I understand your solution I could instead sync on an object added to the
    session with the setAttribute() method?That's right.
    Regards,
    Slava Imeshev
    >
    Thanks
    Mike
    "Slava Imeshev" <[email protected]> wrote in message news:4171fb2b$1@mail...
    Try to serialize on objects that are under your control, i.e. HttpSession
    content, not on the HttpSession object itself.
    Slava
    "Mike Wilson" <[email protected]> wrote in message
    news:14069661.1097764200040.JavaMail.root@jserv5...
    Is it possible that my servlet code may encounter different HttpSession
    Java objects that infact represent the same session and
    have the same sessionid? (Assuming non-replicated sessions and single
    JVM)
    I am wondering as we are doing "request serialization per session" by
    synchronizing on the requests' HttpSession objects, and it
    (on rare occasions) seems not to work out...

Maybe you are looking for

  • Dual boot with Windows 7 and LINUX - Tecra A11 (PTSE1A-00L005)

    Hi, I bought a new Tecra A11 Laptop which runs WIN7 Pro. I want to install LINUX also. That means, I want to run my laptop in dual boot Win7 Pro/LINUX (any distributor). Please tell me how to do that. There are 5 partitions on the HDD: 1. Active, Rec

  • How do we make Facebook games (Cityville) show full screen on ipad?

    How do we make Facebook games (CItyville) show full screen on ipad? 

  • Trouble using Paypal at the iTunes store

    I have an iTunes account. I have enjoyed trouble free service, until now. I decided to set up my daughter with her own account. First, I set up a Paypal account for here and put a little cash in it. Then, she and I set up an iTunes account for her, a

  • Copying to a new layer

    In Freehand you can hi-lite an object and then go to the layers pallett and double click on a layer to copy the object to that layer. Basically transfering the object from one layer to another. Is there a way in Illustrator CS4 to do the same thing?

  • Canvio Aeromobile RAW picture support

    Hi, Just bought a Canvio Aeromobile to backup pictures from my camera when travelling. I thought the neat feature was that it has a built in SD card reader so I can backup without using my laptop. Unfortunately it seems the Canvio does not support RA