Is it Right to do

Hi
I have one doubt? Is it right to write business method in the entity bean(BMP) class. If no why?Thanks in Advance
Sudhakr

Depends
If your business method requires read and write operations with DB (called "synchronization with DB"), then you may include your business methods in Entity Bean.
If no such operation is required in a business method, then dont ever do it
eg: If you want to validate the formate of a date. This is a business method. But you should never include it in Entity bean.
This is because the EJB container will synchronize the state of Entity bean with DB before and after every business method is run.
This is where Session beans come in. They contain all the business mmethods, whereas Entity bean is in Persistence layer and deal only in data persistence.
hope that helps
regards

Similar Messages

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • I cannot receive email properly now. When I open mail, it says that is downloading about 1,700 emails. At the very end, it gives me my newest ones. But this takes a long time. I've contacted the Internet service provider and verified all the right setting

    I cannot receive email properly on either my IPad or my IPhone. I have had them for over a year and they have always worked fine. Until three days ago, when they both started acting up. On the IPad, when I open mail, it says it is downloading about 1,700 emails. At the very end, which takes quite a while to get to, I finally get the most recent ones. The IPad is sending emails just fine.
    On my IPhone, when I open mail, it says it is downloading 100 emails, but it doesn't do that. And it gives me no new emails at all. The IPhone is sending email just fine.
    I have already deleted the email accounts on both devices and reinstalled them. I've contacted the Internet service provider and verified all the right settings. The Outlook email on my desktop is working perfectly.

    WMV is a heavily-compressed format/CODEC, and the processing time will depend on several factors:
    Your CPU, which is not that powerful in your case
    Your I/O sub-system, which is likely a single HDD on your laptop
    The source footage. What is your source footage?
    Any Effects added to that footage. Do you have any Effects?
    Each of those will have an impact on the time required.
    The trial has only one main limitation - the watermark. Now, there are some components, that have to be activated, but are not with the trial, but they would be evident with Import of your source footage, if it's an issue.
    Good luck,
    Hunt

  • I dont know if this will be in the right forum, if its not feel free to move it, but i was only wondering how can i remove all my credit card info from my apple id account but still keep the account?

    basically what title says ^^^^ it on a iphone 4s

    Go to the store in iTunes and in the top right click on your account. You can add or remove payment info there.

  • If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • My dad made a mistake on purches on my ipad, and now he owes money he can't pay off right now. icloud wont work because o it, how can I get my icloud to work so i dont have to wait for him to pay itunes off???

    (we share a apple id) My dad bought some inapp  purchases, and he thought it didnt work. so he did it again. he can't pay it of right now, and icloud reuses to work on my new ipod. i cant just make a new id, all my music is on that. how can i get icloud to work, WITHOUT waiting for my dad?

    iCloud is free.

  • In previous versions of i Tunes you could highlight a song in your library and there would be a genious list on the right side of the screen showing songs like the one highlighted in the library. Now I do not get that list. Is there a way to get this back

    In previous versions of i Tunes I could highlight a song in my library and a genious list would show on the right side of the screen listing songs that were like the one highlighted. Now I do not get that list. Is there a way to get that back?

    Hi again Bob,
    I believe I've found the feature you were speaking about now. Information on the "In the Store" feature of iTunes can be found here:
    Apple - iTunes - Inside iTunes - Using In the Store from within your iTunes Library.
    http://www.apple.com/itunes/inside-itunes/2013/01/using-in-the-store-from-within -your-itunes-library.html
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Creating a new document in Finder with right-click--How?

    Is there a way to create a new document in a Finder folder by right-clicking (or Ctrl-left)? So that the new file will be created at that very spot, in that very folder.
    In Windows-Explorer this was quick and easy. Just right-click and you could choose from a menu to create a new empty doc of the most popular (installed) programs. Text file was mandatory. The file was created where the curser was at. VERY handy as that way you didn't have to open the application, create a new doc and then when saving having to crawl your way all the way to the position in the Explorer/ Finder.
    Since I started with Apple and Tiger I've been missing this feature and Snow Leopard still does not seem to have it. Or did I miss something? I checked all the menue as well. There's not even a "Create new document". Only a "Create new folder". 
    I was just reminded of this when I wanted to create a new file on an external drive on a server to save some text in it. There was no way other than first opening Textedit, saving the empty file on the local Mac, THEN transferring the empty file to the server. Only THEN I could open it and edit it.
    There MUST be a quicker way.
    Also, in Windows you could edit this list in the menu (and add programs that would not by themselves do this). Is there a way for the Mac?
    Cheers,
    Jay

    I might have just found a solution myself:
    https://discussions.apple.com/message/10432377?messageID=10432377&amp%3b#1043237 7
    It seems other people are wondering too.
    And for those of you who don't understand why this is useful: Try it.
    Open Textedit, Apple-N, and then save the darned file somewhere deep in the labyrinth of the Finder where you've just been but withouth the file. It takes AGES.
    I, on the other hand -- at least in Windows --, right-click, new, double-click AAAND I'm on editing the file.
    VERY quick.
    It's beyond me why this is not possible on a Mac.

  • How can i print an Excel file when in the full screen mode (no print options on toolbar or right clk

    using Vista, sometimes after creating and saving an excel file, the document is not visible when the file is reopened.
    selecting full screen mode makes the document visible, but the toolbars disappear and the print option does not show up on a right click.  How can i print the document and see the document in some other mode than full screen?

    In order to print, you can click the CTRL+P keys to launch the print dialog,
    Regarding the missing toolbar, try clicking the ALT key to shouw the software menu, then look around under the view option for any available toolbar settings,
    If you cannot find it, i would recommend you to try the Microsoft support forums, as they have some more knowledge with their software features
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • The screen on my ipod touch is white all over and black in the upper right hand corner only with color dots and lines run to the left hand side but stop in the middle. how do i fix it?

    right now it is the middle of april and i bought the ipod at the beging of Agust the year befor so it still has not been a year. currently it is thursday and the screen changed to the white and black corner on the monday earlier in the week (so 4 days ago). i had just broken up with my gril friend and we were fighting. in anger i through my ipod at the wall. i was aiming for my pillow on my bed so it would hit something soft but i missed and it hit the hard concrete wall in my room. when i looked at my ipod it had turn itself off and when turn on the screen was white with a little black in one corner. i have tryed to restart it by holding down the power and home button till it restarted but the screen only got brighter and then eventually went back the the brightness it was before and turn off. i can still turn the screen on but cant unlock. i know it is still working cause my alram still goes off in the morning. the ipod is a 4th generation ipod touch 16 GB memory and is black. can this be fixed at home on my own or do i have to take it in to apple. can apple even fix it or is my ipod past the point of repair. any advice would be nice. thanks in advance.

    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                                              
    Apple will exchange your iPod for a refurbished one for $99 fr a 16 GB 4G. They do not fix yours.
      Apple - iPod Repair price

  • Hello, My iCal don't synchronize older events than two or three month ago. How can I do to synchronize all my schedule? In iTunes it's all right in Calendars. I don't put a cross in "synchronize event older than ....... days". Thanks for answer.

    Hello, My iCal don't synchronize older events than two or three month ago. How can I do to synchronize all my schedule? In iTunes it's all right in Calendars. I don't put a cross in "synchronize event older than ....... days". Thanks for answer.

    Just saw your post. Better late than never. You may want to
    consider GameBrix.com, where you can create Flash based, casual
    games using your web browser. No downloads are required. You can
    create a game from scratch using a library of images, sounds and
    game mechanics. You can also upload your own. The online script
    editor will allow you to view and edit the ActionScripts associated
    with each game mechanic. In short, a great way to ramp up on game
    design and build your own game without investing a lot of $
    upfront.
    BTW I am associated with GameBrix so any feedback is
    appreciated.

  • Is there a way to open the right click menu on the left side of your pointer?

    Whenever I try to right-click an object that's located on the right side of the screen, the pointer always automatically click whatever entry in the right-click menu which just happens to be under the pointer the moment the menu is opened. I noticed that the reason this happens is because the right click menu always forces itself to open on the right side of the pointer, and when there isn't enough space, the right-click menu will open underneath the pointer. Since this is horribly inconvenient, is there a way to open the right-click menu on the left side of your pointer?

    Are you saying you have an icon on the far right side and when you rt click on it, your pointer ends up opening wherever it lands? That is a two step process, or normally should be at least a two step process. Do you have a Mouse in your Control Panel? You should check, because there may be some properties with which you can play. For instance, I can switch primary and secondary functions on my mouse buttons by checking a box.
    When I rt click on right side, the menu opens on the left.
    When I rt click on left side, the menu opens on the right.
    In order for me to take an action, I then have to move to an area in that menu and click.
    I hope I understood your question correctly.

  • I am using FireFox 4. Where is the "Bookmark All Tabs-" feature. I would like to save my Tabs for a later session. The selection is not on the menu when I right-mouse click or go to the Bookmarks feature of the Menu.

    Missing "Bookmark All Tabs…" feature which was in previous versions of FireFox 3.x. If you right-mouse click on a neutral part of the Browser window, there would be choice of "Bookmark this page" or "Bookmark All Tabs…". I have been unable to find it either in the sub-menu or the BOOKMARK selection from the Menu Bar.

    What do you mean by Tabs sub-menu is it right-clicking on a tab ?
    I know that "ctrl-shift-D" still work.
    I know that a right-click on a tab gives the "Bookmark all Tabs" function.
    But I would like to see it back in the Bookmarks menu. (which is its logical place)
    Because today the choice only disappeared from the menu as it is still reachable through keyboard shortcut or through mouse right-click on a tab
    but tomorrow it will totally disappear and personally I don't want that as this is one of my favorite functionality.
    Tank you for your understanding !

  • I would like to know it it's possible to change the scroll bar from the right part of the firefox browser, to the left part and, if it's possible, how can it be done. Thank you!

    The scroll bar (the one used to scroll up and down any kind of website), that is normally in the right part of the firefox browser, would be of much help to me if it could sometimes be moved to the left part of the browser. Is this possible? How can it be done? Can anybody tell me the exact steps to take in order to do this (if it is possible of course)? This would be helpfull to me, since I think that the firefox scroll bar is overlaping the scroll part of the facebook chat sidebar, since I just can see a few people on this facebook chat sidebar and I can´t scroll along it, as I could a while ago. So my guess is that the firefox scroll bar is covering the other. In order to solve it in a simpler way, I guessed that if the firefox scroll bar could be moved to the left side of the browser, this problem could be solved. So, can anybody help me?

    http://kb.mozillazine.org/layout.scrollbar.side
    Type '''about:config''' in Location (address) bar
    filter for '''layout.scrollbar.side'''
    Right-click the Preference and Modify it to '''3'''
    You may need to reload any pages open to have scrollbar move to left after Preference change.

  • Error while opening work item in Inbox sbwp for verifcaion of right invoice

    Hi,
    I am working on SAP workflow with IXOS.
    I faced  a problem in opening the workitem when it came into the inbox.
    In nomal scenario when i click on the workitem under workflow folder in my inbox, it opens the attached document in document viewer, i can see the attached document ,and after verifying it ,i can furher process it.
    But now when i click on the work item in my inbox it directly takes me to the next processing window, without opening the attached document for my verification, so i am unable to check that i am processing the right invoice.
    Please help.

    Yes, it was working fine before.
    And also the problem generally rise in afternoon.

  • Duplex printing problem with hp 9500 (right side always just half printed)

    Since OS X 10.6 was released there is a problem with the print out of duplex printed pages (specially via Indesign CS4 broschure printing function). Using Mac OS X 10.5.8 with old and new driver everything is fine - but under 10.6, 10.6.1 or 10.6.2 neither old nor one of the new driver releases 2.1, 2.2 or 2.3 will work.
    When I´m trying to print a duplex printing page the print of the right page will be cutted off at the half of the page - like the page would not print A3 horizontally but vertically (so the rest is cut off). The new print features within the printing menu (manual duplex print and print broschure will have same effect but with a strange miniaturization to A5 - although it should be A4). All in all the is no way to print out a duplex printing with OS X 10.6 and hp 9500. Will there be any solution in sight? Are there other with the same effect?

    I have an identical issue to neuegestaltung, but with an HP 5500. I can print single-sided to A3/tabloid successfully but when I try printing duplex the right quarter of the page is cut off on both sides - almost as if it thinks it's printing portrait.
    Applications affected include Adobe Acrobat 8 and 9, Adobe CS3 and CS4 applications including InDesign.
    Preview works fine, but of course the colour balance makes the output unusable.
    OS 10.6.2, print driver HP Color LaserJet 5500 v 3010.107.
    Using the Gutenprint driver I can't either do A3 or colour so there is no solution there.
    Worked fully and correctly with the same apps under 10.5.x.
    At the moment I am running Windows XP under VMWare to print from Acrobat, which is plainly silly.
    Any useful* observations, suggestions or workarounds welcome.
    *Needless to say, "It's Adobe's problem" or similar are not acceptable responses. It may well be an interaction between the Adobe's applications and Apple's printing system and/or driver of course; in that case the companies need to collaborate to solve the issue.

Maybe you are looking for

  • Times in system.log different than server's clock

    Hello, The time that an event is recorded in system.log is different that the current time in the server's clock. For example, there is the entry: Dec 7 02:22:42 XServe DirectoryService[52]: Failed Authentication .... but the time on the server is De

  • Computer HD crash

    My computer HD crashed with no backup. I have 56GB worth of music on my iPod. I had a new HD installed and everything is working fine except I can't figure out how to copy my music from my IPod to iTunes on the new HD so I can start sync'ing again. T

  • Unable to surf some pages in windows 7

    hi friends  current am using windows 7 64 bit, but from last two month am unable to open some pages on my G550. pages like apple.com and unable to login in itunes store. Am having 1 mbps internet connection so what should i do

  • Triple click doesn't select all when autocomplete appears.

    I recently updated to Firefox 34.0.5 (on Windows 7) and it seems like every time I get an issue sorted out, I discover another one. Today, I have realized that triple-clicking within a form or text field does not select all of the text if the autocom

  • Class instance sharing

    Hi, I have an application that will be run by many user. I think this will create multiple instance on the same VM? Now my question is If I have a singleton class, will it be shared among the instances of the application? Thanks, Max