What happens when bean exits?

I have a CMP bean and a JSP page as a client. From what I understand, the client will performs a JNDI lookup with the lookup() method and then uses the home object to create an entity bean data with create(). At the end, weblogic will destroy the beans by calling the remove() method of each entity.
Can someone please explain to me, in details, when the beans get destroyed, what are the expected changes in the database? I've google this for a while, but couldn't get an answer, can you please help? Thanks.

You must make the difference between Entity and Session beans. Creating an entity bean will imply its creation in the db. Removing an entity bean (by explicitely call of remove()) will imply the deletion from the db.
In case of a Session the creation does not imply anything to the db layer. Same for remove.

Similar Messages

  • What happen when an error occurs during Snapshot-Refresh?

    Hi,
    I would like to know what happens, when an error occurs
    during a refresh (COMPLETE-REFRESH) of a snapshot?
    Is there a possibility for exception-handling??
    During a complete refresh the data in the snapshot will be deleted an the requested new from the master-side. Now when
    an error occurs during the refresh what happens with the "old" data of the snapshot??? Will it be lost?
    Thanxx
    Schoeib

    Each thread has its own error state. To get the results for a thread (including error result), you need to have a wait step which waits for it. If a thread has an error and you wait for it, you will get the error at the wait step that waits for it.
    If your main thread has an error and you want some worker thread to exit, you should add code to the cleanup of your main thread's sequence which signals the worker thread to exit (you should already have some sort of mechanism for signaling the worker thread to exit (there are many ways to do this, for example, a boolean variable passed by reference to the new thread's sequence, or a TestStand notification).
    If your main thread is getting an error, but is stuck inside a step, that problem is probably specific to something your code is doing, that is not the normal behavior of TestStand. You will need to provide more details or an example sequence in order for us to better understand what is happening.
    Hope this helps,
    -Doug

  • What happens when an iPod is synchronized with an iTunes library that is bigger than the available space on the iPod?

    What happens when an iPod is synchronized with an iTunes library that is bigger than the available space on the iPod? I did this some time ago. On screen was shown available space somewhat less than 120 GB, but maybe somewhere between 10 and 20 GB more in the library. I had to get the iPod updated anyway, so I did proceed. However, afterwards the total content of the library was only about 110 GB. Now I wonder what did actually happen. Was the first sign only corrected for double copies of the same files or lost files or where files deleted from iTunes? And if files where deleted from iTunes, were they also deleted from my computer?

    Same as you would if you bought a pc; copy everything from your old computer to your new one.  Then you can just sync everything from the new computer, as you did with the old one.

  • What happens when multiple users access the same servlet?

    Do the users share all the same resources? Or is a new process generated for each user? I have a servlet that builds a string to return to the user and I only have myself to test, so I can't really see what happens when many users access the servlet. Is there a possibility that the string will get screwed up, like when dealing with multiple threads, or do all the users get their own resources and I don't have to worry about that?

    huh? if you can point a test servlet at it, you can point a browser at it (even if the servlet does not serve html it will run)
    try pasting the servlet URL into a web browser
    refreshing multiple browsers repeatedly could provide a manual test

  • I want to change my Apple ID because I have a new email address, but what happens when someone tries to facetime me using my old Apple ID?

    I want to change my Apple ID because I have a new email address, but what happens when someone tries to facetime me using my old Apple ID? Will they still be able to contact me on facetime using my old Apple ID?

    Not if you change the ID.  You would need to give them the new address.

  • I recently downloaded Parallels 9 to my imac so I could install Windows 7 Home Premium and had no trouble everthing is working fine the only question I have is is there a benefit to migrating the 2 together and what happens when I do Thanks.  Ricco

    I recently downloaded Parallels 9 to my imack so I could install Windows 7 Home Premiumwith no problem and everthing is working fine, and I was thinking of Migrating the 2 2 and was wondering what benefits there would be and what happens when I do.

    Windows 7 will peer down through the VM and remember what hardware the VM is installed on. Migrate the VM to different Mac hardware, and on first boot, Windows 7 will advise you that you are not using genuine Microsoft Windows. It will then treat you as though it believes you misappropriated it.

  • Time Machine backup created on Mac with a large hard disk. What happens when restore to MacBook Air with small SSD drive?

    What if a Time Machine backup was created on a Mac with a large hard disk, e.g. 500GB iMac - and I buy a new MacBook Air with a small SSD hard disk e.g 128GB. What happens when I need to use the larger Time Machine file to set up the new MacBook Air? What happens to all those files that can't fit on the smaller SSD drive?

    It is not the HD size, but rather the size of the data it contains. If you right-click your 500GB drive and select "Get Info" you can see how much is actually being used.
    Naturally if you are using more space than the new drive has, then you have to make some choices about what you want to keep and what you want to keep archived.
    I don't know what options are available but you may simply have to do a manual restore of files you want, in groups.

  • What happens when I restore data to a non-factory set iPhone?

    Okay, another iCloud question. What I did was basically delete a game, start a new one, and now I want my old game back (saved to ICloud). What happens when I restore full data to a non-factory set iPhone? Will it overwrite current data? Will it delete everything? I just want to know, I'm such an iOS noob. :-/

    A restore is all or nothing.
    If a backup is restored to the device, ALL data currently on the device is wiped and replaced with the data from the backup.
    Restoring a backup to get one saved game back seems rather extreme and silly.

  • What happens when HTTPS communication fails during certificate check?

    Hello Experts,
    I have a scenario where a Bapi functionality(server proxy) is exposed as a webservice .
    So scenario will be SOAP -> XI -> Proxy (calls a BAPI)
    Here we are going to use HTTPS (SSL).
    I would like to know :
    What happens when a check for certificate validation fails in XI? It may be due to invalid certificate, expired certificate or a request from unauthorised user-
    - Will it be raised as a exception and we need to do some  configuration to inform it back to Sender?
    - Will the message fail in Moni with red flag ?
    - Alerts will be created ?
    Please share your experiences and expert sugestions.
    Thanks in Advance!!
    Regards,
    XI Queries.

    Hi Abhishek,
      Thanks for the reply. I will keep this in mind and design the scenario & error handling accordingly.
    Appropriate points awarded
    Kind regards,
    Xi Queries.

  • What happens when max job limit of few RAS server is reached?

    Hi, I would like to know what happens when max job limit of server is reached. I know that we need to increase the job limit but my question is a bit different.
    We have 7 RAS per servers. I got this message "The maximum report processing jobs limit configured by your system administrator has been reached" on 4 RAS servers but not all 7. I am tracking servers using PIDs on WIndows server 2003.
    Does this means this is a warning that Job limit of 75 (in our case) has reached for 4 servers and for remaining 3 servers its still not reached. This means 3 servers are still able to handle more report request as they have not reached their max limit.
    OR
    This message means all of the servers have reached to their max limit and there is no more request which can be taken.
    We are doing 3000 users performance testing on 21 RAS servers.
    We are on BOXI R2 SP3 on IIS and opening crystal reports using .NET SDK.
    Thanks,

    This is same as my other question so I am closing this too. We have set limit as unlimited and during peak load we had almost balanced reports on all RAS.

  • What happens when Time Machine starts to fill up a drive?

    Using Time Machine on a partitioned External HD has been an absolute snap! I love the app. My main disappointment with it is that it has no literature on HOW it works, and no real ways for me to set different controls for it other than on and off.
    My question is that what happens when a drive starts to get full? I have about 30 gigs left on the partition, and I am wondering what Time Machine is going to do. Does it just delete the oldest material, or does it simply fill up and tell me to look at everything on there and decide to clear it all off. I hate that I don't know what will happen.
    -Jon

    From what I've read (I've not gotten a drive full so I can't speak from experience), when the TM drive gets full, it will notify you that it's going to start deleting the oldest backups to make space for the new ones. This general behavior is mentioned in the Mac Help for Time Machine, though it makes no mention about notifying you before it deletes the old backups, so I'm not sure about that part.

  • What happen when Database in Backup Mode?

    Hi,
    What happen when we kept database in backup mode, Means using command 'Alter database Begin Backup';
    Thanks...
    Asit

    jgarry wrote:
    EdStevens wrote:
    jgarry wrote:
    What do you think of the snapshot backup on page 22 of [url http://en.community.dell.com/techcenter/storage/w/wiki/2638.oracle-11g-backup-and-recovery-using-rman-and-equallogic-snapshots-by-sis.aspx]this paper? (No sarcasm, I'm curious about these snap solutions in general. Though I am really down on Dell for what turned out to be a brain-damaged laptop I got for my wife.)
    Well, you can't really make a judgement about a company's enterprise products based on an experience with their consumer products.What if it came from what they call a business products catalog? They intermingle laptops with servers.
    Don't know, in general. I do know that for Dell there is a distinct difference between their decidedly consumer laptops (Inspiron) and their "business" Lattitude series. I know that at my last job we had a lot of rock solid HP equipment (servers and SAN) - vs. an HP laptop I had that was trouble from Day One. I'm sure there is a point in desktops and laptops the line can get blurred, but in the case of the OP, he was no where near that fuzzy line.
    >
    >>
    Perhaps I can find time to read the white paper over the weekend ....

  • What happened when multiple audio players start at the same time?

    Hi,everyone!
    I am developing a game, using JMF to play sound.
    These sound are stored in mp3 files.
    In order to decode mp3 files, I installed JMF and mp3-plugin( jmf-2_1_1e-windows-i586.exe , javamp3-1_0.exe).
    In the Game, a background music play back repeatly.When EndOfMediaEvent happened, I setMediaTime(new Time(0)) and then start().It works well.
    There are several sound-effects,may start at any time,
    so 2 or more sounds may play back at the same time,
    and then Strange things happened.
    Those sound-effects, usually short, can not play back inextenso.
    They lose some beginning part, the length of the part is not constant.
    i.e. Audio should start at MediaTime 0, but now they start at MediaTime x, x >= 0,
    not only that, sometimes, Audio process bar runs, but no sound heared.
    I do not know what is happening.
    So please help me, thanks a lot.
    The way that I use Players:
    initialize:
    create realized players from mp3 files
    prefetch them
    finalize:
    deallocate not null players
    then close them
    using:
    player.setMediaTime(new Time(0))
    then player.start()
    My Environment:
    Windows XP, java 1.4.10, JMF2.1.1, MP3-plugin1.0

    This is very strange, difficult to guess the cause... never had such an issue. Normally when the object to which the audio is attached disappears the audio stops. So in your case going to a next slide should stop the audio of the previous slide. Same with object audio.
    Do you have the different audio clips (one per slide) in the Library? Could you try to delete the audio on the slide and drag it again from the Library to see if you have the same result? And what happens when you attach the audio clip to an object on the slide (you can create a totally transparent rectangle with no stroke that will not be visible to attach the audio).
    Lilybiri

  • I have both the 250 gb high performance hard drive and a 1 ter byte hard drive.  What happens when the 250 gb hardrive is full?

    I have both the 250 gb high performance hard drive and a 1 ter byte hard drive.  What happens when the 250 gb hardrive is full? This on Imac desktop

    Never let a drive get more than 80% to 85% full.
    AND keep 50-100 GB of free space on a startup drive to allow proper function of virtual memory in all OS X versions from 10.5x to current versions.
    10.4x can get by with 20 GB of free space on the boot drive, but more is always better.
    I try and keep all boot drives between 50 and 60% of capacity.
    Beyond 60% and up to 90% capacity, seek times increase almost exponentially; performance suffers.

  • Lost my iPod, remotely locked it through iCloud. What happens when the battery goes out?

    Hello!
    I lost my Ipod, but managed to locate and lock it remotely through Find my iPod and iCloud. It was located once, but hasn't been located again in the last four days. I think the battery may have run out. What happens when the battery is charged and the iPod turned back on? Does the lock and everything else that can be controlled with Find my iPod still apply?
    Thank you!

    Yes, because when you remotely lock the iPod via Find my iPod, the lock code is set as the lock code that you would use to unlock the iPod if you used a passcode normally. As long as the iPod is still connected to your Apple ID, Find my iPod should work as log as the iPod is connected to wifi.

Maybe you are looking for

  • Problems with Office for Mac 2011 installation

    I'm trying to install Office for Mac 2011 on my new (bought yesterday) Macbook Air I entered my pin for the Office into the site and got my download link I started to download it and it said it would take over 4 hours and when the download got to hal

  • 13'pro or 13'air ?

    I am a second year uni stdudent studying graphic design, I was using PC but it seems I need a Mac for my following years. I need my new Mac run some design's software like photoshop illustrator and so on, so which Mac is best for me? I like the weigh

  • CANT GET MY BACKUP iPHONE TO RESTORE FROM BACKUP

    I had to take in my everyday iPhone 3G 16G to get it replaced under warranty. I backed it up before I took it in,and then tried to do a restore from backup to my spare iPhone 3G 8G. It will transfer all of the contacts, text messages, calendar, and s

  • Download Presenter 7 error

    Download can't find my PowerPoint, tried IE and GC, no luck. This is a purchased Presenter 7 that I never downloaded. Tried IE and GC, also tried download from Adobe site and same error. My machine is running 64bit Windows 2010

  • Combine Files Error

    Hi I am using Mac OS X Version 10.8.2 and the Adobe Acrobat Pro XI Trial Version, using the combine files option I get the following error: "Acrobat does not support the conversion of one or more of your files to PDF. Please remove these files or go