Which is better JDBC or JTA with DAO pattern

Hi,
I have developed DAO's for each of the tables in MySql database having around 10 tables, should I go for JTA or JDBC for transaction handling ?
What is a better approach for transactions spanning multiple tables like for example deleting a master record must delete all child records? Accessing data from 2 or more tables with select statements?
Any examples on the same?

If it's all in the same database then it's still local.
Distributed transactions use a transaction manager (TM) and things called resource managers (RM) to manage transaction. The TM co-ordinates with all the RMs and the RMs use local transactions to communicate with whatever transactional system you are using. If you only have one database you only have one RM - in which case the TM is co-ordinating the RM with itself. If this is the case you don't need the TM and the RM can be bypassed by just configuring the transaction locally.
This still applies if you are using two separate systems that are not involved in the same transaction.
Essentially it's down to the different methods you use to get a connection - each connection method (not call!) will have it's own RM.

Similar Messages

  • Which is better(generally): MacBook Pro with Retina Display or MacBook Air?

    Which is better(generally): MacBook Pro with Retina Display or MacBook Air?

    Better for what? These are two very different computers. Tell us which things you are looking for and we may be able to help you. Examples - weight, standard RAM and flash memory available, video resolution, etc.
    See the technical specifications articles for each -
    MacBook Air.
    MacBook Pro retina display.
    Best of luck.

  • WHICH IS BETTER JDBC OR SQLJ

    HI
    CAN SOMEBODY EXPLAIN TO ME THE DIFFERENCES BETWEEN JDBC AND SQLJ AND WHICH IS BETTER???
    THANK YOU

    Well, SQLJ has been desupported in 10g, so I would strongly hesitate to do new development there.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Which is better - 1 HTML page with multiple applet panels or 1 applet with

    Hi friends,
    This is a critical doubt which decides the future of my project.
    I have implemented a graph in which an html shows 3 panels on the screen via calling that applet 3 times.
    Would it be good if we call that applet only once and modify the applet to show 3 panels?
    Thanks in advance

    hai paskal,
    well having 3 panels in a single applet will not make a big difference when compared to having 3 diff applets with 1 panel each ...
    what matters most is how u want to have ur web page ...
    if you have 3 different applets then you can place them in a position according to ur wish ...
    if it is one then all of them will be together ...
    Peter

  • Which is better wifi or wifi with celluar?

    Daughter recommended not to get wifi with celluar. Just the wifi for the Apple ipad air 2 that I am thinking of buying. Read the different between the two just was not sure what to do. Any recommendations?????

    Is it safe to use public WiFi......my son-in-law said it is fine he uses it all the time no problem. He is a business man. However, our son who is a techie person said never to use public Wifi because it is not safe and could lead to problems if someone accesses your computer. Any input????
    We want away to Puerto Rico. They hotel we were staying at had free Wifi....saw lots of people using it in the lounge area but I declined cause of our son's warming.....
    any input from anyone?????

  • New Macbook Pro...Hard drive vs Flash...which is better?

    I'm looking to upgrade my '07 iMac to a new Macbook Pro. I'm wondering whether to get the hard drive or flash drive....any suggestions as to which is better? Also, going with the Retina display I lose the DVD drive & would have to go with an external drive...is that display worth losing the drive??

    MarcusBenz wrote:
    is that display worth losing the drive??
    No. It's power hungry and it has issues.
    I'm wondering whether to get the hard drive or flash drive....
    Flash drive will give you less problems and is shock reistant, but the data you store on it can be accessed even if deleted.
    There is a device from Cellibrite that can be used to gleam the password and retrieve all data of a flash based cell phone, iPad etc, even if deleted. So natually flash based computer will be added to the list and Apple is cooperating to do this at the request of the government for fast access/copying at Customs etc, regardless of Filevault.
    So a traditional hard drive offers a chance to really delete data, provided the 7x erase (far right selection) is used.
    It also seems Apple has removed the 0x and 7x descriptions from 10.7, 10.8 Disk Utility, just giving you secure and more secure options, not telling you the specifics because 7x is Department of Defense level erase, meaning special magnetic instruments can't be used to recover data off a 7x erased hard drive.
    going with the Retina display
    Also you can't open it up, add RAM, remove/replace storage or fix it.
    After three years when your AppleCare is up, you have to toss the Retina as nobody can repair it.
    Unlike the 15" antiglare, it can go on a lot longer due to third party repair options, new drive, keyboard, more RAM, new fans etc.
    Also the screen is viewable in nearly all conditions, unlike the Retina's glossy display.

  • Advice Needed... which is better?

    Hello...  I am not a computer 'genius", but not a complete "computer idiot' either.  I have a question, and then I will give my reasoning, because maybe it matters in the decision.
    Which is better, a PC (Gateway) with 6GB Ram, i5 processor, 1.5TB HD  or an Imac 4GB Ram, i3 processor, 1TB HD??
    Basically, I have had a Dell 2GB Ram desktop for 7 years, which suited me fine. I ran CS3 on it with no problems.  I recently had a virus, and had to swipe my computer, and when I re-installed Adobe, my Premiere Pro will no longer allow me to edit properly (audio plays fine, while video lags and skips around during viewing).  I know it is time to get a new computer either way, and a few friends have told me that I really shouldnt be running Premiere Pro on 2GB of ram, and suggested at least 6GB.
    I found a Gateway for $650 on bestbuy site with the above specs... but then someone I know, told me I would be better with an Imac with the specs above.  Is that possible that a 4GB mac would run better than the 6GB PC?
    also..  will CS3 work on the Windows 7 PC, but if I get Mac system I will be using CS5.
    I use Photoshop, and Premier Pro for simple music video editing (5-6min videos).  I do not do anything major..but want to at least be able to view what I am doing.
    thanks

    While I don't agree that Macs are as inferior as some here claim, for your purposes an i5 iMac is certainly inadequate. The i7 quad core iMac is something else again; it can take up to 16GB of RAM, which is plenty for most applications. The particular i7 CPU in the iMac is also quite capable with a number of performance enhancing technologies on board. The big problem with the iMac, though, is that it comes with only one internal HDD; there is an added SSD option, but in my opinion it's still too expensive. For video you should have at least two internal drives and preferable three or four, as others here have said. External drives are generally slower, even if you use a FireWire 800 port. Sometime this year Apple may add a Thunderbolt port to the iMac, as they have to the MacBook Pro. This will be a game changer for external media, with unheard of flexibility in connectivity and the performance of Fiber Chanel at an affordable price. There are already external RAIDs coming to market with Thunderbolt connections. However, there is no date certain for such an iMac refresh.
    For even semi-serious video you need some heavy iron, whether Mac or PC. There are some great Mac Pros available now with up to 12 cores on two 6 core Intel Westmere processors; however, even though I am a Mac fan, I'm sure you can build or get a BTO Windows PC with comparable specs for less. I suggest a minimum of four modern CPU cores to handle multi-threading and multi-tasking chores. At least two fast internal hard drives, four is preferable. And, of course, the more RAM the better, though this too will raise the price. You may not get the maximum RAM right away; the important thing is that the motherboard be able to support substantial RAM upgrades so that you can grow into it.
    The challenge, even with PCs, is that a number of core technologies are changing right now. SixGb/s hard drives are becoming available but it would take a high-end and relatively new motherboard to support them properly. So, besides the question of which computer to get, you have to consider when to get it. If you need it right now, that narrows your choices somewhat because you cannot wait for these new technologies to come on line.
    The most important thing to consider, though, is not to cheap out. Presumably you will be doing some real work on it, so think of this computer as an investment in your own future. Buy the most computer you can afford and a little bit more. Oh, and there is a new Version of Final Cut Pro coming out soon that will be Intel only and 64 bit capable, so Apple is moving ahead on this front, too. Remember, not all of Adobe's CS apps are 64 bit yet either. It's just one more technology in transition.
    One point I will concede, however, is that Windows has better video drivers than OS X. Even on a Mac, running Windows in Boot Camp delivers better video frame rates than the Mac versions of the same apps running in OS X. So, for reasons of cost and better video support, a Windows PC is probably the way to go. PCs also have it over Macs in the number of options available. If you are not a techie yourself, I agree as well that it is probably a good idea to have someone who is built it custom for you. Of course, with a custom PC you won't get the kind of warrantee that comes from Dell or Apple, but the person who builds it for you will probably be able to service it as well.
    Ultimately, of course, your budget is likely to govern the kind of PC you get more than your preferred specs. But even with Windows PCs you get what you pay for. A cheap PC is just that, a cheap PC. Inexpensive PCs are affordable because they use inferior components. Keep that in mind.

  • Which is better for phone protection?

    Simple question, just looking for some advice from current owners of this phone.  I will be getting this phone within a few weeks and am planning on buying something so I have it for when I get the phone.
    Which is better: a flip case with no screen protector, or a standard case with one?  I don't want to get the screen scratched (it happened on my current phone despite the Gorilla Glass), and I tend to put the phone in my pocket with my keys.
    Also, are there any recommendations for a case/screen protector?  I haven't chosen a screen protector yet, but am looking.  Ideally, I'm looking for a screen protector that feels like there's not one on the screen, won't interfere with the stylus, and won't interfere with the quality of the screen.
    Here's what I'm currently looking at on both sides for a case:
    Flip Case (I looked at the official Samsung one but it doesn't appear to completely protect the phone.)
    Standard Case (Open to other suggestions but this one seemed to have the best combo of protection and price.)

    Some educational site are behind the times.  At times, they require software that isn't available on the ipad.  You should visit an apple store and try the educational site with the ipad.  Considering that you have an iMac, I'd lean in the direction of the iPad.
    Robert

  • Which is better ODBC or JDBC

    dear all,
    after upgrading most of our servers from cf5 to CFMX7.1, it
    is now time to start working on some performance strategies for the
    upgrades. currently we went with the ODBC connector in CFMX for
    testing purposes. one of our server will occasionally lose the odbc
    and we have to reboot the server to get it rolling again.
    this leads up to the question of which is better for
    performace (speed, less process inducive) and realiability. ODBC or
    JDBC with CFMX7.1
    thanx
    sean

    I would concur ... as CF is java based, it will run better
    with JDBC rather than having to interpret a bridge between the 2.
    There are a couple of very remote instances where ODBC may be
    required, but you will have much better results with JDBC.

  • Which is better? 2.5ghz dual i5 with 16g ram or 2.3 quad i7 with 8g ram?

    Which is better? 2.5ghz dual i5 with 16g ram or 2.3 quad i7 with 8g ram?

    You are welcome!
    If is best to buy from a reputable supplier that actually test RAM in Mac's and guarantee there upgrade kits.
    The two most recommended here are OWC and Crucial

  • Which is better mac book pro or Mac book pro with retina display?

    which is better mac book pro or Mac book pro with retina display?

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro
    If or when upgraded to the max, the Retina is a good value.
    But talk to other users on the notebook forum.

  • Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?

    Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?
    change in sharepoint scripts not require compilation but anything else?

    Yes, PowerShell is great, since you can quick change your code without compilation.
    SP admin can write ps scripts without specific tools like Visual Studio.
    With powershell you can use cmdlets,
    which could remove a lot of code, for example restarting a service.
    [custom.development]

  • Which is better, many PXI cards or fewer PXI cards with more SCXI cards?

    I have a pretty basic question.  Which is "better", using multiple PXI cards for analog inputs or a single PXI card and multiple SCXI cards?  For example, if I have say 100 channels to sample (all at the same rate), I could use 2 6225s at 80 ch each.  Or I could use 1 6220 and 4 SCXI 1100s (32 ch each).  What are the pros and cons with either approach?  Keep in mind sample rate probably isn't an issue (less than 1 kHz) but it is the same for all channels.
    Thanks.

    The pros/cons will depend on your application now and in the future.  I recommend contacting your local NI sales representative.  Synchronizing across a PXI system is easy to do via the backplane.  There are PXI/SCXI combo chassis available, you could use PXI multifunction DAQ cards and then SCC for signal conditioning for thermocouples for additional functionality later.  There are many possibilities that may be best discussed with your sales representative.
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • Which is better A-A or A-S with IPMP link based?

    Hello.
    I'd like to know good configuraion with IPMP link based.
    I know there are 2 options, Active-Active and Active-Standby.
    Which is better?
    Actually I think A-A is better. Because if I use A-S option, you can not see the up status with secondary nic.
    Thank you for your help ;)
    Regards,
    River Lee.

    USB is better and faster

  • Which is better with a NAS: using Sharing or Library location?

    So I've got my brand new NAS up and running (Netgear ReadyNAS 104).
    It has a Music folder with an iTunes server so I can use it as a Shared Library.
    But I can also point my iTunes to the NAS and use the library directly from the NAS.
    So which is better? Using the NAS as a Shared Library or use the NAS as the primary Library?
    I want multiple devices (primarily Apple devices, but perhaps also a Windows laptop) to be able to use the media.
    What about library management? Like when ripping an audio CD. When I use the NAS as a shared library, do I need to manually copy the CD to the NAS iTunes share and have iTunes re-scan?

    Well... I downloaded LibreOffice and Writer2ePub and openned my Atlantis doc in it and converted to epub file. The good news is it didn't cost a dime.
    The bad news is one image is now tiny which is odd because it was 600 dpi so I would think it could be displayed larger, not smaller but maybe the epub conversion downsizes a higher res image (some are 300dpi).
    The cover image shows up in iBook as a wide and short image. The cover itself is tiny and then it just fills in black for the rest of the screen width. I used a large, high res image.
    Then there was something with the TOC. It created a good TOC but then there's another page with a none hypertext version and a big rectangle error message and the TOC only shows about half of the chapters.
    There was some advice on the internet about centering images in iBook. It seems that iBook doesn't recognize text justification coded in a document. So you have to embed another element on the same line as the image (html stuff) and give it a center alignment tag. I haven't done any html ebook stuff so I may not be explaining that the best way possible.
    So, I'm going to take another look at my iBook Author version and see if I can live with that. If not I'll probably try Pages although I don't know what other problems I'll run into. Fun, fun, fun

