A Client Session by schema - stale object the commit in Session

Hi all

We have a terrible problem with our current implementation of Toplink.
Our EPS is:
Application server: oc4j10.1.2
TopLink v.3
Java 1.4

We have several patterns in the architecture, patterns A, B, C, D and E.

Now, A schema is a kind of seed data schema or common data area and contains baisc structures such as locations, roles, and others.

And B French E diagrams use certain structures A or on the level of the object, there is an has a relationship to the objects in A schema.
We can change the mapped field toplink for the foreign key (in SCHEME B) which establishes this relationship, to point to another folder/object. Thus an object in the schema B can be recycled through different objects in A schema.

For example: A person can be associated with a location and the location associated with the person can be changed on the person object.

However, when I do this, I see the published updates and the location is updated in the database and the UOW is committed. However, when I read the object, I get the old location. I return the stale object. Unless I update manually the object, the object of leasing is read from the session cache and he still vomits that Rassi.

What concerns me is, why the State of the object is not snychronised with the Session, even after the UOW derived that the Session has been committed to the DB. Is this because the object belongs to an another schema? Or there could be a problem in the mapping Setup?

After having a terrible time, find a solution. If someone has an idea/small idea, I'll be really grateful if you could let me know. If you need more information, just ask.

Thank you
Mary jenne

Hello

I think you should use addForeignKeyFieldName ("CS_LOCATION.CS_LOC_ID", "PR_BASETOURINFO.CS_DEST_DROPOFFDESTN_ID"); who will tell toplink CS_DEST_DROPOFFDESTN_ID is the foreign key, and it must be set to the value in CS_LOCATION.CS_LOC_ID when the relationship is defined.

By using addTargetForeignKeyFieldName, you say TopLink is the foreign key in the target table. essentially, this CS_LOCATION.CS_LOC_ID is the foreign key and must be defined with the value that lies in PR_BASETOURINFO.CS_DEST_DROPOFFDESTN_ID. This prevents PR_BASETOURINFO.CS_DEST_DROPOFFDESTN_ID to be defined through the mapping. With the help of a foreign key mapping target is similar to what actually read-only, since the changes of relationship will not result in a change in the database - some other mapping in the reference object must define the foreign key field target and a mapping in this object controls the referenced id.

Best regards
Chris

Tags: Fusion Middleware

