Any reason to use synchronize in jee world ?

Is there any reason why i should use synchronize method or statement in a jee application ?
would appreciate an example if yes .
thanks .

You use synchronize to prevent 2 or more threads accessing the same block of code of the same object (or class for static) at the same time. JEE wouldn't change that.
The question is, should one use synchronization in JEE apps or should one find a way to avoid needing it entirely to avoid multiple threads (usually requests) blocking. This does not necessarily mean to let threads into the same code in the same object without regard to state. Maybe each thread should have it's own object instance. It depends what you're doing.

Similar Messages

  • Is there any reason to use FCP text vs. Borris 3D?

    Is there any reason to use FCP text vs. Borris 3D?
    Thanks.

    boris is vector based, and the basic fcp text is bitmapped. What that means is that you can resize and reposition your type in the control tab with boris without any loss in quality. You cannot do this with fcp text. Also, I think the dropshadow, kerning and leading options are more extensive with boris. Not positive about this as I abandoned the basic fcp titler a long time ago.

  • Shared iPhoto Library - any reason to use disk image?

    Having read:
    http://support.apple.com/kb/HT1198
    this article, and also:
    https://discussions.apple.com/message/7734210#7734210
    this answer, I have a question.
    I am running iPhoto '11 on a MacBook Pro and have moved the iPhoto Library to the Users/Shared folder, where both my wife and I have full access to it.  This hasn't been tested extensively since my wife is just learning to use the computer, but she is able at least to open it and view the same photos, events, albums, etc. that I do.
    What I want to know is, having already set it up like this, is there any good reason to take the extra step mentioned in both of the above linked pages, and move the iPhoto Library to a disk image in that location?  (Rather than storing the library in the Shared folder itself?)
    Advantages/disadvantages?  What difference would this make?

    Some users - and I stress some, not all - can find they have Permissions issues using this form of sharing. In practise what it means is that if you import photos your wife may not be able to see them. So, putting the Library on a volume set to ignore permissions (which can also include an external disk, formatted Mac OS Extended (Journaled) ) will avoid the issue - if it arises.
    You can repair the permissions in a library as well: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. You'll see the option to check and repair library permissions.
    Regards
    TD

  • IPhoto 11 vs aperture - Any Reason to use Both?

    Hello Forum - I have basically used iPhoto for my personal pictures and Aperture for my professional pictures for some years now.  When iPhoto came out with Faces, I loved it and added a lot of old scans and new photos to that library.  However, with Faces and Places and other functions now in Aperture, it seems like one library may be a better way to go.  I have about 22K photos in iPhoto and 18K photos in Aperture. 
    Somehow, when I imported my pics into iPhoto, the setting for 'importing photos into the iPhoto Library' was unchecked, so I basically have 18K referenced photos in iPhoto.  I had always used 'referenced files' in my Aperture anyways, so I suppose that's just as well - especially if I want to import those photos into Aperture.  In fact, I was told by Apple tech support that they had never heard of anyone using referenced files in iPhoto who didn't have a problem with them.  So far, I must have been lucky, because I didn't have any issues until recently, and then it was due to me editing some of the original masters in Photoshop and then iPhoto couldn't re-link them even when I pointed it to the right files.  (getting iPhoto '11 fixed that - I was using '09) 
    I also have another 10-15K photos to import into one or both databases once I've made a final decision.  As silly as it sounds, the one thing that iPhoto can do that Aperture can't is make calendars and cards.  But my family really likes their calendars, so I don't want to give that up.  Can I import everything into Aperture, then keep iPhoto and access the Aperture library just to create calenders and cards? 
    I'm seeking the advice of users who may have been there/done that.  Are there any land mines I need to be aware of if I want to import my referenced iPhoto library into my referenced Aperture library?  Is there a proceedure I need to follow?  (other than described in the help section for importing libraries, etc.)  I never vaulted my Aperture library, and I never used the editing tools in either Aperture or iPhoto.  (I always use Photoshop for editing)  Thanks for any feedback!
    R Garside

    From what I could discern, it sounded like she meant that the two libraries were shared - as opposed to all the data from iPhoto being imported into Aperture.
    She could have meant the old scheme (before Aperture 3.3): Then the recommendation was to import referenced and the two libraries shared the original masters. But that approach has been very risky and was meant as a temperary solution while deciding if to switch to Aperture or not.
    Or she meant, that the shared library format: each application can open the other programs libraries - they can both use the same libraries.
    Do you know if there is a 'merge' option (which I will assume means Aperture shares the iPhoto library but doesn't actually import all the files)
    Aperture has a "merge " option when importing libraries, but this is very restricted. If Aperture imports a library that already has been imported earlier and than changed, Aperture will try to recognize the changes and only import/update the changed images and projects or other library items, if you select to "merge" and not to "add". But when you are importing a library that Aperture has never seen, it will not be able to recognize duplicate images and you may end up with  importing duplicates.
    or if when I import an iPhoto library, all the info comes across into Aperture with no more technical need for the iPhoto library.  (aside from viewing calendars, etc. created in iPhoto)
    When you import a library as library, all metadata will come across, as far as possible.
    After importing a library you could delete it, but keep a backup copy!
    In my case, both my iPhoto and Aperture libraries are referenced, so I would want the images I'm bringing in to be referenced as well.  Do you know if I have to handle the import differently?
    Also, the images will be imported with the same file status they currently have: referenced files will stay referenced, managed files will be copied. There is no option to control the file status, when you import a library. If you want to import a library referenced, you have to make the source library referenced.
    I can't find it in the help section and I'd hate to do the import and then discover that it did so by making the photos managed. There is very little info in the Aperture help regarding importing libraries - it only really talks about sharing libraries.   Thanks for any light you can shed on the subject. 
    If you import a large managed library and want to import referenced, relocate the originals in the source librar. To do that for an iPhoto library you have to open t in Aperure and use the "relocate originals" command.
    Regards
    Léonie

  • Any reason to use RAW+JPEG?

    I'm curious as to the benefit to importing RAW+JPEG masters. With the support Aperture has for RAW, JPEG doesn't seem really necessary. I use a DMC-L1 and can't disable the JPEG, but I could separate them before importing. Can anyone come up with a reason to import the JPEG masters? In my case I've compared the EXIF data and there are no differences that I can see.
    As for dealing with my library, after searching the archive it's clear there's no simple way to delete the JPEG masters.

    I do shoot both, but I am re-thinking that now that I use Aperture. The reason that I shot both was to give me a reference image for colour and exposure, so that my RAW conversion would be similar to the jpeg image (if that was what I wanted). Also the jpeg could be used for web and email, with minimum effort on my part. The jpeg also showed how close I was in getting the exposure right in the first place. Now that I am using Aperture, I have not looked at the jpegs at all. Roger
    MBP C2D 2.33   Mac OS X (10.4.8)  

  • Is there any reason to use iBank 4 if my bank does not support the Open Financial Exchange (OFX) protocol?

    I just got iBank 4 only to find out it is not supported by my bank!  What can I use for personal finance management on my Mac??

    Do NOT do any banking on your computer in amounts your not willing to risk losing.
    Mac's are better than Windows PC's, but they have been compromised in great amounts, in fact so was Apple's Cupertino HQ as well.
    According to the Russian antivirus company Dr. Web, a modified version of the "BackDoor.Flashback.39" variant of the Flashback Trojan has infected over 600,000 Mac computers, forming a botnet that includes 274 bots located in Cupertino, California, the location of the headquarters of Apple Inc.[4][5] The findings were confirmed one day later by another computer security firm, Kaspersky Lab.[6] This variant of the malware was first detected in April 2012[7] by Finland-based computer security firm F-Secure.[8][9] Dr. Web estimated that in early April 2012, 56.6% of infected computers were located within the United States, 19.8% in Canada, 12.8% in the United Kingdom and 6.1% in Australia.[5]
    https://en.wikipedia.org/wiki/Trojan_BackDoor.Flashback
    http://flashbackcheck.com/what-is-flashback.html
    https://support.apple.com/kb/HT5244
    http://www.pcmag.com/article2/0,2817,2402715,00.asp

  • Any reason to use "Manually manage music" over creating an iPhone playlist?

    My new iPhone is my first iPod that's not big enough to hold all 319 of my albums. In fact, the limited capacity is the only reason it took me so long to buy one -- it's always seemed that the whole point of having an iPod is the ability to take it all with you.
    Anyway, I just assumed that the way to choose 14GB or so worth of music was to create a playlist containing the albums I want to copy over, then sync that playlist with the new iPhone. It worked fine. But then I noticed the checkbox marked "Manually manage music and videos," and after some sleuthing it appears that it does the same thing.
    Does it do anything that creating a playlist doesn't? If I switched to doing it that way, would the only upside be one fewer playlist?

    Eric, if thats what you're more comfortable doing, i say, stick with it. i prefer to "manually manage" as i dont really use playlists. i'm one to just start a song and let the thing play at random. so i like it cuz when i obtain new mp3's, i can just drag and drop it into the phone. and the same the ohter way around, if theres a song i no longer want on the phone, i can delete it off the phone via itunes. all without having to set up playlists to sync.

  • Any reason to use aiff?

    Hi. I'm creating a DVD of an HD movie from Final Cut Pro 5. When I export, I use this settin "DVD: Fastest encode 120 minutes 16:9". When I do, I create 3 files: mpeg-2, aiff & ac3. Then I import the assets I created into a DVD Studio Pro project. Do I need to use the aiff at all?
    Thanks,
    Ali

    Thanks. I don't understand why it says "all" next to the quick setting. Why would anyone want 2 audio formats?
    The movie is 97 minutes. It was shot on the Panasonic HD Varicam & the project is 23.98 full resolution. I'm not creating any menu, just the one movie for a screening. I'm creating SD only disks because most players won't play HD & creating both takes up too much space - I'd like to have all of it on one disk. Any advice on what I'm doing would be great. I'm new to DVD mastering - I'm used to outputting to tape.

  • A64's -- any reason to use CPUIDLE?

    Slightly OT, admittedly.
    Aside from Cool & Quiet (which I view as a separate temperature control method) do Athlon 64's authomatically implement the "HALT" command, or is in necessary to use CPUIDLE or similar programs for lowest temps, as is the case for Athlon XP's?
    TIA

    Great thing about Cool & Quiet is the power usage.. Socket 939 CPU's use only 21W (3500+ only 20W) when running at low speed.
    I don't get why they didn't set the minimum speed to 100mhz or something, I mean, if it really shifts speed hundred times per second, would it matter.
    And when will all hardware utilize this feature? Graphics cards, etc.

  • Is there any reasons to use Cryptix?

    Actually Cryptix JCE provider has not been updated for more then one year (well, they released a signed jar for 1.4, but no changes in the functionality) and it is definetely not the best one in terms of the performance.
    So, why someone still needed to use Cryptix?

    I agree. I started working with Cryptix but also recognized soon that it's outdated. I switched to Bouncycastle now if I need functionality that is not in the SunJCE provider.
    Michael

  • Any reason when use SSMS on SQL Azure, I cannot access Alter to, but only Create to?

    It is annoying have to change create to alter all time.

    Hi wyx2001,
    Please see this link:
    http://connect.microsoft.com/SQLServer/feedback/details/741947/ssms-alter-stored-procedure
    "we have taken note of this internally, and when we revisit this functionality in the future, we will try and get this resolved.
    Quick Note: The SSMS and SMO support for SQL Azure is limited and not all functionality is available. Our recommendation for operating with SQL Azure is via Web portal."
    Iric Wen
    TechNet Community Support

  • Any reason to prefer DVD+R over DVD-R or vice versa?

    Hi,
    I have always bought DVD-R media, because older Macs didn't support +R. Now that I can use either, are there any reasons to use +R instead?
    TIA!

    William,
    +R is suppose to be a better more reliable format but the question is really compatibility. Most modern equipment will read +R but some of the older DVD players would not. If you're creating DVDs for your grandmother, chances are she has one of the older ones.
    Regards,
    Captfred
    Edit: Here is some addition information:
    http://en.wikipedia.org/wiki/DVD%2BR
    Message was edited by: captfred

  • Is there any practical reason to use DB helper class?

    Is there any practical reason to use database helper class ( e.g. database.bookDB in Duke's bookstore)in servlet design? What if I setup a DB connection for every servlet?

    to ken_robinson
    I am currently setup DataSurece in servlet init().Usually (I know WebLogic is this way), if you configure the DataSource through the app server's configuration app, it is available to all applications.
    The most efficient way to look up the DataSource in a particular app is have a ServletContextListener lookup the DataSource from JNDI and set it in the Context as an Attribute. Each servlet would then, in it's init() method, get the DataSource from the ServletContext (faster than using JNDI for each Servlet. The ServletContextListener requires the container you are running in support the 2.3 spec. If it does not, simply use a startup servlet (servlet that is loaded when the app is loaded) and do the same thing.

  • Using the new AppleTV, I cannot seem to find the same TV shows on the iTune Store as the older AppleTV. The selection is far more limited. For example, Modern Family is not available ... Any reason why?

    I recently upgraded from an older AppleTV to the new AppleTV. The TV Shows I can access through the new AppleTV are far fewer than before. For example, I cannot find Modern Family on the iTune Store, whereas I used to be able to find it on my older AppleTV. Any reason why the selection is more limited?

    I just found out the answer to my own post by browsing through other discussions. Looks like the new AppleTV only provides access to rental TV shows. Can't purchase anything ... So, the selection is far more limited. It's a drag, but at least the mystery is solved...

  • Any reason why I should use Safari on my PC

    I use Mozilla now. I now have an Iphone. Is there any reason why I should download and use Safari on my PC? I expect the functions will be different from IE or Mozilla or maybe better, but is it a good idea to download and use since I have an Iphone?

    It's pretty irrelevant, unless you really want to sync bookmarks from your computer to your iPhone (you could do that with IE as well, but not Firefox).

Maybe you are looking for

  • How to install the musegrid audio widget?

    Does anyone know how to install the MuseGrid Audio Widget. Once I get in in the library I drag it onto the page, preview it and nothing show in the browser. I have the assets folder that comes with it but have no clue how to connect the widgets asset

  • User exit for item level in PO

    Hi: Once we create a PO based on PR. I should not be able to change the net price. I need to through a ERROR MESSAGE. The price of PR and PO Shuold be same. Used should not change the net price, If he tries to change it, A error msg should be thrown.

  • Third party applications don`t work!!!!!!

    Hi I really need help here I have a bb 9530 verizon(my uncle`s) cause my last phone broke a bb 9300 3G.i have set up the bb but I really don't know what I'm doing so every thing works fine except third party applications because when ever I go into a

  • Allow cell contents to cross page

    Is it possible to allow text in a cell to run over more than 1 page? I have a table with 2 columns and 16 rows, which MUST fit in to 3 A4 pages; unfortunately, it is currently 5 pages long, as all cells are kept on a single page.

  • Learning tips for Object Oriented ABAP

    Hi Gurus, I am in ABAP for last 1 year, I want to learn Object oriented ABAP can you please guide me where to start. Some learning material etc. Regards Bikas