Maybe you are looking for

  • When Ripping CD, iTunes Displays Wrong Artist & Wrong Album

    Thanks for looking at my post! When I try to rip a CD, iTunes thinks it's a different CD. Even when I change all of the song tracks, artist, and album name . . . I can't change the time. Of course the two CD's have different song lenths, so the songs

  • Pagefile for SAP Erp2005 and Solution Manager 4.0

    Hi all, I've installed SAP ERP2005 and Solution Manager 4.0 on the same server with Windows 2003 Standard 32bit. The RAM on this server is 3325MB. How many paging file I must configure??? At the moment I configured the pagefile size as defined in the

  • Currency option in fbl1n/fbl5n/fk10n/fd10n

    Hi i am posting doucment in local currency as well as in USD and EUR in my vendor and customer account. but in FBL1N / FBL5N/ FD10N/ FK10N i am ONLY able to view the statement in local currency. wheras i want to view only those transaction which are

  • A question about multiple computer syncing

    Hey i'm getting an iphone soon, and here's my situation. I have an apple ibook, and an imac G5, which both have data and information (songs, videos, contacts, etc.) that i'd like on my iphone. The itunes running on both computers use the same itunes

  • Migration Questions! (fstab, bootloader,networking)

    Background My current laptop is a Toshiba R700, and it's on its way out unfortunately. I've been using Arch on it for a while, but I still feel like this is a beginner question. I am planning to just swap the hard drives since I cheaped out and order