Similar Questions

  • the closing force of the vSphere web client session after 10 minutes of inactivity.

    To meet the requirements of security, a user admin with a vCenter Server Appliance must

    the closing force of the vSphere web client session after 10 minutes of inactivity.

    That the administrator must do to meet the requirement?

    This much help

    Edit: var/lib/vmware/vsphere-client/webclient.properties, change session.timeout = 10

  • How to retrieve the id of the web client session

    Is their no way to retrieve the web client session ID.

    The UserSession class gives you the unique clientId identify the client session.

    See how UserSession is used in the samples/vsphereviews/vsphere-wssdk -Fournisseur/src/main/java/com/vmware/echantillons/wssdkprovider/vmdataproviderimpl.java

  • Closing the idle Client Sessions

    Thought I would ask if anyone has a solution before I am working on a script for this.  Currently, the only way to end the sessions idle vSphere client is to end it in the section 'Sessions' on the homepage of vCenter.  I'll get a powershell script solution that runs on a daily basis, closing sessions which have been more than a certain time of inactivity.  Does anyone else have a solution already implemented on this one?

    I had a feature request for it with VMware

    Thank you

    Take a look on: http://blog.vmpros.nl/2010/10/02/vmware-disconnect-idling-vcenter-sessions-with-powercli/

    André

  • Client sessions

    Hello

    I need a direction with a script of strategy, namely the consumers of the service of the ARS (web, mmc adsi etc.) ... I can get a snapshot of the customer current sessions under Server configuration, the client sessions and export data... However, I wish to take this information as soon as the user connects to ARS.

    Thanks in advance.

    figured it out... Thank you, Johnny...

    $myobj = get-qadobject - SearchRoot "CN = Client Sessions, CN = Server Configuration, CN = Configuration" - Type edsClientSession

  • How to move/copy the sys schema table to the diagram of the system?

    Hello

    I am trying to copy the table from the diagram of SYSTEM SYS schema, I get the error:

    Could not commit: ORA-00942: table or view does not exist


    How to get out the schema SYS table?

    Any help will be much appreciated
    Thank you

    I am trying to copy the table from the diagram of SYSTEM SYS schema, I get the error:

    Could not commit: ORA-00942: table or view does not exist

    How to get out the schema SYS table?

    You can not - objects cannot be moved from one schema to another.

    You must re-create the object in the new scheme, and then delete the former.

    As I have already said, the only time where you have to do is when someone accidentally created their own objects in the SYS schema.

  • Ignore a schema import in the dumpfile

    version: 11.2.0.3
    Platform: RHEL 5.4

    Imagine that you have 100 saved patterns (expdp) in a dumpfile, and you want to import a schema of this dumpfile in a DB. You can specify only what a schema required using the SCHEMAS in the impdp. But things are not simple, when you want to use REMAP_SCHEMA.

    Here is my scenario:
    ===================

    I took the dump expdp patterns A and B only once. Thus dumpfile has objects both A and B.
    Dumpfile name is: schemas_AandB.dmp

    Now, I want to create the diagram C a with parameter REMAP_SCHEMA

    -Set each parameter in a separate line for readability
    impdp PSTREF/PSTREF_123 
    DIRECTORY=ADET_EFX_DIR 
    DUMPFILE=schemas_AandB.dmp
    LOGFILE=CreatingCfromA-Impdp.log 
    REMAP_SCHEMA=A:C
    Everything's fine. Scheme C is created from A pattern in the dumpfile.

    But impdp tries to create the schema B so because the B pattern was present in the dumpfile. Since the B schema and its objects are already in the comic book, I get the following errors.
    ORA-31684: Object type USER:"B" already exists
    ORA-31684: Object type PROCEDURE:"B"."SP_CLEAREXPIREDSESSIONDATA" already exists
    ORA-31684: Object type PROCEDURE:"B"."SP_DELETESESSIONDATA" already exists
    ORA-31684: Object type PROCEDURE:"B"."SP_DELETESTATECONTEXTINFO" already exists
    ORA-31684: Object type PROCEDURE:"B"."SP_GETNEWCONTEXT" already exists
    ORA-31684: Object type PROCEDURE:"B"."SP_GETNEWSESSION" already exists
    ORA-31684: Object type PROCEDURE:"B"."SP_GETNEXTPART" already exists
    ORA-31684: Object type PROCEDURE:"B"."SP_GETSESSIONDATA" already exists
    ORA-31684: Object type PROCEDURE:"B"."SP_GETSTATECONTEXTINFO" already exists
    Because I don't want B to import schema, I tried to use the SCHEMAS parameter by simply mentioning A.

    -Added setting of PATTERNS
    impdp PSTREF/PSTREF_123 
    DIRECTORY=ADET_EFX_DIR 
    DUMPFILE=SCHEMAS_AandB.dmp
    LOGFILE=CreatingCfromA-Impdp.log 
    REMAP_SCHEMA=A:C
    schemas=A   ---------------------------> Trying to avoid schema B in the dumpfile from being imported by specifying SCHEMAS
    But I got the following error
    ORA-39065: unexpected master process exception in MAIN
    ORA-12801: error signaled in parallel query server PZ99, instance oracth214:HEWRAC1 (1)
    ORA-01460: unimplemented or unreasonable conversion requested
    Parameters REMAP_SCHEMA and PATTERNS may not be working together. Is it possible to prevent the impdp to import user B and its objects?

    YOU HAVE TO USE the OPTION EXCLUDE = PATTERN: 'IN ('B') inside the expdp '.

    EXCLUDE PATTERNS
    http://rkdba.blogspot.in/2011/04/expdp-exclude-multiple-tables-and.html

  • I have created a new domain with win2012r2 and created users. Add after the client in my area so that the newspaper with the user I get error below.

    Hello

    I have created a new domain with win2012r2 and created users. Add after the client in my area so that the newspaper with the user I get error below.

    "You cannot connect because the logon method, you use is not allowed on this computer, please, see your ad min for more information network"

    Please help me with that and I don't want to give permission to admin for all users group...

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • I have problems with your e-mail via a web client is sending no text in the body and sending HTML instead of text.

    I have problems with your e-mail via a web client is sending no text in the body and sending HTML instead of text.  I am told that this problem is because of the BING toolbar on my browser - is this correct?

    original title: Messaging with the BING toolbar problem

    I suggest blind carbon copy yourself e-mails coming out in the future to check for other errors and if they happen then find a new Web hosting provider.  They should have been aware of the conflicts, one would presume.

    Steve

  • Is node/host usually means a client computer or it means that the window Server computer?

    Is node/host usually means a client computer or it means that the window Server computer?

    Hi stuckfree,

    The question you posted would be better suited for the TechNet community. Please refer to the link and post your request for more information.

  • The Client computer could not connect to the remote computer

    Hello

    Relating to the name or a customer request. They have a few problems with the remote desktop connection in Windows XP.

    They haveWindows Home Edition and XP Professional on his laptop computer on his desk.

    They say:

    "I took the liberty to install Office remotely on computers, because it was not installed on the desktop.   I was able to connect to my laptop through my desk, but not vica versa. »

    "When I try to connect to my desktop from my laptop, I get an Error Message"the Client computer could not connect to the remote computer... »

    Hello

    You can read the following article and install the patch available to see if contributing to the issue.

    You receive an error message "the client could not establish a connection to the remote computer" when you try to establish a desktop remote connection to a Windows XP-based computer

    I suggest that you post your question in the TechNet forums if you encounter other issues related to the remote desktop connection.

    Windows XP IT Pro Forums.

  • Error message after you initialize computer error "Windows cannot find C:\Program Files (x 86) \Search Extensions\Client.exe make sure you typed the name correctly and try again.

    After that I turned on my computer, I get this error message... "Windows cannot find C:\Program Files (x 86) \Search Extensions\Client.exe make sure you typed the name correctly and try again."

    It all started October 1, 2014, and I have no idea why.

    I asked windows assistance online, and he said he had something to do with my registry.
    But then there just stop communicating and did not tell me how to solve this problem.

    Y at - it a registry repair tool?

    Also it does not affect my computer that I can tell.

    But I have a problem in which windows cannot detect.

    In the printers and devices window, the icon of my computer has a triangle with an exclamation mark inside error.

    Maybe someone out there not and I'd appreciate any help.

    Hey, mark

    First have you properly uninstalled this program? He was executed at startup of Windows an incorrect uninstall may cause this error may still be registered in MSConfig to start automatically with the computer.

    Did you go to the address specified in Program Files (86) \Search Extensions to see if the file is present or not?

    With a mark of exclamtion in the middle of a yellow triangle indicates that drivers must be updated.

    Right-click on the device with the triangle, select Properties, go to the Hardware tab, select the device with a triangle next to it, select Properties again and select Update driver.

    This should solve the problem, if Windows Update can't find a driver for you, you can always go to the manufacturers website and download it there, however, if the Windows Update does not find it there ' has a chance to the manufacturers Web site may not it as well, in this case, you can open Device Manager right-click the missing material or using outdated drivers, select Properties, go to the Details tab and in the hardware id select menu drop-down property search with id, you receive information about the device and so download the drivers the most up-to-date and appropriate from other reliable sources.

    Thank you

    -Robin

  • Last_Updated_by column filled with schema, I want the username

    Hello

    Currently my last_updated_by column is updated the schema name of the application.  I want to use the user name of the current users.

    I tried substitution methods in OS, but the methods are ignored.

      public void setLastUpdatedBy(String value)
      {
        OADBTransaction transaction = getOADBTransaction();
        value = transaction.getUserName();
        setAttributeInternal(LASTUPDATEDBY, value);
      }
    

    It turns out that there is a trigger on the table that was setting the columns WHO.  Disable it fixed the problem.

  • Client interface methods not found in the data control

    Hello

    JDev 11.1.2.4

    I exposed some methods by including them in the client interface of my module of the application. I tested the app module and I can call methods. I refreshed the data control, but I do not see the data control methods. I have several other client application with interface module and I can see the operation. I only have the problem with this module of the application.

    Any ideas?

    Thank you

    Close jdev, delete the folder the model project of the module of the application classes and the classes folder of the project view controller where you want to use the datacontrol, start jdev, recompile the project model (and deploy the lib, if you use the library), recompile the view controller and finally see if you see the methods in the datacontrol.

    Timo

  • When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroE

    When you try to attach a PDF file as an object the WORD 2013 64 bit I'm estates following error: "the program used to create this object is AcroExch. This program is either not installed on your computer, or it does not. To change this, install AcroExch or ensure that all the dialog boxes in AcroExch are closed. "even disabled protection at startup mode. Who made no difference

    Hi sdesk.

    This problem occurs with the 64-bit application as Acrobat is a 32-bit application making it incompatible to insert objects into a MS Word 64-bit application.

    As a workaround solution insert the object as a 'Create New' rather than create a file.

    Let me know if it helps.

    Kind regards
    Nicos

Maybe you are looking for

  • Satellite P200-1JR: display becomes suddenly empty only restart helps.

    Hello I have laptop Toshiba P200-1JR, and I am satisfied with the performance. Unfortunately, I have experienced a few problems for which I'm not sure if they are material (manufacturing) or a driver problem (software). 1 display sometimes (maybe onc

  • Problems with the driver.

    I can't play any CD on my driver. I have trouble downloading anything on my computer.

  • [HELP] Lynksis WRT54G

    Please I need help with my Lynksis of WRT54G Router. Here is the image. http://img843.imageshack.us/img843/6797/78105566.jpg I go to my IP 192.168 etc but nothings happen at all. Please I need help. What are the steps to understand this. I really app

  • E-mail of the overwritten files

    I saved a few files into special folders in my inbox.  2 out of the 3 I have special folders, emails got overwritten with the same email even if the title and the update has not changed. Is it possible that I can get back the original files - they fi

  • Disk boot Vista tips

    Hello. A friend of mine gave me a computer to correct because it crashed and there was no way to access the recovery partition to repair or reinstall. I was able to boot from a Linux disk to recover his files and proceeded to reinstall the OS (Vista