Connecting to two database instances from the same TopLink

Hi,
We are trying to create a process using BPEL where data from one database instance needs to be passed to the other. The process is compiling properly and we could deploy it in BPEL Process Manager. But when we try to run the process, the data is not getting inserted into the second instance. There is no error /exception being thrown at most of the time, but at times we are getting a 'Unique constraint error' eventhough there is no duplication of data.
Can we connect to two different instances using the same toplink. How can we achieve this.
Thanks in advance
Pratheusha

You need to use two different sessions with two different mapping descriptors

Similar Messages

  • Connecting to two database instances using the same Toplink

    Hi,
    We are trying to create a process using BPEL where data from one database instance needs to be passed to the other. The process is compiling properly and we could deploy it in BPEL Process Manager. But when we try to run the process, the data is not getting inserted into the second instance. There is no error /exception being thrown at most of the time, but at times we are getting a 'Unique constraint error' eventhough there is no duplication of data.
    Can we connect to two different instances using the same toplink. How can we achieve this.
    Thanks in advance
    Pratheusha

    You need to use two different sessions with two different mapping descriptors

  • JDBC connection to two different machines from the same program

    I want to use JDBC to connect to two different databases that are on two different MySQL installations on two different machines.
    One of the installations is MySQL 4.1.12 and the other is 4.1.14-nt
    For some reason, all my statements seem to be going only to one machine, even though I am very clearly set it up to go to two different machines.
    Does anyone know whether connecting to two different installations from one program presents any unusual problems?
    Thanks.

    Unless there is some horrible defect in the MySQL JDBC driver (which I doubt!), there should be no problem and like the other poster says, please post snippits of your code so we can see what your doing...

  • CNR: Two cnr instances in the same server (lab environment)

        Hello, we are trying to install two cnr 7.2 intances on the same server in order to replicate in lab the real environnment (failover local cluster) without deploying two servers.
    I've seen on the installation guide that installing both a local and regional server on a single machine is supported, but what about two local servers working as a failover pair?
    up to date, we've managed to install both installs, the dhcp servers are configured for using different interfaces and web gui are listening in different ports. scp ports have been changed (1234 and 4321 ) and, on dhcp-server expert configuration: failover-remote-port and failover-port are configured to be different (677 - 678 in one , and 678 - 677 in the other)
    We can manage both servers from DHCP - failover configuration, as they show up and running, and even see logs... The other configs are
    When trying to syncronize we get the error
                                                "ChangeSet list is empty."
    is this configuration supported?
    best regards!

    user10127912 wrote:
    Hi,
    We are planning to install second instance of Oracle 11gR2 in Linux server 2.6.39-400.21.1.el6uek.x86_64 x86_64. This is something we never haven done before. If you have such experience, please give us some insight.
    The existing instance has all the standard ports:
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Enterprise Manager Console HTTP Port (pterpdb02) = 1158
    Enterprise Manager Agent Port (pterpdb02) = 3938
    What ports should we select for second listener and enterprise manager? Is there anything else that we need to know before we install the second instance?If you want a second database instance, no additional installation is required - as long as you want to run the second instance at the same version as the the first. Just fire up dbca and create the second database. One installation of Oracle (one ORACLE_HOME) is capable of supporting many database instances, though the same may or may not be said of the hardware it is running on.
    As already said, one listener is enough. One listener, running from one oracle home, using the default name of LISTENER, running on the defualt port of 1521, is quite capable of -- indeed, WAS DESIGNED TO, supporte multiple database instances of multiple versions running from multiple ORACLE_HOMEs.
    One instance of dbcontrol/dbconsole will support only one database. If you do not use Grid Control (extra installation, extra license) you will need to use the emca utility or one of the options in the dbca utility to configure a seperate instance of dbcontrol for each database. Don't worry about the ports, the creation utility will take care of it and report what it does.

  • Communication between Two WebLogic instances on the same machine

    Hi,
    We're having a problem with communication between two copies of Weblogic on
    the same machine. They are configured with seperate ports (regular and SSL).
    Independantly, they run fine. I can access EJBs running on either of them.
    The problem is that a bean in one of them has code which attempts to access
    an EJB on the other one. The procude fails when trying to obtain the initial
    context. This same code works if compilied independantly of WebLogic on the
    same machine.
    Are there any known issues regards communication between two running
    instances of Weblogic on the same machine?
    Thanks in advance,
    Randy Yarger
    marchFIRST
    [email protected]

    Thanks for the prompt reply.
    There is one IP address (internal address 10.227.1.34) one the machine. WLS1
    is set up at ports 7001 and 5133. WLS2 is setup at ports 7004 and 7005.
    When WLS1 attempts to obtain a context to WLS2 with the URL
    t3://10.227.1.34:7004/ it pauses for a long period of time. Running truss
    on the both WLS processes shows communication occuring between the two
    followed by long periods of silence. Finally WLS2 spits out the error
    ConnectionException[7001,7001,5133,5133,7001,7001] (paraphrased, I can get
    the entire error if it would help).
    After another long pause, WLS1 quits trying with the error 'Server
    10.227.1.34:7004 not found' (again paraphrased).
    Among the things we've tried:
    * Changing the URL from the IP to 127.0.0.1
    * Enabling/disabling SSL on either or both WLSs.
    * Changing the server name in WLS2's copy of weblogic.properties from
    'myserver' to 'myserver2' (previously they were both 'myserver')
    * Upgrading WLS2 to 5.1.0sp5 (Tried upgrading WLS1, but was getting class
    not found errors and quit because that WLS is being used by other people)
    This is a Solaris server. WLS1 is running 5.1.0 and WLS2 is running 5.1.0sp5
    Any suggestions would be appreciated.
    Best,
    Randy Yarger
    marchFIRST
    [email protected]
    "Michael Girdley" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    There should not be. What is your network configuration? Are they on
    separate IP addresses?
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "Randy Jay Yarger" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    We're having a problem with communication between two copies of Weblogicon
    the same machine. They are configured with seperate ports (regular andSSL).
    Independantly, they run fine. I can access EJBs running on either of
    them.
    The problem is that a bean in one of them has code which attempts toaccess
    an EJB on the other one. The procude fails when trying to obtain theinitial
    context. This same code works if compilied independantly of WebLogic onthe
    same machine.
    Are there any known issues regards communication between two running
    instances of Weblogic on the same machine?
    Thanks in advance,
    Randy Yarger
    marchFIRST
    [email protected]

  • Why do I get two different results from the same coefficients?

    I am getting two different results from the Polynomial Evaluation function.
    For the first one, I am getting the coefficients from a Polynomial Fit function.  I feed the coefficients from the Fit function into the Poly Eval function and get the correct result of 12.8582 when I evaluate 49940.
    For the second one, I create constant array of the SAME values that were returned from the Polynomial Fit function (i typed them in).  However, I am getting an incorrect result of -120.7913 when I feed the constant array into the Poly Eval function when I evauate 49940.
    How can this happen when I am using the same array values?
    Attached is an image of what I am explaining.
    Solved!
    Go to Solution.
    Attachments:
    polynomial_evaluation.jpg ‏213 KB

    Hi Altran,
    are you sure about using the "same" coefficients?
    Did you compare them? Did you (atleast) set the display properties to 17 significant digits?
    Please attach a VI instead of a picture...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can i judge the two runtime instance are the same handle?

    can I judge the two instance is the same handle, just like in C++ to get their address by "&" for compare?
    if yes, how?
    thanks in advance
    Frederick

    Integer a = new Integer(7);
    Integer b = new Integer(7);
    boolean sameValue = (a.equals(b)); // true
    boolean sameInstance = (a == b); // falseJust in case jsalonen's answer was a bit terse.

  • Two Essbase instances on the same box

    Hi folks,I was wondering if it is possible to have two instances of Essbase running on the same box (Win 2K server). We want the dev and the test environments to be logically seperate but physically on the same server.Thanks a lot for your help.

    It depends on the version of Essbase you are using. If you are on 6.2 or above, you can change the default listening port for the Essbase agent and application server processes, which allows you to have multiple instances on the same box.An easier way to run multiple servers on one box might be to use technology like VM Ware or Microsoft Virtual PC - they allow you to create a virtual machine which can have its own Essbase install, with your production Essbase environment running on the "base" OS.RegardsJade-------------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Can I run two different ipods from the same laptop?

    Hi, I am very new to all this. Is it possible to have two different ipods running from itunes on the same computer. If it is how do I separate them so when I connect and ipod it doesn't sync both lots of music.
    Please Help me
    Thanks
    Hoolie

    I'm currently syncing three iPods to the same library. iTunes will recognize each iPod as a unique device. My preferred method of managing my iPods is "Sync Selected Playlists". This allows me the convinience of syncing (and all my ratings, playcounts and last played sync) while still being able to control what goes on each iPod. You can set your preferences for each iPod. You could managage one manually and sync the other. Whatever works best for you.

  • Printing to two Epson R800s from the same computer

    I just posed this question to Epson and they didn't have a clue:
    Can you print to two Epson R800 printers simultaneously from one computer? I do this all the time with my 7600 and 1280 which are both USB. Now I need to do the same with two R800s (Firewire and USB ports). The problem is that one printer doesn't print fast enough to get my printing jobs done on time and would rather just have to buy another printer, rather than a printer and computer. Possible if I used two different drivers, such as the Standard driver and the Borderless driver?

    Hello,
    I have just tested in IE 6.0.something, and have proved that it generated different CFID CFTOKEN's each time the browser was opened.
    other version don't.
    originally the app was developed against IE 6.0.
    I am currently re-developing the system to use URL variables instead.
    Thanks all for providing insight.

  • Is it possible to have two SCCM instances for the same domain

    Hello - I'm the IT Project Manager for an organization that has a single domain-production.
    In here, we have an instance of SCCM 2012 setup. This instance is used to build packages, images, testing, validations, modifications etc. as well as for production roll outs. The primary issues we have with this is there is no separation between test and
    prod, also, there are several packages, task sequences etc causing confusion in determining which is a test package and which is prod.
    Setting up a test domain does not seem to be a viable option for us, at least for now.
    So, my question is, can we have another instance of SCCM in the same domain that we can restrict only for the sake of testing & validations and then use the original one to deploy the tested (gold) packets.
    Just a thought!! Does it make sense? Any challenges that we could face?
    Thanks in advance 
    Jagan Pantina
    JP

    Hi,
    Yes you can no problem, you should avoid having Boundary / Boundary Groups used for Site Assignment that overlap and make sure that PXE request to the test/dev environment is restricted to one test subnet to avoid co-existance issues.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Two Time Machines from the same computer on one external drive?

    Hello all. I tried searching for a similar situation but didn't see one.
    I have a MBP running Leopard 10.5.8. Its Time Machine is located on an external mirrored raid LaCie drive.
    I have installed Snow Leopard on a separate external LaCie d2 drive on its own partition. On a second partition of that drive is a clone of the MBP HD (with Leopard 10.5.8).
    Can the external mirrored raid LaCie drive I use for Time Machine contain both of the Time Machine backups that are created by the same MBP - one when Leopoard is running, and another when Snow Leopard is running?
    Thanks. I hope I've posed the question clearly enough to trigger thoughts. It's a brain twister for me ...

    Can the external mirrored raid LaCie drive I use for Time Machine contain both of the Time Machine backups that are created by the same MBP - one when Leopoard is running, and another when Snow Leopard is running?
    Yes, but it's not the best solution. A better solution is a separate drive or a separate volume on the same drive in order to keep the backups separate. In this way if anything happens to the Leopard backup volume it won't affect the SL backup volume.
    If you do as you propose each system's backup will be separate but stored in the same Backups.backupd folder as long as you use a different Computer Name in each system. Your backup drive will need to be large enough to maintain full backups of each.

  • How to update two database tables as the same Usernamethats logged in?

    I have created 2 separate database tables in PHP/MySQL that I want to store user information in. The first user table I made the fields: id, username, password. The second table I made the fields: id, firstname, lastname, address, phone.
    I want to make an update record page that is restricted by username and password that will update both table1 and table 2 from my MySQL database.
    I have created a registration page, a login page and a restricted page for when the user signs in. On the restricted page I want to update the users information.
    I have tried a few things and I can get the table that has the username field to update, I just can't get the second table to update with the first table.

    Hmm.
    Not sure where your going with the <select> menu.
    The description you made:
    "Both have an id column, which is presumably the record's primary key, but you need to create a relationship by storing the primary key of one table as a foreign key in the child (related) table. For example, you should insert the primary key of the first table in the second table as user_id. That enables you to identify which username and password are related to an individual listed in the second table"
    Seems to be the direction that I'm looking for.
    Now my question is how do I insert the primary key of the first table in the second table as user_id?
    >
    >"For example, you should insert the primary key of the first table in the second table as user_id"
    Since both tables have an id column and they both are the primary key, do I just change the name of the second tables id column to "user_id" then?
    Or is there an actual "insert the primary key to another table" function that I don't know about?

  • How to acquire two signal values from the same GPIB

    I have a power meter which provides two values,  the power and wavelength simultaneously.  So when I'am giving in the GPIB write command probe a joint command is not provided by ILX light wave. So how can i get the values simultaneously.
     Please help

    Hi perumpadapu,
    you should read the manual of your device/software. There you should find the answer.
    Or ask the customer support for that device.
    As long as you don't even provide a name of your device we cannot provide much more help!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Combining two form fields from the same document, into one form field?

    I have a field called "first name" and one called "last name".  How do I create a third field called "full name".  I want it to just combine the first two.  Any ideas?

    In the field's calculation tab (under Custom Calculation), enter:
    event.value = this.getField("first name").value + " " + this.getField("last name").value
    Message was edited by: try67
    Forgot to paste a part of the code...

