When not using EJBs can I make BD a Singleton and cache facade instances?

Hi,
In an application which does not use EJBs can I make BD(Business Delegate) a singleton?
I was very sure about doing this but when I tried Google on the same subject the answers were'nt supportive of this but that was in the context of applications which used EJBs. And also item 4 in Effective Java isnt very supportive of caching Objects at the drop of a hat.
When not using EJBs would it be an unnecessary thing to make BD a singleton and cahce Facade instances in a BD and DAO instances in a Facade? I am planning to use a array based blocking bounded buffer for the purposes of caching. Or would it be better to make both BD and a facade as SIngletons and just cache DAOs in a Facade?
Any suggestion would be of good help to me.
Thanks a lot.

Not sure I understand all your design, but you seem
to describe an architecture where requests are queued
and handled serially.Sorry if I messed up while explaining it. No, it will not be handled serially. Since the BD is a singleton multiple threads can pass messages to it simulteanously, a bit like an object of the Action class in Struts. Since I dont see having any synchronized methods in a BD requests will be handled simulteanously.
The impact on throughput of handling requests
serially (as opposed to parallelizing them) probably
outweights by far the cost of instantiating one more
object per request...Yes, I understand that but as I explained above the reqests wont be handled serially.
To be more clear, I am thinking of using any one of these two things:
1) BD(Singleton)-->Facade(Singleton, caches DAOs in a thread safe data structure)
2)1) BD(Singleton, caches Facade instances in a thread safe data structure)-->Facade(caches DAOs in a thread safe data structure).
the thread safe data structure I am planning to have is a array based bounded buffer which blocks using wait and notify mechanism.
Thank you for the reply.

