How can I keep a kind of global object (Singleton) in App Server?

Hi,
I am working with Application Server Platform Edition 8. I want to have a object on the App Server which will have only single instance. The instance will be available to all objects(ejbs) in the server.

duffimo is right, the above approch can not be implemented.
I think we can achieve this by doing following setting in descriptor.
For Stateless bean under Weblogic (weblogic-ejb-jar.xml)
<pool>
<max-beans-in-free-pool>1</max-beans-in-free-pool>
<initial-beans-in-free-pool>1</initial-beans-in-free-pool>
</pool>
For Stateful bean under Weblogic (weblogic-ejb-jar.xml)
<stateful-session-cache>
<max-beans-in-cache>1</max-beans-in-cache>
</stateful-session-cache>
For Entity bean under Weblogic (weblogic-ejb-jar.xml)
<pool>
<max-beans-in-free-pool>1</max-beans-in-free-pool>
<initial-beans-in-free-pool>1</initial-beans-in-free-pool>
</pool>
and instance cache size
<entity-cache>
<max-beans-in-cache>1</max-beans-in-cache>
</entity-cache>
Hope these work....

Similar Messages

  • How can I keep my emails from being deleted from the Telus server so I can view them on my home computer as well?

    How can I set my IPad email account to leave the messages on the server?  I want them left on the Telus server until I choose to delete them.

    I have POP mail accounts on my iPad.
    Settings > Mail, Contacts, Calendar leads me to the correct place.
    At the top will be a list of my Mail accounts.
    Tapping on an Account brings up all the info in the account.
    The Advanced choice is at the bottom of the window and usually requires scrolling down to see it.
    Tapping Advanced brings up another widow with the Delete from Server choice. Tap that and you can then tap Never.
    I'm using an iPad 2 and an iphone5 running iOS 6.0.1

  • How can i change backgroud color of global template in fusion cloud?

    Hi all.
    someone of you could help me?
    How can i change backgroud color of global template in fusion cloud?

    Hi.
    Making CSS changes like this is currently only possible off-line, using the JDeveloper-like Skin Editor. This is described in our blog post here, a demo on our YouTube channel in this video, or the product documentation here. Coming soon is an online 'theme editor' feature which allows this kind of customization online. I would recommend that you raise a request with the Cloud Operations team to verify if they support the addition of custom skin files, otherwise you are limited to the online branding options currently available.
    Kind regards
    Richard
    FA Developer Relations

  • How can I keep my MacBook safe is Apple is no longer supporting Snow Leopard? My MacBook was purchased in 2006 and cannot be upgraded to the newer operating systems.

    I have a MacBook which I purchased in 2006. It cannot upgrade to newer operating systems.Since Apple has stopped support to Snow Leopard, how can I keep my MacBook safe? Buying another computer is not an option. Any ideas or suggestions? Many thanks.

    Klaus1 wrote:
    Apple still sell, and therefore support, Snow Leopard.
    For what it's worth, from my reading of the Snow Leopard EULA (and I would  assume that there is similar language in the EULAs for all other operating systems, as well), I'm not seeing any obligation on the part of Apple to provide Security Updates of any kind, period/full stop. The wording appears to be completely "use at your own risk." I have no idea whether this "use at your own risk" would survive a legal challenge, or if such a legal challenge would depend on whether or not Apple is still selling (or even giving away for free) an OS, or whether local law would, according to this, override the EULA. Perhaps this is why Apple never formally announces EOL or discontinuance of support for an OS. They can always claim that they are still supporting an OS, whether or not in any practical sense, they are. There was even a very late Flashback detection and removal script which Apple issued for 10.5 well after it was clear that they had stopped supporting Leopard. This hardly constituted ongoing support, but perhaps it was to deter the threat of legal action, or maybe it was simply out of benevolence. I don't know.
    Besides that, even when Apple was still actively "supporting" Snow Leopard, which I don't think it is any longer, "use at your own risk" would still have applied to a case where Apple may have been late with a patch, or a response, or an adequate response, to a zero-day threat, such as Flashback was, which was constantly evolving. Many thousands were affected by that, and, to my knowledge, at least, there was no legal action directed at Apple throughout or after that episode. If there was any, I don't think it succeeded.
    7. Disclaimer of Warranties. YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE LAW, USE OF THE APPLE SOFTWARE AND ANY SERVICES PERFORMED BY OR THROUGH THE APPLE SOFTWARE (COLLECTIVELY “SERVICES”) IS AT YOUR SOLE RISK AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT IS WITH YOU. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE APPLE SOFTWARE AND SERVICES ARE PROVIDED “AS IS” AND “AS AVAILABLE”, WITH ALL FAULTS AND WITHOUT WARRANTY OF ANY KIND, AND APPLE AND APPLE'S LICENSORS (COLLECTIVELY REFERRED TO AS “APPLE” FOR THE PURPOSES OF SECTIONS 7 and 8) HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH RESPECT TO THE APPLE SOFTWARE AND SERVICES, EITHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES AND/OR CONDITIONS OF MERCHANTABILITY, OF SATISFACTORY QUALITY, OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY, OF QUIET ENJOYMENT, AND NON-INFRINGEMENT OF THIRD PARTY RIGHTS. APPLE DOES NOT WARRANT AGAINST INTERFERENCE WITH YOUR ENJOYMENT OF THE APPLE SOFTWARE AND SERVICES, THAT THE FUNCTIONS CONTAINED IN, OR SERVICES PERFORMED OR PROVIDED BY, THE APPLE SOFTWARE WILL MEET YOUR REQUIREMENTS, THAT THE OPERATION OF THE APPLE SOFTWARE OR SERVICES WILL BE UNINTERRUPTED OR ERROR-FREE, THAT ANY SERVICES WILL CONTINUE TO BE MADE AVAILABLE, THAT THE APPLE SOFTWARE OR SERVICES WILL BE COMPATIBLE OR WORK WITH ANY THIRD PARTY SOFTWARE, APPLICATIONS OR THIRD PARTY SERVICES, OR THAT DEFECTS IN THE APPLE SOFTWARE OR SERVICES WILL BE CORRECTED. INSTALLATION OF THIS SOFTWARE MAY AFFECT THE USABILITY OF THIRD PARTY
    SOFTWARE, APPLICATIONS OR THIRD PARTY SERVICES. YOU FURTHER ACKNOWLEDGE THAT THE APPLE SOFTWARE AND SERVICES ARE NOT INTENDED OR SUITABLE FOR USE IN SITUATIONS OR ENVIRONMENTS WHERE THE FAILURE OR TIME DELAYS OF, OR ERRORS OR INACCURACIES IN THE CONTENT, DATA OR INFORMATION PROVIDED BY, THE APPLE SOFTWARE OR SERVICES COULD LEAD TO DEATH, PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE, INCLUDING WITHOUT LIMITATION THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL, LIFE SUPPORT OR WEAPONS SYSTEMS. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY APPLE OR AN APPLE AUTHORIZED REPRESENTATIVE SHALL CREATE A WARRANTY. SHOULD THE APPLE SOFTWARE OR SERVICES PROVE DEFECTIVE, YOU ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES OR LIMITATIONS ON APPLICABLE STATUTORY RIGHTS OF A CONSUMER, SO THE ABOVE EXCLUSION AND LIMITATIONS MAY NOT APPLY TO YOU.
    8. Limitation of Liability. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT SHALL APPLE BE LIABLE FOR PERSONAL INJURY, OR ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES WHATSOEVER, INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, LOSS OF DATA, BUSINESS INTERRUPTION OR ANY OTHER COMMERCIAL DAMAGES OR LOSSES, ARISING OUT OF OR RELATED TO YOUR USE OR INABILITY TO USE THE APPLE SOFTWARE AND SERVICES OR ANY THIRD PARTY SOFTWARE OR APPLICATIONS IN CONJUNCTION WITH THE APPLE SOFTWARE, HOWEVER CAUSED, REGARDLESS OF THE THEORY OF LIABILITY (CONTRACT, TORT OR OTHERWISE) AND EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OF LIABILITY FOR PERSONAL INJURY, OR OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION MAY NOT APPLY TO YOU. In no event shall Apple's total liability to you for all damages (other than as may be required by applicable law in cases involving personal injury) exceed the amount of fifty dollars ($50.00). The foregoing limitations will apply even if the above stated remedy fails of its essential purpose.
    http://images.apple.com/legal/sla/docs/osx_snow_leopard_sec_upd.pdf

  • How can i write the trigger for Global Temporary Table

    Hi Grus,
    How can i write the trigger for Global Temporary Table.
    I was created the GTT with trigger using the below script .
    CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
    EMP_C_NAME VARCHAR2(20 BYTE)
    ON COMMIT PRESERVE ROWS;
    CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
    BEFORE DELETE OR UPDATE OR INSERT
    ON GLOBAL_TEMP
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
    END;
    trigger was create successfully, but the wouldn't insert into to EMPNAME Table..
    Please guide whether am correct or not? if not kindly give a correct syntax with example
    Thanks in Advance,
    Arun M M

    BEGIN
    INSERT INTO EMPNAME VALUES (:OLD.EMP_C_NAME);
    END;
    you are referencing old value in insert stmt.
    BEGIN
    INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
    END;then run ur application it works fine...
    CREATE GLOBAL TEMPORARY TABLE GLOBAL_TEMP
    EMP_C_NAME VARCHAR2(20 BYTE)
    ON COMMIT PRESERVE ROWS;
    CREATE OR REPLACE TRIGGER TRI_GLOBAL_TEMP
    BEFORE DELETE OR UPDATE OR INSERT
    ON GLOBAL_TEMP
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    dbms_output.put_line(:OLD.EMP_C_NAME||'yahoo');
    INSERT INTO EMPNAME VALUES (:new.EMP_C_NAME);
    dbms_output.put_line(:OLD.EMP_C_NAME);
    END;
    create table EMPNAME as select * from GLOBAL_TEMP where 1=2
    insert into GLOBAL_TEMP values('fgfdgd');
    commit;
    select * from GLOBAL_TEMP;
    select * from EMPNAME;
    output:
    1 rows inserted
    commit succeeded.
    EMP_C_NAME          
    fgfdgd              
    1 rows selected
    EMP_C_NAME          
    fgfdgd              
    1 rows selectedgot it Arun
    Edited by: OraclePLSQL on Dec 28, 2010 6:07 PM

  • When I download my NEF (RAW) format picture into iPhoto, the format is automatically transformed to JPEG. How can I keep my NEF format?

    When I download from my Nikon camera a NEF format picture, iPhoto transformes it automatically to JPEG. How can I keep the NEF format?

    Your RAW photos are safely in iPhoto - the JPEGs are simply display previews and versions for use by other program  ---  you can export the RAW by exporting with kind original
    LN

  • How can I keep USB's ports active while in sleep mode?

    How can I keep USB's ports active while in sleep mode?

    OK, for some of you that may have the same problem or question as me. I have been testing my MAC Book Pro for ways to continue to power the usb while laptop in standby or off. I have found the following thing to work or not work.
    1. The laptop doesn't send any power to your USB's when it is powered off reguardless if it is plugged in or not.
    2. If laptop is put in standby no power is sent to USB's unless the power cord is plugged in on the laptop. So once again if you plug your laptop in and then put it in standby it does still send power to the USB's when requested.
    So the bottom line is, On my last laptop (toshiba) I was given an option to go into system preference and make a change that allowed my laptop to continue to send power to USB's when requested while in standby or powered off. I was hoping I could do the same thing with my new smokin Mac Book Pro but I haven't found that kind of option in the MAC.

  • My computer with my original library has crashed, how can i keep all the songs on my iphone, but still add new songs from my new library?

    My computer has died and will not be working ever again. Problem is, i have all of my songs on that computer in my itunes library as well as on my phone. Now i want to add some songs to my phone from some new cds and it tells me i will loose all my songs on my phone right now when i perform the sync. How can i keep all of the songs on my iphone because now i do not have copies of these songs anymore except on my iphone?????? From what i have read, itunes is a joke because it only goes one way apparently. Not happy with itunes right now, more then a bit of a joke

    It has always been very basic to always maintain a backup copy of your computer for this very occasion.  Use your backup copy of your computer to put everything on the new one.
    If for some reason you have failed to backup, big mistake, then you can transfer itunes purchases from the iphone to the computer:  File>Transfer Purchases
    You may be able to buy a 3rd party program to get any other music off of the iphone ( not supported by Apple).
    When you sync the iphone, it will erase the current content and replace with content form the new computer.
    "Not happy with itunes right now, more then a bit of a joke"
    Not itunes fault that you did not do the very basics and maintain a backup copy.

  • How can I keep my child from UNBLOCKING contacts or numbers I have blocked? I know in restrictions when you disable account changes at least on ios 6,this greyed out the iMessage button so the kids couldn't deactivate their text feature.

    Here's the issue.  Kids got themselves into some trouble on iPods.  We set all restrictions any turned off iMessage etc, which I noticed they can't turn back on bc it's gray with the don't allow account changes set.  BUT, it still allows Wi-Fi to be turned on and off!  How can I disable them being able to turn that on wo asking me??  In ios 7, the blocking feature, fabulous, BUT, how can I keep the kids from UNBLOCKING numbers I have blocked?  What I am looking to do actually is allow my kids to be able to text family but block everyone else.  And ask me to turn on wi fi.  How and can this even be done?  Right now my d text is turned off completely.  And she knows the inside and out of her device so she can turn wi fi on herself.  On vacation she entered the wi fi code of our condo and so I did forget network, which didn't work and wi fi kept connecting anyway wo requiring password again!  HELP!  Thanks :)  Also, they have iPods now but am asking these questions based on them getting our 4s's with ios 7.

    TeresaBoo, I empathize with your dilemma and have a similar problem. I'm trying desperately to keep my teenage daughter away from a controlling and abusive boyfriend. Of course, she is in denial and thinks it's love. Sure, I can block text messages through our wireless provider, but iMessages run on an independent network. I can block a phone number from iMessaging on her phone, but she can unblock it just as easily. I wish there was some way for parents to create a password to protect settings. Don't let negative comments get you down. Honestly, if someone can't relate to your question or offer help, why are they even bothering to comment??

  • When Mail is Open on iMac, how can I keep mail from also going to iPhone?

    I spend most of the day on my iMac, with Apple Mail open. Over a few hours, I get dozens or more emails. I deal with them on my Mac as they come in or I have time. Now the same emails also show up on my iPhone and iPad. How can I keep from having the emails sent to my iPhone and iPad when I have mail open on my iMac? It used to be that when my iMac was open and mail on, I couldn't get mail on my iPhone, which is just what I wanted.
    I've messed around with mail preferences, but maybe don't know what to set. (I know I can inactivate my account on the iPhone and iPad, but don't always remember to do that.)

    (I know I can inactivate my account on the iPhone and iPad, but don't always remember to do that.)
    If you can remember to do that, your problem is solved.

  • HT204053 I share an iTunes account with my daughter, I just got an ipad and need to set up with my own I'd for iCloud sync  how can I keep my apps and music?

    I share an iTunes account with my daughter, I just got an ipad and need to set up with my own I'd for iCloud sync  how can I keep my apps and music?

    ColleenMcG wrote:
    You can continue to share the same iTunes account ID with your daughter and set up a separate iCloud account with a different ID.
    => is this a different iCloud account for each device?  I thought iCloud account ID had to match some iTunes account ID, for which we only have one i Tunes account?
    You need to set up a separate iCloud account for each person that does not want to share their iCloud data.  If you share an iCloud account with someone, any data you both sync with the shared account is merged, and you end up with each other's data on your device(s).  If, for example, you owned two devices and someone else in the family also owned two devices, you would both want your own iCloud accounts, and you would each set up your personal iCloud account on the two devices you own.  In other words, you want a separate iCloud account for each person to be used on the devices they own.  Each iCloud account has to have a separate Apple ID.  The ID does not need to be the same as the ID used for iTunes.  Many families perfer to share the same iTunes account/ID, but maintain separate iCloud accounts with different IDs to keep there data separated.
    ColleenMcG wrote:
    It does not need to be the same as the ID used for iCloud.
    => what ID, iTunes?  So I can have a separate iCloud account "only" ID which I also assume must be some [valid] email address?  The children currently do not have email accounts anywhere.
    Yes, I was referring to the iTunes ID not needing to be the same as the ID used for iCloud.  In order to set up an Apple ID your children will need to have a valid email address that can be verified by Apple.  Apple requires this so they have a way of contacting the owner if there is a problem with the account, such as when you may need to reset the password on the account.  When you set up the ID, Apple will send a verification email to this email account and you will need to click on the verificating link in the email to complete the process.  If they don't currently have an email account you can just set one up with gmail or another free email hosting service.  They don't have to use the account but you will need it to set up the ID.

  • Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.

    Having arranged some scanned pictures in an album in I-Photo how can I keep them in the order I have chosen when I move the album. They all have the scan date and not the taken date and move to new positions if I move them from one album to another.
    Is there any way to re-number them in the order I have chosen so that they can then be sorted by number? The scans are all from pre-digital images that I wish to move to a photobook and I don't want to have to organise them twice!
    Thanks for any suggestions.

    I was a bit short, Chris, sorry. It is limited, what can be posted, when typing on an iPad.
    Now I am back on my Mac. I meant the following:  Batch Change the date for a large range of photos, that should have a date stepped in increments.
    Select all Photos at once and use the command "Photos > Batch Change".
    Then set the date for the first photo and select an increment, e.g. one minute.
    Now all photos will get a new date assigned, incremented by one minute, in the sequence you have selected. So you will be able to sort them by date.  This way it will be unnecessary to change the titles or filenames.

  • My macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?

    my macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?

    That indicates a hardware failure. Read here:
    http://support.apple.com/kb/ts1559
    If nothing works, you most likely have a hardware failure. Make an appointment at an Apple store to confirm.

  • My dad and I shared an iTunes account for years and now I'm getting my own, how can I keep my music and apps?

    My dad and I shared an iTunes account for years and now I'm getting my own, how can I keep my music and apps? I'm worried that I won't have any ability to access my apps and music. We have our itunes separated on different computers, so I have all of my stuff separated from his, but I don't know how to put them in my new account.

    Well... there really isn't any fully legal way to do this.
    The simplest solution is to continue sharing the same iTunes purchasing acct, but create different ones for iCloud (assuming that's why you needed to do the split).
    Slightly less kosher: Burn AUDIO CD's, of the music then copy them back to your new account.
    BE sure to do this from original acount, To keep the music info, you'll  copy over the CDDB file (in prefs somewhere) - since this maintains the data of CDs that you've had in library.... (it isn't carried over onto a user created CD.)
    There's also

  • How can i keep the music pushed to all of families devices but the calendar and notes just between my phone and my mac using icloud?

    Ok, so my whole family has the same apple ID so that we can all get the same music, and we want to be able to use icloud so that when one person buys a song it will push to all of our devices. But the problem is when I want my calendar on my mac to also be pushed to my phone it pushes to all of my familys devices. How can i keep the music pushed to everyones but the calendar and notes just between my phone and my mac using icloud?

    Oops my bad...I see that during my troubleshooting I inadvertently left Ringtones unchecked in iTunes.

Maybe you are looking for