Using two different datasource driver into a transaction

Hi all,
i have two database : one under Informix and another under Oracle.
Well, well, i have declared two datasources in my apllicationserver ( Sun ONE 7).
I have to use a session EJB to write into the two databases some data and i have to open an UserTransaction to deal with it.
The flow is :
- open the UserTransaction
- Get the connection from the first datasource
- launch the INSERT query in Informix
- Get the connection from the second datasource
- launch the INSERT query in Oracle
My doubt is : Will the transaction work fine even if i have to use two different connection from two different datasources ?
Using only one database the transaction work fine.
Cheers.
Stefano

Hi,
This will work correctly if you use XA drivers (XADataSource instances).
You can check the vendor docs to see what exact classes you need to deploy for each database.
Beware of the pitfall: if you don't use XA drivers then commit might very well appear to work, but rollback won't.
Also, don't forget to close the connections.
Hope that helps,
Guy
Atomikos TransactionsJTA - visit our new JTA forum at http://www.atomikos-support.com

Similar Messages

  • Are Apple still using two different SSD drives?

    Hi Everyone
    I am in the process of sorting out an order for a 13" MacBook Air but I have just found out that it would appear that Apple are using two different suppliers for their SSD drives. Alot of the posts about this subject seems to be from a few months a go, and I wondered if anyone has heard anymore info if this is still the case, or if Apple has now switched to one supplier?
    Thanks for any help you can offer

    yes as of three weeks ago, i checked some of the New release diplayed MBA 11 & 13 and they had the old ones in them. TS

  • Can I use two different HD's to backup my Mac?

    I was thinking how to make my backups more resilient. At the moment I take one weekly backup from my Mac using Time Machine - I then store the TM hard-disk away somewhere safe. (BTW - the reason I don't leave the TM disk connected all the time and run continuous backups is that I figure if someone breaks into my house, they'll just take the Mac and the hard disk!).
    I'm now thinking what happens if the TM hard disk fails and I can't restore from it? So I thought about maybe getting a second external hard disk, and alernating my backups each week to a different disk. As well as providing extra protection against a failure, I could also store the two backup disks in different places to add further resilience.
    Would TIme Machine get confused however if I use two different disks to run backups from the same Mac?
    Thanks for any advice...

    Time Machine won't get confused if you use it to back up to alternating disks. You have to run a complete, full initial backup on each machine, of course. When you swap disks, use the Time Machine pref pane to "choose" the backup disk that's currently connected.
    The "Preparing Backup" stage takes longer on the first backup after the swap - but it would do that if you had just not used the same drive for a week, too.
    Of course, YOU might get confused with this setup if you're looking for an older version of an existing file and the specific one you want is on the "other" drive, but it sounds like you're just looking for a "restore in case of disaster" solution rather than using the versioning history Time Machine provides.
    (Also - if the drive isn't big - physical dimensions, I mean - it might be easier to unplug it and shove it in a drawer if you think your Mac might be grabbed but the rest of the place not get ransacked.)

  • How to use two different versions of Firefox at the same time on Snow Leopard?

    I recently upgraded to Firefox 4.0 on my 27" iMac running Snow Leopard 10.6.7.
    Previously, I was using Google's "Page Speed" along with Firebug in Firefox 3.6.15 to optimize images in my web pages, and to find other areas to optimize.
    Page Speed is not yet compatible with Firefox 4.0. I wrote to Google about this some time ago -- no answer yet.
    If I run Firefox 3.6.15 in order to use Page Speed, I run into a few problems afterward when I start using Firefox 4.0 again, since they both use the same "Firefox" folder in my "Application Support" folder.
    How can I set it up so that I can have two separate "Firefox" folders in my "Application Support" folder?
    Or is there an easier way to use two different versions of Firefox simultaneously, even if one has extensions and/or plug-ins installed which are not compatible with the other version?
    Thanks for a great browser!

    Please disregard my question. I just conducted more web search and learned how to use Firefox's profile manager in order to make a separate profile for Firefox 3.6.15.
    You can find instructions on this page:
    http://support.mozilla.com/en-US/kb/Managing%20profiles#os=mac&browser=fx35
    '''A small tip:'''
    If your Firefox app is named anything other than "Firefox" -- say for example "Firefox 3.6.15" -- when you follow the instructions at the above link, make sure you escape the blank space that is before the version number by adding a backward slash before it, when you type the command string in the Terminal. In other words, in that string, you should use this:
    Firefox\ 3.6.15
    I hope that helps someone.
    WW

  • How Can i Use two Different Public IP Addresses no my DMZ with ASA Firewall.

    How To Using Two Different Public IP Address on My DMZ with ASA 5520
    Postado por jorge decimo decimo em 28/Jan/2013 5:51:28
    Hi everyone out there.
    can any one please help me regarding this situation that im looking for a solution
    My old range of public ip address are finished, i mean (the 41.x.x.0 range)
    So now i still need to have in my DMZ another two servers that will bring some new services.
    Remember that those two server, will need to be accessable both from inside and from outside users (Internet users) as well.
    So as i said, my old range of public ip address is finished and we asked the ISP to gives some additional public
    ip address to address the need of the two new servers on DMZ. and the ISP gave us the range of 197.216.1.24/29
    So my quation is, on reall time world (on the equipment) how can i Use two different public ip address on the same DMZ
    on Cisco ASA 5520 v8??
    How my configuration should look like?
    I was told about implementing static nat with Sub Interfaces on both Router and ASA interface
    Can someone please do give me a help with a practical config sample please. i can as well be reached at [email protected]
    attached is my network diagram for a better understanding
    I thank every body in advance
    Jorge

    Hi,
    So looking at your picture you have the original public IP address range configured on the OUTSIDE and its used for NAT for different servers behind the ASA firewall.
    Now you have gotten a new public IP address range from the ISP and want to get it into use.
    How do you want to use this IP address range? You want to configure the public IP addresses directly on the servers or NAT them at the ASA and have private IP addresses on the actual servers (like it seems to be for the current server)?
    To get the routing working naturally the only thing needed between your Router and Firewall would be to have a static route for the new public network range pointing towards your ASA OUTSIDE IP address. The routing between your Router and the ISP core could either be handled with Static Routing or Dynamic Routing.
    So you dont really need to change the interface configuration between the Router and ASA at all. You just need a Static route pointing the new public IP address towards the ASA outside IP address.
    Now when the routing is handled between the ISP - ISP/Your Router - Your Firewall, you can then consider how to use those IP addresses.
    Do you want to use the public IP addresses DIRECTLY on the HOSTS behind the firewall?This would require you to either configure a new physical interface with the new public IP address range OR create a new subinterface with the new public IP addresses range AND then configure the LAN devices correspondingly to the chosen method on the firewall
    Do you want to use the public IP addresses DIRECLTY on the ASA OUTSIDE as NAT IP addresses?This would require for you to only start configuring Static NAT for the new servers between the inside/dmz and outside interface of the ASA. The format would be no different from the previous NAT configuration other than for the different IP addresses ofcourse
    Of the above ways
    The first way is good because the actual hosts will have the public IP addresses. Therefore you wont run into problems with DNS when the LAN users are trying to access the server.
    The second way is the one requiring the least amount of configurations/changes on the ASA. In this case though you might run into problem with DNS (to which I refer above) as the server actually has a private IP address but the public DNS might reply to the LAN hosts with a public IP address and therefore connections from LAN could fail. This is because LAN users cant connect to the servers OUTSIDE NAT IP address (unless you NAT the server to public IP address towards LAN also)
    Hopefully the above was helpfull. Naturally ask more specific questions and I'll answer them. Hopefully I didnt miss something. But please ask more
    I'm currently at Cisco Live! 2013 London so in the "worst case" I might be able to answer on the weekend at earliest.
    - Jouni

  • Using Two different drivers  simultaneously

    I want to use two different type 4 drivers i.e. one driver of ms-access and one of ms-sql server 7 simultanoeously in one java program.please tell me how can i do this ?

    i need to load two drivers for my java program. i need to connect to oracle database and count the no of rows and then connect to sql database and count number of rows.print them on command prompt.
    can someone simplify this code??
    package connectDatabase;
    * @author
    import java.sql.*;
    public class ConnectTo
         public void OracleDB()
              Connection dbconn;
              try {
                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                String connString="jdbc:oracle:thin:@SYS_IP:1521:oracl";
                dbconn = DriverManager.getConnection(connString, "uname","pwd" );
            catch(SQLException sqlex)
                 sqlex.printStackTrace();
            catch(Exception excp)
                excp.printStackTrace();
         public void SqlDB()
              Connection conn;
              try { 
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 
                String url = "jdbc:odbc:connectDB"; 
                conn = DriverManager.getConnection(url,"uname","pwd");  
              catch (Exception e)
                System.err.println("An Exception occured! " +e.getMessage()); 
    }

  • Uprezzing film timeline which uses two different codecs

    So I have my final film edit in FCP 6 which uses two different codecs...DVCPROHD 720p60 at 23.98fps and HDV 1080p24 at 23.98fps. There are only about 15 clips which are the HDV codec. My next step is to color correct in apple Color. So I did a quick test where I sent a couple clips of each codec, on the same timeline, into Color and back out into FCP, which seemed to roundtrip without any hitches...the only difference is that the DVCPRO clips came back as ProRes 422HQ 1280x720 and the HDV clips came back as 1920x1080...which is all fine. However, I do want 1080p (1920x1080) as my final output...for Bluray as well as DCP if my film gets picked up by a festival. So what I plan to do for my final output is export my completed Colored timeline to compressor and use ProRes 422 HQ at 1080p. My question is...since there isn't a specific 1080p ProRes HQ codec (like there is for DVCPROHD) but simply the "Geometry" tab in Compressor where you can change the 'Dimensions' to 1920x1080...is this how I "Uprez" my DVCPRO 720p clips to match my HDV 1080p clips?
    I just want to make sure NOW, that my workflow will be good all the way up to finishing, before I start sending sections of my timeline to Color...
    Thanks!
    David

    OK...you wanted a 1080p final, right? So why shrink the HDV down to 720p, and then blow it back up to 1080p? That's the point of doing both formats separately, and upscaling only the 720p...keeping the HDV at full size.  How noticeable will it be? Test to find out.  Personally, I'd do it my way. 
    And yes, upscale AFTER you color correct.  As for re-color correcting down the line...why? Color correcting is the final process...do it until it's right...why would you go back? And if you did adjust a couple shots, then just render those back out, and only upscale those and put into that final sequence again.  It's a small patch.
    >why is it better to send the DVCPRO 720p stuff for upscale BEFORE marrying it with the HDV 1080p stuff.
    because the HDV is already 1080. Scaling it down to 720, then back up will be TWO generation losses. Why do that?
    >my method of upscaling the 720p with the 1080p stuff at the same time seemed logical to me (the 720p is upscaled while the 1080p stays the same)
    But it doesn't...you first will be shrinking it to 720p...then blowing up to 1080p. And HDV is a GOP format without real frames, so the compression really pops when you upscale.
    >just want to know WHY your method is better??
    Because I tested this out..mixing 720p DVCPRO HD and HDV...and my method gave the best results.  Call it "experience."

  • How can I send email using two different email address that both link back to my one exchange account on my Ipad mini

    How can I send email using two different email address that both link back to my one exchange account on my Ipad mini? 
    On my PC I simply have a master return email address and use a POP for the secondary address.  Both are through the one exchange account without a problem.  I need to be able to do the same on my Ipad.

    Ah, I should have made that clear.  My domain didn't come from google.  It was purchased at and is hosted at dreamhost, but I haven't used their email servers in years - I just route everything through gmail.  I actually have a bunch of domains (with websites).
    Gmail has an option that lets someone with custom domains send (and receive) email through gmail using the custom domain once Google confirms proper ownership of the domain (to prevent spammers and such).  Gmail has a setting for "send email as" which allows gmail to be sent using a custom domain as the sender.  I'm pretty sure Apple's old mobileme had this feature too, but I didn't use it.

  • Use two different printer services in one web template?

    Hi!
    Is it possible to use two different help services for printing in the same web template (for the same table item)?
    Print1:
    <param name="HELP_SERVICE" value="HELP_SERVICE_PRINT"/>
    <param name="HELP_SERVICE_CLASS" value="ZCL_RSR_XLS_HELP_WINDOW_PRINT"/>
    Print 2:
    <param name="HELP_SERVICE" value="ZPRINTING"/>
    <param name="HELP_SERVICE_CLASS" value="ZBW_PRINT_HELP_SERVICE"/>
    I was thinking that you maybe could change the param name values for the "Help_service" and the "help_service_class" at runtime using the properties for the table item, so that you could choose which one to use, but I havne't been able to do that so far.
    Does anyone have an idea?

    This is not a problem. Just put the print service for the print to excel on an object other than the table web item. As long as these print services exist on any web item, you should be able to invoke them. I've tested this with putting the "Print with Excel" service on the Navigation Block Web Item and the other print service on the table web item. Hope that helps!
    Prakash

  • How to use two different network cards on RT?

    Hi everyone... I'm currently working on a project where I have to deal with the issue mentioned in the thread's topic: I have a PC with RT LabVIEW that has to be able to establish network connections using two different network cards. One will be used to connect via TCP/IP with a host computer that will show the data transmitted through shared variables; the other will communicate with another PC through Modbus protocol. The key is that each communication is done through a separate network card.
    So far I haven't been able to figure out how to configure both things to happen. Does anyone know how to do this? Any tips will help.
    For the RT communication I'm using a standard RT project, with the RT PC being given one of the IPs, and for the Modbus part, I created an I/O server with a master and a slave. Separately everything works fine, but when I get them together it simply won't work.
    Thanks for your help!
    Solved!
    Go to Solution.

    Sorry it took me so long to answer, I've been busy lately....I've found a solution to the problem I mentioned, and just in case anyone has similar problems in the future, I'll shortly describe what happened.
    As Caseyw suggested, it was necessary to enable both network cards through the Measurement and Automation Explorer. The cause of the connections malfunction was actually that I wasn't using the "right" protocol for the Modbus communication, which ran on the secondary adapter. The solution was to use the URL protocol with the correct path on the field, addressing the right IP address. To avoid making this post a mixture of topics, I won't elaborate futher, but I got the gist of it, so if anyone is having similar problems whether it is working with several network cards or with Modbus communication protocols, feel free to contact me, I'll be glad to help.
    Thanks

  • SBO - How to use two different Stock Account within the same Item Group

    Hi,
    I'm currently stuck within one of my implementation.
    I'm deploying the same solution worldwide which worked pretty well until now. All the items are connected to an item group, with a unique GL account, supposed to book at the same time the good receipt and the good issue (Balance-Sheet Account = 14xxxxx).
    My new unit is willing to use two different GL accounts when performing its stock entry (let say 14xxx10) and another GL account for the good issue, let say 14xxx20.
    Do you have any clue so i can please them and keep using at the same time the item group ?
    Thanking you in advance
    Stephane

    Hi,
    In fact, we use the GL account as the HQ Account (Reporting Account) while the "Export Code" will be used to store the local GL Account (greek account).
    As such, we can, somehow handle two different chart of accounts.
    In my reporting, i'm only using a single GL account for stock movements, while my greek counterparts want to handle two different accounts.
    Threfore, i have only two solution since there is normally a one to one relationship between a HQ account and a local account that are :
    1 - Duplicate the HQ accounts
    In that case, i do respect anytime the one to one relationship. I've got one HQ account for one local account. But how can i put this since i can only handle one single stock account.
    2 - I keep my single stock account like this but i won't be managing the possibility to get two different Export Codes.
    Regards
    Stephane

  • Can you use two different apple ID's on one Ipad?

    I would like to use two different apple id's on one IPAD.  One apple ID is for work and the other is for personal use.

    Read this.
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
     Cheers, Tom

  • HT204053 If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    If I have set up my Mac with two different users,  can I use two different Apple IDs on the same Mac?

    Each user account may have its own Apple ID.

  • Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    The link is to a discussion started on 12/18 in the FiOS Internet forum.  Here's the link I get now, however it is different than the link I pulled a few hours ago.  If this system changes the link again, it may not work.
    http://forums.verizon.com/t5/FiOS-Internet/Frustration-and-just-confused-with-internet-help-please/t...
    You can also look for the topic, "frustration and just confused" in the FiOS Internet forum.
    Here's a link that is in the thread that gives more detail.
    https://secure.dslreports.com/faq/15984
    Good Luck!
    P.S.  "Copper Contributor" is my "rank."  gs0b is my user name.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Can I use two different itune accounts on one computer?

    Can I use two different itune accounts on one computer?

    1. Give her a separate user account on your computer. If you have a backup copy of the library, you can restore it.
    2. If you encounter a 90-day waiting period, click here and ask the iTunes Store staff if they'll remove it.
    (125941)

Maybe you are looking for