Similar Messages

  • When I open my email account thru Firefox, there is a blinking message in my task bar stating that "lorainemihiril" sent me a message. I DO NOT know this person, I can't make it go away and I NEVER use instant messaging. How do I get rid of this???

    When I open my email account thru Firefox, there is a blinking message in my task bar stating that "lorainemihiril" sent me a message. I DO NOT know this person, I can't make it go away and I NEVER use instant messaging. How do I get rid of this??? Sometimes there is more than one of these flashing messages all with the same name.

    Disable Yahoo Messenger in your Yahoo Mail account.
    Use the arrow on the right of your account name to go offline or sign out.
    * http://help.yahoo.com/kb/index?locale=en_US&y=PROD_ACCT&page=content&id=SLN2003

  • HP 15-d041TU DVD-ROM HP UJ8FBA makes a noise when not using

    Hi everyone, here comes another problem from my newly bought HP, i sorted out nearly every issue that came along (packed) with this driver less laptop, now i have a issue that dvd rom makes a noise as if pick up is moving every once in 5 minutes, there is no disc in the drive, and i am not using it at all. I opened it and closed it doesn't seem to help. So after numerous searches i did this!
    1. ) Disabled Autorun of Windows 8
    2. ) Did a hard reset, i don't know if it's correct. "Hold the power button for 15 seconds" when computer is swtiched off
    3. ) Updated the bios again, it was updated i think but i did update again i don't know no messages about same bios etc.
    Now so far problem didn't arise, PHEW!
    What could have caused this? has anyone had the same problem? What was the solution worked for you?

    Here's the solution, it's not the drive that makes the sound. it is the hard drive, lol hardrive is located in the right bottom of the machine which i thought it's in the left. Even when i have the drive ejected it still makes the noise so it can't be the drive right?.

  • Hi, I have an iPhone 4 which rings people when it is locked, whether or not in my pocket.  I always lock it when not using it.  Can anyone help? It is calling random numbers, not the last person or anyone even recently called on my recents list. Thanks

    Hi, I have an iPhone 4 which rings people when it is locked, whether or not in my pocket.  I always lock it when not using it.  Can anyone help? It is calling random numbers, not the last person or anyone even recently called on my recents list. Thanks

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

  • HT5114 I lost my iphone 5 without signing out my account but I have bought another one. How can I make sure that the person in possesion of the phone is not using my account to make purchases? ?

    I lost my iphone 5 without signing out my account but I have bought another one. How can I make sure that the person in possesion of the phone is not using my account to make purchases? ?

    Thanks for your prompt response... will changing my password also stop the authomatic download of my new applications and music from downloading to the stolen phone?

  • When we use jsf can we also use hibernate or ejb for database visting.

    when we use jsf can we also use hibernate or ejb for database visting.

    http://blog.exadel.com/?p=8
    http://java.sys-con.com/read/46977.htm
    http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html
    http://www.jroller.com/page/ksevindik/?anchor=lookup_tables_with_hibernate_and
    Sergey : http://jsfTutorials.net

  • Is there any way to turn off airport without removing the electrical plug and should I unplug it when not using it??

    I just got the 5G Airport Extreme base station. Set-up was a snap! Maybe 10-15 minutes compared to a friend who got another name brand for his pc and took a couple hours, even having to call customer support! Been working great so far, but am concerned about never turning it off, not only about the possibe harm that could be done to the unit, but also about having an active, open Internet connection 24/7. Before I got my Airport Extreme I was using Ethernet cable with a cable modem that could be placed on "standby" whenever I was not using my Mac for Internet, but since AE5G doesn't have a power switch on the unit, have left it turned on rather than unplugging it by the electrical cord. I did turn AirPort "off" in the menu bar when not using it wth my Mac, but AE is still apparently constantly active, showing a steady green light. Would there be any harm done by plugging it in only when I want to use Wi-Fi, then unplugging it?
    Thanks for the help!

    Would there be any harm done by plugging it in only when I want to use Wi-Fi, then unplugging it?
    That is a matter of debate, since there are two schools of thought regarding power status on a router.
    One school maintains that you can turn the device on and off as needed. Makes sense for some folks. The advantage of this is that it might save a bit of electricity, although the Extreme draws very little power most of the time.
    Another school believes that there is a reason why Apple did not even place an "Off" switch on the device. It's designed to run 24/7.
    Leaving the Extreme on will place far less stress on the electrical components in the device since they stay in an "idle" state most of the time, drawing very little current. Powering any electrical device up sends a sudden rush of current through the device, which places far more stress on a device than if it is simply left on.
    It depends on your priorities. If you want to save electricity, your decision is already made. If you intend to prolong the life of the router, then consider leaving it on, as Apple intended.
    A compromise position might be to leave the Extreme on most of the time and power if off for long weekends or vacation periods when you will be away. Remember that the Extreme must establish all new network connections every time that it powers back up....perhaps another reason to simply leave it on.

  • Firefox crashes - even when not using the computer

    Firefox crashes - even when not using the computer
    Sometimes I can walk away from the computer and only have one tab open (e.g. Facebook) and when I come back to the computer a few hours later, Firefox has crashed for no reason.

    Unfortunately the linked crash report is empty (@ EMPTY: no crashing thread identified; corrupt dump) and doesn't include any data, so it is not possible to find the cause of the crash.
    Did you recently submitted other crash reports that were submitted and show a crashing thread?
    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • How do I turn off background ni file activity when not using Labview? files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, nicitdl5.exe

    How do I turn off background ni file activity when not using Labview? I use labview rarely, and I also use my computer for demanding multimedia applications, including multitrack digital audio recording. I need to reduce as much background activity as possible, and taking a look with task manager I see files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, and nicitdl5.exe running even when I haven't used Labview (8 I believe). These files run even after I right click the NI icon on the lower right and turn off the application. I would like the computer to boot up without these files, and for the necessary files to be activated only when I start the program.
    Can this be done or do I have to remove labview from the system to improve performance?
    Thanks

    Hello, those processes are part of running NI services that start when Windows boots.  These processes serve varied purposes and stopping them can have undefined and unknown consiquences for your NI products.  These products run at "normal" priority meaning that they should be preempted by any process running at a higher priority which I would expect your other application to be doing given their time sensitivity.  That being said, in Windows XP (I can't speak for other OSes), you can lower their priorities even greater through task manager (right click the process»set priority) to further remove them from contention for resources.  If you want to prevent them from running you can set the service startup type to "manual" in Control Panel»Administrative Tools»Services.  Right click the process go to Properties and Under the General tab choose Startup Type»Manual.  This will start up the processes only when something directly starts it up.  LabVIEW will start these processes up as it attempts to use them.  When you shut down LabVIEW you will need to manually shut down these processes through task manager.  Again, doing this can cause problems with your NI products on your system and it is not advised.
    Travis M
    LabVIEW R&D
    National Instruments

  • I have a WD 2 tb hard drive that I want to use to back up my Mac Pro quad core.  How do I create a back up startup disk?  Also, when I used Time macine, it only backed up users and not the system or library folders.  Ideas?

    I have a WD 2 tb hard drive that I want to use to back up my Mac Pro quad core.  How do I create a back up startup disk?  Also, when I used Time macine, it only backed up users and not the system or library folders.  Ideas?

    Welcome to Apple Support Communities
    Time Machine should be enough to make a backup of your files. Also, it should back up all folders, so open System Preferences > Time Machine > Options, and make sure that there are no folders included in the excluded items list.
    If you want to create a bootable clone of your hard drive, you need to use an app like Carbon Copy Cloner or the Disk Utility's Restore feature > http://pondini.org/OSX/DU7.html

  • Validation messages in JSF (when not using ADF faces)

    I've spent some time with JDeveloper 11 and would like to use it on an upcoming project. I have to target IE 6, so I won't be able to take advantage of ADF Faces. Instead I'd like to use the ADF Business Components with a standard JSF interface so it can be used by people still running IE 6.
    I've created a Business Component from a database table and can bind a JSF HTML Creation Form by dragging the appropriate view from the AppModule in the Data Controls pane. However, when I attempt to submit the page without all the fields being valid I get the following validation error message:
    j_id__ctru2:j_id__ctru6: Validation Error: Value is required. j_id__ctru2:j_id__ctru6: Validation Error: Value is required.
    I've tried making this more descriptive, but editing the error message in the Validation Rules section of the Business Component has no effect. What's the best way to convey a meaningful validation message to the user when not using ADF Faces?
    Also - I'm still very new to JDeveloper. Since I won't be able to rely on my users having Internet Explorer 7, would you recommend I stay with JDeveloper 10? The examples and documentation I've seen so far for JDeveloper 11 appear heavily biased towards using ADF Faces so I'm starting to wonder how much support is there for using plain old JSF.
    Thanks for your time!

    Hi,
    if you are completely new to this then I suggest to use JDeveloper 10.1.3 and ADF Faces in there. Its good to use with IE6 as well. Currently we do have more tutorials available for this release than for 11, which for this reason is a better choice for someone new to this
    Frank

  • Should I disable wi-fi when not using it ? Will this preserve the Battery?

    When I`m at home,should I disable the wi-fi when not using the internet ? Does this preserve the battery?

    http://ipod.about.com/od/iphone3g/tp/iphone-battery-life.htm
    #5 on the list to preserve battery:
    Keep Wi-Fi Off
    The other kind of high-speed network that the iPhone can connect to is Wi-Fi. Wi-Fi is even faster than 3G, though it’s only available where there’s a hotspot (not virtually everywhere like 3G). Keeping Wi-Fi turned on at all times in hopes that an open hotspot will appear is a sure way to drain your battery life. So, unless you’re using it right this second, keep Wi-Fi turned off.
    Find it in Settings -> WiFi -> Slide to Off

  • HT4528 I want to unlock it from o2 network size to be used on any network in Romania. right now I can not use this phone on any network in Romania and I would like if possible with your help me to unlock it. model phone is iPhone 4.  I understand that it

    help me !
    I want to unlock it from o2 network size to be used on any network in Romania. right now I can not use this phone on any network in Romania and I would like if possible with your help me to unlock it. model phone is iPhone 4.
    I understand that it takes IMEI?
    thank you, with great esteem and respect Stan Ionut-Alin from Bucharest Romania
    I can someone help me please to use this phone in romania
    So the phone is encrypted or locked in england on o2 network

    There is NO solution other than already described
    O2 locked the iPhone as they subsidised the original price
    when sold new
    Therefore ONLY O2 can unlock the iPhone
    it is NOTHING to do with Apple they have no authority
    to unlock an iPhone
    Apple do NOT lock iPhones ,carriers do
    simple no debate
    If you purchased through eBay raise a claim

  • I have an old iPhone and my new phone that I'm using currently. The old one isn't being used. Can I make both of the phones receive all of my text messages?

    I have an old iPhone and my new phone that I'm using currently. The old one isn't being used. Can I make both of the phones receive all of my text messages even though my old one doesn't have service but there is wifi?

    You can activate iMessage on the old one so it can get your iMessages. The old phone will NOT recieve SMS/MMS messages sent to your number.

  • Asked to reboot to complete install stuck, will not go away, can not use Firefox, can not uninstall, windows based

    asked to reboot to complete install stuck, will not go away, can not use Firefox, can not uninstall, windows based
    I chose to delay reboot
    Rebooted later
    When trying to use Firefox it ask for reboot
    Stuck in a loop

    I thought I would copy your other post ([/questions/887645] ) <br/>
    |
    Let me rephrase in question.
    locking as a duplicate - https://support.mozilla.com/en-US/questions/88761 - please edit your original question instead of starting a new thread <br/>|<br/>
    I installed Firefox 6.0.2 on a Windows Server 2003 box. This box is a terminal server with 9 users that are going to use Firefox. The other users are going to use IE. When asked to reboot now or later, I chose Later. After sometime I rebooted, the message "you need to reboot in order to complete the install" reappears. Over and over again. Can not uninstall (same message) Can not open Firefox (same message) Many reboots using various users, the same results.
    Help!
    |
    The question appears to relate more to the OS than be a firefox problem, but as I have never used Windows Server 2003, I am unable to help.

Maybe you are looking for

  • WD My Book 2T Model WDBF JK0020HBK-NESN compatibility with Mac OS 10.5.8

    Apparently WD Tech Support declines to answer the following query. Does anyone know the answer? Thanks I've discovered that the new My Book 4T drives that I'd planned to used with my iMac running OS 10.5.8 are not compatible with that OS. I've got My

  • Regarding Jdeveloper ---- Urgent

    Hi All, We got a project in iStore Customization....for that which version of Jdeveloper can i download ? and How can i do iStore customization? Is there any documents are there ...plz tell it also ... In Forums i am not able to find the iStore relat

  • Resolving contflicts between 32-bit and 64-bit rpm packages

    This "glibc-devel-2.12-1.7-i686.rpm" is required which for 32-bit to install Enterprise Manager in 64-bit machine. But while installing it using yum, getting following exceptions in the logs. Please help. ** Found 10 pre-existing rpmdb problem(s), 'y

  • Compression/Decompression of byte-array in TupleOutput/TupleInput

    Hello, how do I compress the whole data before I flush everything out? I simply want to write to the internal buffer using TupleOutput methods and after that compress the buffer. The decompressing once using the TupleInput reference. For instance Sna

  • Table for test data saved in SE37 (Test data directory)

    Hello Experts, When we save the test data in SE37 its going to be saved in test data directory, in which table of the data base its going to saved? Thanks in advance, Sandhya