Implement Transactions best way, in my application

Hi all,
I 'm currently developing an application, 3 - tire one, where its business services are exposed as web services, and those web services directly invokes DAO operations for data base operations.
I have a question, what is the best way to implement transsactions in my application.
Do i need to implement transactions in both Service layer as well as DAO layer ? if not is it enough to implemnt in only one layer?
What are the disadvantages im facing if i implement TX in both layers?
What are the techniques i have to follow, i mean, are there specific techniques to implement service level transactions compared to DAO transactions?
can i use spring frameowrk? with AOP support?
I'm really confused abt the way i should handle transactions, so ur reply will be a huge help for me... thanks in advance
Thanks a lot
saj
PS : if this is not the correct forum to post this questions, could you please let me know the forum i should post this instead
Edited by: sajhak on Jan 2, 2010 1:39 AM

First step, what makes you think you need transactions at all. What business rule drives it?

Similar Messages

  • What is the best way of accessing application module without page binding?

    Hi All
    I am using Jdeveloper 11g R2 (11.1.2.3) & Weblogic 10.3.5.0
    What is the best way of accessing application module without page binding?
    In my application after user authenticated from LDAP
    I need to read some information from database and set my menues.
    Thanks
    Mohsen

    Hi,
    if you don't have a binding the I am not sure the binding context is created. Anyway, try
    BindingContext.getCurrent().findDataControl("name here as ID in DataBindings.cpx") and see if it returns a valid instance
    Frank

  • Best way to transfer application from Test Environment to Dev. Environment

    Hi All,
    We are try to create an application on Hosted Environment similar to www.apex.oracle.com.
    We got two work space
    1. app_production
    2. app_test
    My application will have 200+ tables and many other supporting object.
    My question is in hosted environment what is the best way to copy application from test to production environment (P.S In hosted environment I can uses SQL Developer / TOAD or any other tool .. its similar to www.apex.oracle.com)
    With my present workaround I have to use
    Go to Utilites -> Generate DLL
    and then export this and application..
    The main problem is 200+ table and associated structures .. its very difficult to keep track ...
    Can anyone suggest me any good way for HOSTED ENVIRONMENT

    Hi,
    Just an idea:
    1 - Do a DDL export of the source env
    2 - Do a DDL export of the target env
    3 - Use some tool to compare those files and highlight the differences. There are even some tools that are smart enough to generate SQL statements to apply the differences in the target env.
    I hope this helps.
    Luis

  • Best way to migrate Applications across environments of different versions

    Hello Gurus,
    Source EPM Environment - EPM 11.1.1.3
    Target EPM Environment - EPM 11.1.2.2
    What is the best way to migrate applications for Planning , Essbase , HFM and also the related reports from 11.1.1.3 to 11.1.2.2 .
    Any help will be highly appreciated..
    Thanks
    HyperEPM.

    I tried with upgrading the application and it was done pretty smoothly as compared to the LCM import export method.
    Now what would be the feasible way to move all the applications when following is the scenario and we need a minimum downtime.
    1. Move from EPM 11.1.1.3 to EPM 11.1.2.2
    2. DB used to configure EPM 11.1.2.2 should be fresh and not the existing one.
    3. We want to move all the applications across to EPM 11.1.2.2 on the freshly configured EPM 11.1.2.2.
    4. Move all the applications intact across the version.
    Thanks
    HyperEPM

  • OIM 9031: Best way to handle application/test account on target system.

    Hi Guys,
    I am wonder what will be the best way to handle application account created in target sytem . i.e. I have target system Active Directory and on non-trusted reconciliation, I also fetch application/test account which not going to match to any existing user ,but should be capture for reporting or any future action .
    Any input or idea is most welcome !!
    Cheers,
    Ankit

    There are basically two approaches to handle service accounts.
    Either you model them as a free standing RO very similar to a normal AD account or you use the built in "service account" and associate the account with an already existing AD RO instance. I haven't used the "service account" approach in any customer project yet so I can't really comment on the details of that approach (hopefully someone else will be able to do that).
    Are you sure that you have service accounts in AD that you can't attribute to a specific users? Most organizations require service accounts to be linked to a user or a group of users so that the need for the account to continue existing can be verified by a human. Having live accounts in your AD that no one can say what they do or why they exist is normally a very scary thought for most organizations.
    Hope this helps
    /M

  • What is the best way to delete applications?

    I am told that my Mac came with everything I need in the way of programs for basic functions.  What is the best way to delete applications making sure there are no threads left in Library and other places?

    Yes, but not always. An example of what I call "System" files/folders would be Quicktime or things like pre-installed print and scanner drivers. You have to be pretty confident to go rummaging through files in either /System or /Library. Most of the time there is no reason to be in there.
    An example of a file that is in those system folders, that does not come pre-installed as of Lion, is Flash plug-ins. That gets installed in the /Library/Internet Plug-Ins
    But your average App downloaded from the MAS, most of it's files will be in the User Folder   ~/username

  • What is the best way to deploy application that uses web services?

    Hi all,
    I'm having some problems figuring out the best way to deploy our app now that we've switched over to using web services.
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like.
    Here's a little background:
    We have a large PowerBuilder/Oracle application. The db consists of over 500 tables and the client consists of several thousand PB components. A user creates "transactions" which contain a series of "sub-transactions" within. Most of the data is collected and stored locally in the client in a series of datastores. When the "finalize" happens, the records are validated and sent to the database.
    We are in the process of moving each of the subtransactions (currently in the PB client) into subPROCESSES on a java project. We are using the JAX-WS framework to develop the web services in Netbeans. These web services aren't much more than remote xml as the messaging technology. For writing data back to the database, we are using the Java Persistence API to function outside of an EJB container but will shortly be migrating to the Glassfish application server to use several of the EJB container frameworks including the EntityManager.
    We haven't attempted any type of deployment and are unsure of where to start. Any suggestions would be so helpful and appreciated!
    Thanks!
    Edited by: doubleEspresso on Jan 10, 2008 8:06 AM

    >
    I'm fairly new to Java and web services. From what I understand, JNLP and WebStart are methods to deploy Java clients to users and not for creating war files and the like. >Correct, while Java Web Start has 'web' in the name, it has little if anything to do with web applications - certainly not providing much toward their installation. It is for launching rich client GUI based (AWT, Swing, SWT..) applications onto the end-user's desktop.
    There are some parts of JWS that might seem peripherally useful to the installation of a web-app., but it is really not a 'good fit'.
    >
    ..Any suggestions would be so helpful and appreciated!>You might try the forums for the 'web tier' APIs.
    <http://forum.java.sun.com/category.jspa?categoryID=20>
    Or perhaps the forum 'Java Technologies for Web Services' (under 'enterprise technologies')
    <http://forum.java.sun.com/forum.jspa?forumID=331>
    This one in 'BigAdmin' seems particularly relevant, 'Set up and Deploy'
    <http://forum.java.sun.com/forum.jspa?forumID=550>

  • Best way to remove applications and unneeded files

    I have an Imac running slow. Duo Core processor. 4 mgs Ram. Disabled Java in Safari. Getting all my photos off the computer. Safari runs slow. Beachball forever. Have removed past Mac Keeper. Want to know the best way (Until I can add more RAM, if I can, to speed up my mac. I have had to purchase Adobe Cloud to replace Photoshop etc and want to remove all files on my computer not needed for Adobe and any other files slowing down my computer. Also, need Safari to be working. I wait for ever for pages to load and to access Gmail. Want to defragment my hard drive as well.
    Any suggestions would be greatly appreciated.

    Empty the trash in the Dock as well as iPhoto’s trash!
    Open up your application folder & go through all your apps.  Trash all the apps you no longer want and/or use.
    An easier way to do this is to open the Application folder in list view & press the Command+j keys.
    In the the dialog that appears, click the "This Window Only" button & the "Calculate All Sizes" check box.
    Wait a bit until your file & folder sizes have all been calculated, then click the "Size" column to sort your apps from the fattest to the most anorexic.
    Get rid of all your photo files you don't want and/or need.  Same goes for those pics off the websites you downloaded (gifs, jpegs, etc.).  Or transfer/move them all to a photo/movie storage site like ImageShack and Photobucket, 2 of the most popular  FREE  storage sites.
    Get rid of all your video & music files you no longer view and/or listen too.  Especially, if you already have the actual CD/DVDs or you can later redownload from a website.  Or transfer them all to a FREE video/movies and/or music storage site.
    Use Spotlight to make sure you got rid of everything.  You can even trash directly from Spotlight!  Better yet, download this FREE software called Find File.  This app puts Spotlight to shame (works w/Mountain Lion).
    Drag what you don't want and/or need to the trash.  Better yet, download this neat little shareware app *demo* called AppZapper.  It basically does all the work for you by not only trashing the apps but the apps preference files, caches & all its associated files.
    Another software that does the above is AppDelete.  Best of all this software is free!
    Burn what you want and/or need onto CDs or DVDs. Not everyone has the  luxury of purchasing an external HD and/or the system requirements for iCloud to store their "stuff.”
    Dropbox is a free storage utility to check out.
    You can check with your ISP to see if they offer *free* storage space.  Most if not all do now-a-days.   There are thousands if not millions of *free* storage facilities on the web also.  Use your favorite search engine to search them out as they come in different storage sizes to fit your needs & wants.
    Check for duplicate fonts.
    Applications>Font Book
    Select “All Fonts”
    If you see any “black dots” next to any fonts this mean you have duplicates and/or multiple versions of these fonts.
    To clean this up, select a “black dotted” font or the Apple + *click* to select multiple dotted fonts;
    Edit>Resolve>Duplicates.
    What the above does is turns off the duplicates & multiple version fonts.  Not delete them.
    More than likely the “extras” were installed by other programs and/or other users.
    Clear out font caches
    Use FontNuke.  It does all the work for you.  And, best of all it’s *FREE*.
    Printer Drivers
    Get rid of all the printer drivers you don’t need & use except the ones for your *current* printer(s)/scanner(s).
    HD>Library>Printers Folder
    If you accidently threw something out that you needed for your printer/scanner it can be easily obtained from the manufacturer’s website and/or from the CD that came w/the printer/scanner.
    Garage Band
    Has about 1GB of loops stored.  Get rid of some some them.  You surely don’t use, like and/or need them all.
    HD>Library>Audio/Apple Loops>Apple>Apple Loops For GarageBand
    Or just get rid of the Garage Band app altogether if you don’t use it.
    Get rid of extra languages
    Strip your computer down to your “native” tongue.
    You can do this with a *FREE* utility called Monolingual.  Another app that apparently does all the work for you.  I’ve never used it.  However, a lot of users here swear by & recommend it highly.
    However, there is a warning for *native English speakers*. Make sure you keep BOTH English and English (United States).
    Other Resources:
    HD Space Checkers:
    Disk Inventory X (FREE)
    WhatSize (SHAREWARE)
    OmniDiskSweeper (FREE)
    GrandPerspective (FREE - donation)
    ==================
    Mac Performance Guide
    Slimming your hard drive
    Rule of thumb: You should never let your hard drive get to where you have only 10-15% of space left.
    ===============
    Quick fix
    How To Quickly Free Up Hard Drive Space on Mac OS
    http://www.youtube.com/watch?v=fO-mlLApEuk
    =================
    Suggest you post in the Safari forum for your beach ball problem if the suggestions mentioned in the Troubleshoot the spinning beach ball article are of no help. 

  • What is the best way to remove applications?

    I would like to remove unused applications (iChat, Dashboard, iCalendar and so on...)
    I am running audio software and using CPU quite heavily.
    What wold be the best way to remove these types of applications completely and have as minimal running in the background possible??? (I have already turned off Bluetooth, Airport etc...)
    Should I install removal software or just send them all to the Trash bin?

    None of those applications are running unless you launch them. Dashboard widgets only use CPU time and RAM if they are running. If you quit all widgets in the Dashboard then there's no memory footprint or use of the CPU.
    If you don't want anything but essentials running then don't launch any applications and remove any Login Items from Accounts preferences.
    Just because an application is installed on the computer does not mean it is running unless you launch it or configure it to launch automatically. So there is no need to remove any of these applications or utilities.
    You will find some good books on Macs and computers in general at your local bookstore. Your question suggests that you could benefit by reading a few.
    As for how to uninstall applications that you have installed see the following:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are also several shareware utilities that can uninstall applications:
    AppZapper
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • What is the best way to update applications on deployment computers?

    Hi everyone,
    I have a development computer that is running LabVIEW 2012 where I create projects. I then build applications and installers which I load on deployment computer that do not have LabVIEW installed.
    When I make changes to my VIs on my development computer, the rebuild the applications and installers and re-install them on the deployment computers. All the computers are on the same Network. Is there a cleaner and easier way to do this?
    P.S. Is it necessary to have all the VIs and sub-VIs saved on the deployment computer? As of now I save the folders containing all the files on these computers hard drive as well.

    Put your installer in a central location and install each deployment from the server location.  Or you could look into Deploy by Wire Bird Labs.
    The deployment computers do not need the VIs.  They just need the EXE you built, the Run-Time Engine, and any support files you may need.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • What is the best way to find application issues as an email alert

    Hi,
    We have hotel booking system which is developed as a web application. Suppose any hotel booking failed means we have to check manually in the database.
    So now we are planing to build a automatic system, if any booking failed it will gives mail alert.
    We are planning to build a console application and we deploy this console application as windows service in the production server.
    Is there any better options for this scenario,  Please let me know.
    Thanks in advance.
    Thanking You, Nagendra.

    We are planning to build a console application and we deploy this console application as windows service in the production server.
    A console application is not a Window service. Yes,  you can use a Windows Service for this, but it's an entirely different type of a program that is constantly running, which would probably be better for you.   
    But there is nothing wrong with a Console exe or Windows form exe. With both, you can set the project's setup type to point to the Program.cs. In the Windows forms project, you would rip out everything about the form.   
    There are articles on both exe solutions on how to do the above and change the startup, and either way it would be a solution you can use as scheduled running program using the Windows O/S Job Scheduler.
    You have to do something in the Web application to queue the messages by either dumping them as text files to a file share, using MSMQ, or MS SQL Server Service Broker Message Queue. You would have your email program go to the staging area, get the text
    messages and email them. You may also want to think about archiving the messages.
    You have to email some kind of way. If you have a MS Exchange Server and Outlook, the you can use the Outlook objects in C# to email the messages.
    But probably the simplest thing to do is use the MS SQL Server.
    http://www.sqlservercurry.com/2008/02/how-to-send-email-using-sql-server-2005.html
    The email traffic you are talking about is miniscule or at beat nothing traffic to SQL Server, just call the sproc from your C# code. :)
    As for your little email program, you may want to use Eventlog to log message about the email program activates, or you can use Log4Net, which has a tutorials for Log4Net.
    Heck you can make Log4Net send emails, which is something else you may want to consider in your Web application. :)

  • Best way to migrate applications from Lion to Snow Leopard?

    Hello! own a mid 2011 MacBook Pro and upgraded to Lion back when it came out. I've now realized that Lion and CIFS network drives don't get along well. I want to downgrade back to Snow Leopard. I didn't have any Time machine back ups or anything like that so I believe I have to do a fresh install, this shoudln't be a problem as I have a 6 TB FreeNAS box to back everything up to. My question is about software. Most of the software I have on my computer is free, but some of it, namely the Adobe Design Suite Standard, Quickbooks, and a few other photo/business related pieces of software have been purchased. Is there any easy way of reinstalling them? I guess what I'm asking is, how can I back up my software? Maybe a better question is how do I uninstall software in such a way so that when I reinstall it later it won't give me an error saying the serial number has already been used.

    Downgrade Lion to Snow Leopard
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.
    You will need to reinstall your third-party software.

  • Best way to implement application level persistant objects?

    I'm designing a J2EE application and want to create some objects that represent lookup tables in the database. I would like these to be static objects that get created either at application startup or the first time they are called and remain in application scope globally for all users/sessions. These are objects that contain lists used for drop-downs/listboxes. I don't necessarilly want to take up unecessary memory
    and take a performance hit for each session by creating them new for each session. The question is what is the recommended design for this scenario? Should these be implemented as static Stateless Session beans with an application scope? Are there any examples on the best way to do this in J2EE?
    Thanks.

    You can simply (and properly) implement the Singleton pattern. Then multiple threads can all query the cached reference table values in the Singleton. Now, I know, that Singletons and J2EE are supposedly no-no's, but sometimes the easiest and simplest solution really is the best one. Perform the database query at startup in a static initializer. Then ensure that you do not have mutator methods (e.g., removeXXX(), setXXX(), addXXX(), etc.) Only provide accessor/getter methods. If you want to be able to refresh the cache without restarting the server, you will have to think about race conditions. But if you are implementing a vanilla cache, I would go with a Singleton.
    - Saish
    "My karma ran over your dogma." - Anon

  • Best way to implement a standard layout across application

    What is the best way to implement a standard layout across the application?  For example, I am converting an HTML/ColdFusion site to Flex and I need to keep the look of the existing site in the new Flex app.  I need a standard layout on every screen in the new app with a standard header, footer and left nav bar.  Do I need to add that code to every screen in the app or can I just create on layout file and call that into every screen?  Thanks!

    There a few that will help you, look for Form and validator.
    Sincerely,
    Michael
    El 16/05/2009, a las 14:01, lee704 <[email protected]> escribió:
    >
    Thanks.  Are there sample data entry apps in the Tour de Flex samples?
    >

  • The best way to implement business logic to a .JSP ?

    Hi experts,
    I want to implement some business logic to a .JSP file wich is in my modified
    <b>com.xxxNew.portal.usermanagement.admin.pa</b>r file!
    For examle creating different roles for useres by registration dependently what they inseret in the registration.jsp!
    What is the best way to do this? I have tried out to create a stateless session bean for this. Is this the right way?
    Can someone give me information how can I access this bean from my JSP (.par file) and how can I upload it to the portal?

    Hi,
    Here is the document about Calling J2EE Applications from Portal Applications:
    http://help.sap.com/saphelp_nw70/helpdata/en/42/9ddf20bb211d72e10000000a1553f6/frameset.htm
    So in your JSP do the lookup of your EJB.
    I do not think using EJB at this level is really good, as you do not deal with DB, security and transactions in your code.
    http://www.jguru.com/faq/view.jsp?EID=126400
    Why not just use a portal component like JSPDynpage for this purpose?
    Greetings,
    Praveen Gudapati

Maybe you are looking for

  • Loading a jar via a custom classloader

    Hi, I have written a custom class loader that allows me to load a compiled java program as a collection of class files at runtime. This is nice however I now need to consider the runtime execution of more complex java programs that have custom librar

  • BW system not receiving Idocs from R/3 system

    Hi all, I am having a problem with my BW system. What happened is that we deleted logical systems in R/3 and then recreated them but now in BW we can't display received data. We checked using rsa3 extractor checker and the data is available in R/3 bu

  • Populate a PDF with VBA and FDF, stopped working.

    I work with a non-profit children's camp where I need to be able to populate a PDF form from a MS Access database. The problem is that I do not have much server access, so I've had to find sneaky ways to do this. I can not use anything I have to inst

  • How does System.out.println(). Work inside src.zip file !

    Hello guyz, I was just wondering how System.out.println() worked so i opened up the src.zip file and checked the source code. But could not understand it. As written i remember "out is an object encapsulated in the System class." Thats ok. But i coul

  • Tablespace and LOB

    Hi all, Is it possible to have a logging TABLESPACE with a nologging LOB?