Maybe you are looking for

  • Search panel in Acrobat 9 Mac disappeared to unusable vertical sliver

    Running Acrobat 9.3 on Snow Leopard, the Search Panel has become a tiny vertical sliver only just visible – see attachment. It is unusable. The drop down Window dialog shows the Search window as active. I cannot find out how to restore the Search pan

  • Changing File Name In Numbers...

       Hi guys, so I've just started using Numbers, I had previoulsy used MS Excel for Mac. I've been able to figure out a fair amount of how to use it, though still have a long way to go! However I cannot for the life of me figure out how to change the

  • Where are my extensions?

    Running Dw CS4 on a mac (10.4.11) and I installed several extension from various creators using the extensions manager. Then I quit that and launched Dw. I created blank html page to insert and experiment with some of the new stuff and the extensions

  • HT1212 What if the backup is putting in that passcode every time that I have forgotten?

    Okay so everytime I go to restore to an old backup the old passcode automatically is put onto the iPhone so I can't access it because I don't remember it.... A) What do I do now? B) Itunes is now saying this everytime I go to restore: "iTunes could n

  • Help with Runtime

    i hava a jsp with this code below. I get the error shown. Please help. how can i do this in JSP String cmd = "C:\\jwsdp-1.3\\webapps\\ROOT\\Applet\\java KalahServer"; Runtime rt = Runtime.getRuntime(); Process proc = rt.exec(cmd); java.io.IOException