Why are EJB's in containers?

Why are EJB's in containers?
Isn't it annoying that you have to always install Jboss, Weblogic,...
What's the advantage then?
Is this one of the reasons why to use EJB and not Hibernate?

well one problem I see is that you removed the "hsqldb-ds.xml" file, which contains the DefaultDS datasource. One of the JBoss services depends on this datasource. You can find the declaration for this MBean in deploy/uuid-key-generator.sar/META-INF/jboss-service.xml. Change the "Datasource JNDI name" to your MySQL datasource name.
However, I don't think this is the real problem you are having. It seems like the persistence unit is not being deployed properly, so somewhere in the log output there should be another exception that says why the persistence unit is failing. Most likely a typo in the XML.
edit: hmm, failed to see the other thread on this topic... OP: please don't double post, it only leads to confusion!

Similar Messages

  • Explanation - Why are IAS 9i and an RDBMS both needed ?

    Why are IAS 9i and an RDBMS both needed ? After all, IAS 8I/9I does contain a "database" in it -- but Oracle calls it a "data cache" !!
    Here's why ...
    The IAS 8I/9I "data cache" is intended to be a "performance enhancment" mechanism to avoid network round trips to the back end rdbms (called the 'origin' database in IAS terminology) for "rarely changing" data or application code accessed/used in the IAS 8I/9I mid-tier.
    The IAS "data cache" was initially extracted from rdbms 8.1.6 to use in IAS 8i (aka IAS 1.0.0 or 1.0.1) and now rdbms 8.1.7 to use in IAS 9i (formerly referred to as IAS 1.0.2).
    This was because the complete architecture and functionality needed to provide the IAS 9i's "performance enhancing read only" cache functionality already exists in the oracle 8i rdbms.
    (talk about o-o wanting to have high reusability !!)
    How about a practical application of why would you do this ??
    Think of the web site activity of a major online order system, for example, a ".com" that sells books. We can all think of the famous ones who would be ideal users of this type of design.
    Most of the transaction activity in an online order system is customers "browsing" the product catalog, looking at the
    descriptions of the books they might consider to buy. When a customer identifies a desired book, the customer can place an order.
    This typical customer behavior looks at the description for each book which is "rarely changing" information that is normally accessed in a "read only" mode.
    To improve performance for this online order system, the "rarely changing" information can be stored (or "cached") on the mid-tier in IAS 8i/9i's "data cache".
    How do this improve performance ??
    With the information available in the mid-tier "data cache", network roundtrips by IAS 8i/9I applications to the 'origin' rdbms are avoided, reducing the workload on the network and the 'origin' rdbms.
    Why do i still need a back-end or 'origin' rdbms along with ias 9i ?
    You still need the 'origin" database as the "master repository" for your books, their inventory system, and orders placed with your business.
    You also have the other necessary business systems they may or may not take advantage of the IAS design -- like shipping, payroll, Human Resources, etc.
    What happens if the data changes ?
    I kept repeating "read only" -- so - the next question is what do you do with "new or changing" data - like placing an order or updating the inventory ?
    Since the "master copy" of the information is retained on the origin rdbms, then all changes will occur there.
    When a new book is added or an existing book's information is updated or a book is dropped from the inventory, these changes are applied to the origin database.
    This information is then "refreshed" on the IAS 8I/9I "data cache" using the "management policies" available within IAS 8I/9I.
    These policies controls how and when to "refresh" the IAS 8I/9I data cache.
    null

    In the following document:
    1) "Oracle9i Application Server Technical White Paper" located at :
    http://technet.oracle.com/products/ias/pdf/9ias_102.pdf
    don -- right
    At the bottom of page 16 and the top of page 17 is the following....
    'The Java engine inside Oracle9i AS is the Oracle JVM.'....
    don -- right --- new name is Enterprise Java Engine (EJE)
    'The Oracle JVM is integrated in Oracle9i AS, giving it the same advantages and benefits available to the Oracle Database ...'. '
    don -- almost right -- you left the key phrase off of it ...
    it is completed as follows : (CAPS - are mine for emphasis)
    'The Oracle JVM is integrated in Oracle9i AS, giving it the same advantages and benefits available to the Oracle Database FOR EXECUTING JAVA BASED APPLICATIONS ON THE SERVER'. '
    STEVE --
    that's why i made the comment in the previous post which i've copied below :
    I don't think of it as a "database" even though some literature might refer to it as one in IAS 9i standard edition !!
    The term "database" has a lot of extra functions with it that are not in IAS 8i/9i!!
    for example, most RDBMS's have :
    1) updateable tables, etc.
    2) backup and recovery of data requirements
    3) etc.
    That's what makes the EJE in IAS different from an RDBMS -- the extra rdbms functrions are not needed...
    That's why I think of it as a "Java Code Container" that holds the Oracle Enterprise Java Engine(EJE) in it. I was stuck on this also - now i can mentally exclude all of that extra functionality by calling it a "java code container" and not thinking of it as a "database".
    Since Oracle JVM is the common Java environment for both the Oracle database and Oracle9i AS,...'.
    The above gave me the impression that 9i AS has a JVM independent of a database.
    don -- 9i AS has a JVM independent of a database -- they are the same item -- a "stripped down" database or as i call it a "Java Code Container" that holds the Oracle Enterprise Java Engine(EJE) -- formerly called the oracle 8i jvm -- in it.
    i think the term "database" in the literature is being used to emphasize where it came from (stable oracle 8i -- as opposed to totally new technology)
    but
    i personally think the term "database" implies to many people, it is a "fully functional rdbms" ... so they assume they don't need a back end -- or in ias terms -- an 'origin' rdbms.
    However -- i think this is where the confusion is ..
    as people understand the differences between ias and rdbms, they soon realize they must have an rdbms.
    However, the administrative instructions (that deal with setting up OSE) seem to point that the JVM is in a database.
    don -- right -- it is a "stripped down" database or a a "Java Code Container" as i call it.
    you still need to deploy the java code (servlets, jsp's, ejb's, corba, and java stored procs) to it.
    The command line functions that you use to do that with the 8.1.7 rdbms -- still apply.
    Commands like :
    loadjava, deployejb, dropjava, sess_sh, publishjsp, publishservlet, etc.
    Note :
    Obviously ias 8i "EJE" or ORACLE 8i JVM (the old name), is based upon the rdbms 816 functions (no OSE in it), so you can't deploy servlets and jsp's to the ias 8i EJE just like you can't to the 816 rdbms.
    I do find this subject (where is the JVM located) very confusing.
    don - right -- but you are picking it up -- hang in there !!
    Steve you asked --
    Don - is the EJE (OSE/OJVM) implemented through a database?
    'The Java engine inside Oracle9i AS is the Oracle JVM.'....
    don - right
    keep in mind from a java perspective -- the EJE is a "Stripped down" database that acts like a java code container that you connect to -- just like in 817 --- so you can deploy your code to it.
    it's also a jvm -- and you execute your deployed java code in it -- just like in 817.
    i hope this helps and i didn't confuse this topic further for you ...

  • Why does EJB needs two interface???

    Hi All,
    This has been asked by many ppl and many of you might be having
    the correct answer for it. Please tell me....
    Why does EJB needs two interface (Home and Remote Interface)?. Why not one?
    Thanx to all...
    Regards
    GoodieGuy

    Hi Goodie ,
    Its good question and its a very valid one , one has to have doubt
    why two , why not one ..
    Here the answer goes ..
    First of all you need to understand that its a distributed computing technique ie I mean lot of people will be accessing the bean at the same time , right ? OK , you cann't access the bean directly.
    and lastly the stateless and entity beans do instance pooling.
    The very purpose of having two interfaces is
    1) To differnentiate the bussiness logic and life cycle methods .
    2) The home interface inititates life cycle methods like creation , destruction etc .
    3) There are lot of beans in the container , and through home you are
    creating the instance or accessing one of them .
    4) Once you have home object using it we get the remote object ie the instance of the bean that you want to access if stateless any bean can be called , if statefull depending upon the parameter in create method that respective bean is created and invoked .
    In ejb 1.0 and 1.1 even though the bean and the client are in same jvm its assumed that they are remote and in 2.0 Ver we have local this is to avoid network traffic .
    Hope you have got the answer , but if u still need clarification
    read EBRoman book first and second chapters thoroughly and then proceed
    a head.
    Bye
    Mahesh L.
    ============

  • In Pages 5, why are page thumbnails different sizes?

    So I'm using 5. And I must say I think it's brilliantly done after a long period of ******** about it. I guess I'm not asking of it anything it doesn't provide and what it does it does very well - though I'm puzzled by the behavior of selecting text via the keyboard.
    Anyhow, that's not my question. I'm working with a long text document. I notice that as I work the page thumbnails become different sizes. It's subtle but it's clearly intentional. I reckon it's trying to tell me something but I don't know what. Haven't been able to find any info in the manual and was wondering if any of you clever people here might know. Thanks.

    This is what I meant about how rude you are though.  Your answer DOESN'T EXPLAIN ANY OF THE BEHAVIOUR myself or the other person were reporting.  The only assumption that I can make is that you posted here for the sole purpose of implying that we are both mistaken or stupid. 
    How is this helpful at all? 
    How do you have 32,485 points when you are obviously more concerned with insulting people than helping them out?  It puts the lie to the whole idea of "Apple Support Communities." 
    Also, I specifically informed you that your comments were insulting and unhelpful and politely requested you not post on this thread anymore or at least until you had some kind of actual information, yet here you are.  Posting again, with no content other than the implied insult.
    I'm not stupid.  I know what a section break is, I know what a page break is.  I'm a writer who has used innumerable word processing programs over the years and have been an IT worker for 10 years now. 
    I have a Pages document.  It has no (or only one depending on your point of view), section(s).  It has page breaks only.  The pagination is set to start at "1" on the first page and proceed normally to the end of the document (300 or so pages).  I am using Pages 5.5.2 on a brand new iMac.  I have NONE of the previous or older versions/types of Pages on my computer. 
    The pages thumbnails on the side, do actually CHANGE SIZE randomly as I am editing the document.   These differing sizes are NOT CORRELATED WITH THE BEGINNING OR ENDING OF SECTIONS.  These size changes are also NOT CORRELATED WITH THE PAGE BREAKS (in case you were about to argue the similarity of page breaks and section breaks).  As I work through the document and scroll up and down editing here or there, the size of the thumbnails RANDOMLY CHANGE SIZE.  Sometimes this is correlated with me working on a section, sometimes I can work on a section and no change happens at all.  The thumbnails that change size often change back again when I scroll back to them later on. 
    So please ... Try to act like a decent human being and either help out, or go away.  STOP POSTING THAT WE ARE WRONG, when you DON'T in fact know we are wrong.  STOP INSULTING ME by assuming I am stupid. 
    Why are you even here if you don't want to actually HELP anyone? 
    To anyone else reading this:  I am having a real bad time with this fellow who is just the most insulting person I have met for a while, however many of my posts about him are being deleted.  If anyone knows (including the mods of this forum) of the proper way to REPORT or get rid of a troll/abuser like him on Apple Support Communities or a place to report his behaviour, please let me know. 

  • Why are my current calls being interrupted by new calls?

    Why are my current calls being interrupted by new calls?
    I'm using iPhone 6 plus and reset my network settings multiple times. The issue is random.

    glic1 wrote:
    Why are my current calls being interrupted by new calls?
    I'm using iPhone 6 plus and reset my network settings multiple times. The issue is random.
    Are you saying when your on a phone call and someone else calls you it does what exactly?  Disconnect your current call with the new call?

  • I have 100's of CDs that I have downloaded to my itunes library and they are in the library playable but they do not show up in the C drive under the iTunes Music folder under users.  Why are they in the libary and not in the itunes music folder. Win 7 OS

    I have 100's of CDs that I have downloaded to my itunes library and they are in the library playable but they do not show up in the C drive under the iTunes Music folder under users.  Why are they in the libary and not in the itunes music folder. Win 7 OS.  When I look in the library under the get info screen it says they are in the folder itunes music, under the c: drive but when I actually go to that folder to look for them they are not there....HELP!

    Hello RumDog,
    I think this article will help you find the media in your library.
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Discovering and changing the iTunes Media folder location
    Note: You would usually only change the iTunes Media folder location to share music between accounts on the same computer. See this article for specific steps on how to accomplish this. Also, see this article if you want to know how to move your music to a new computer.
    Mac OS X: Click the iTunes menu and choose Preferences.
    Windows: Click the Edit menu and choose Preferences.
    Click the Advanced pane. iTunes displays the location of your iTunes Media folder.
    You can then:
    Note where your media folder is, such as for backing up your media.
    Use the Reset button to reset it's location to the default (which is the iTunes folder).
    Click the Change button to select a folder for a new location. Once you change this location:
    If you make a new or alternate iTunes library, the new location will be used by that library.
    Existing files will not be moved unless you choose File > Library > Organize library and choose the option to "Consolidate files."
    From: Where are my iTunes files located?
              http://support.apple.com/kb/ht1391
    Cheers,
    Sterling

  • HT204053 why are not all my songs I have purchased in the itunes store and are on my computer not on my phone?

    why are not all my songs I have purchased in the itunes store and are on my computer not on my phone?  Very frustrating I purchaed almosta $100 worth of songs for a trip and they are not on my phone after continuious syncs.  Do I have to pay for itunes match for this?

    Welcome to the Apple Community.
    Have you actually selected them to be synced to your device from the iTunes sync settings.

  • Why are some of the loops in GB 'greyed

    Why are some of the loops in GB 'greyed out' " I'm specifically interested in 'slide guitar' for example and cant find a reason why there's no access. My iMAC was bought in April 2010??

    Court Kizer wrote:
    Would you please stop spamming every single apple garageband discussion forum with your website. It doesn't have the answers on how to force the loops to download.
    You're using the forums to spam your site in almost every single thread, and wasting users time.
    Have to disagree with you there, Court Kizer. The Bullets&Bones site is, in many ways, where I really learned how to use GarageBand.
    Take a look at the list in the Top Users box on the right. Those points are awarded by people who got their answers from the advice posted.

  • Why are animated gifs not displaying animations in the preview?

    Why are animated gifs not displaying animations in the preview?
    My coworkers and I are not seeing a animation in the preview pane in Adobe Bridge CS6 even when clicking the play button in the preview window. However, we do see a graphic of the first frame and one person sees 1 frame when clicking play and one other frame and then the animation stops, however, that is not the complete animation.
    I'm using Windows 7 32 bit
    My coworkers are using a mac.
    One coworker has apple OS Mountain Lion with a Intel Quad-Core Xeon – 64 bit system.
    Is this fixable or in the works as a patch? Otherwise we have to open these docs in a browser in order to view them properly.

    I've just come to the realization that some animated gifs do play fine and others do not. A coworker of mine suggests that if it's an animation made via Adobe Photoshop, it'll work in bridge but will not if it's made using something else.

  • Why are my iTunes and iPhoto crashing every time I try to open them?

    Why are my iphoto and itunes crashing every time I open them?  This is a new problem on my Mac Mini.  Have the latest software on my Mac Mini and the latest iLife sotware.  My mac mini is about 5 years old, always kept up to date.
    Processor  2 GHz Intel Core 2 Duo
    Memory  2 GB 667 MHz DDR2 SDRAM
    Graphics  Intel GMA 950 64 MB
    Software  Mac OS X Lion 10.7.3 (11D50b)

    Hello Majorie,
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    Also, how much Free Space is on your Hard Drive?
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.

  • Disc Burner. Why are some files not readable or writeable?

    Hello,
    I am trying to backup my friends computer files on a beige G3 (233 MHz). I am burning about 6 DVDs of AIF music files. Most of the files are about 30 - 40 Megs in size. Often I receive error messages on particular files that read:
    "The operation cannot be completed because some data cannot be read or written.
    (Error code - 36)"
    Followed by the choices: "Stop" or "Continue".
    I have a bad feeling that my startup disk is too small but I am not sure.
    Most of the files work fine. However some of the files cause disc burner to not be able to use them in the disc image before I burn. Why would this be?
    Here are the specifications:
    Computer: beige G3 with two hard drives (one SCSI and one ATA hard drive) and a Pioneer DVR-110D DVD writer which is Apple supported (Apple system profiler indicates Apple supported on this DVD writer). My blank DVD disks are Sony Vermatim DVD-R (1 - 16x speed support). Although I think my beige G3 only writes them at about 2 or 4x.
    I am using OS 10.1.5. My startup disk which has OS 10.1.5 in it is a 4 GIG SCSI disk. Is this big enough for a startup disk (for creating 4.5 GIG DVDs)? My files are on the second hard drive which is a 40 GIG ATA disk.
    I have a bad feeling that my OSX startup drive is too small for disk burning - it is only 4 GIGs in total and OSX Disc burner (Disc copy) is first making a disk image on my startup volume before it burns it. Perhaps that disk image is too large for the startup volume. Is there any way I could ask OSX to put this disk image on the second larger hard drive instead (not the startup drive?).
    Here is my process (I hope I am doing this right - I am new at this):
    1. I first insert a blank DVD-R
    2. A message pops up asking my if I would like to create a blank disc image for this disk (I think this is the typical Disk Copy utility window. I say "yes" and give it a name and choose the "DVD-R or DVD-RAM" option. (I am not sure if there are other important settings to choose here or better settings to use but I guessed the other options that seemed obvious. A blank disk image is created with an icon that looks like a DVD disk.
    3. Then I drag my chosen files to this blank disc image. It takes about 30 minutes to copy over. Thats when I receive the error message that some files couldn't be "read or written". The other files work fine but it would be nice if they all worked.
    Why would some files not be readable or writeable?
    4. Then I choose file/burn in the top menu and the DVD is created. This takes another 20 - 30 minutes. At the very end of the process another message pops up saying:
    "Sorry the operation could not be completed because an unexpected error occured (error code -28)" Followed by an "OK" button.
    However all the files that made it onto the final DVD are fine - its just that its not all of the ones I originally chose in the first step when dragging to create the disk image.
    Am I doing this the right way?
    Why are some files not "readable or writeable" as it indicates in the error message?
    Is my 4 GIG startup disk too small for this? or are the music files possibly corrupt? or could there be some other possible problem?
    Thanks

    To follow up, I have some good news. After following your advice Kappy, it now works very well Thanks! Instead of using the 4 GIG volume for the OS, I am now using an 8 GIG partition on an 80 GIG drive. So now the OS has some room to operate. No disk errors occured on my first DVD
    Now there was one problem. The second DVD burned gave me an error. I am not sure why but I am going to guess that because I had to installed the OS onto an 8 GIG partition maybe the OS needs to be rebooted in between disk burns because although 8 GIGs is certainly greater than the 4 GIGs I gave it last time, it still isn't a lot of space - maybe just enough to do one DVD at a time. Thats only a guess. So I rebooted to see if that clears the system out ready for the next DVD and I am trying to burn the second DVD again. If I remember I will report back. In any case, yes, this seems to be working. I hope this second DVD burns well too.
    Thanks Kappy

  • Why are both SQL_ID and PREV_SQL_ID null?

    session A is blocking session B.
    it was row-level lock.
    But, why are both SQL_ID and PREV_SQL_ID null in session A?

    Well, what do we know?
    Session A must have an uncommitted transaction.
    That uncommitted transaction is blocking session B.
    But session A could well be doing nothing now, could be churning away doing some sort of processing outside of the database (java client you said), might well be off doing something elsewhere in a distributed transaction.
    Who knows?
    Not necessarily the database.
    If you have ASH licensed, you might, might get a better picture of what session A was doing by looking at DBA_HIST_ACTIVE_SESS_HISTORY but as this is sampled data and your statements might fly in and out, it might not be helpful.
    Note that even if prev_sql_id or sql_id were populated, these might not be the statements responsible for the lock.

  • I do not have many messages but my iphone 5s says messages take up 4.6GB of space.  When comparing with friends who have many more message, less than 1 GB is being used on their phones.  Why are mine taking up so much space and how do I correct that?

    I do not have that many messages on my new iPhone 5s (maybe about 15 conversations and only one or two going back a little ways) yet when I go to Settings, Usage it shows that my messages are taking up 4.6GB of space.  When comparing with others (some who have hundeds of messages) they are using under 1GB for their messages.  Why are mine taking up so much space??

    I found a post with this solution that worked for me - .Do a backup, then download ibackupbot. It lets you look into the contents of that backup. Look in system files>mediadomain>library>sms>attachments. I found a ton of huge files related to long deleted texts. ibackupbot let me delete all that old crap. I then restored the phone with that now modifec backup and Bingo! freed up 9 GB. No problems.
    But note, if you are not technically inclined you probaly don't want to be digging around and deleting back up files. You delete the wrong thing and you could jack up your phone badly. Be careful.

  • I have 2 phones on my iTunes account, why are text messages showing on the second phone when sent from the first

    I have 2 phones on my iTunes account, why are text messages showing on the second phone when sent from the first phone?

    it's meant to work like that
    so if you receive a message on your iphone you also get it on your ipad or ipod touch
    to avoid it use separate appleID for each device
    or turn off imessage on 1 or both devices in their settings
    but that will not fix the issue that 2 devices using the same appleID will never be able to facetime eachother
    the appleID is a unique handle for 1 user only

  • Why are there so many more choices on the USA iTunes Store? Surely having an iTunes account should let you access all itunes availability the world over? Also how do you request films/tv series to the UK itunes?

    Why are there so many more choices on the USA iTunes Store? Surely having an iTunes account should let you access all itunes availability the world over?
    Also how do you request films/tv series to the UK itunes? There's tv series I'd like but they're incomplete like The Batman & Xena Warrior Princess. And films theta aren't available for download but you can purchase in a store like HMV?  Apple isn't doing itself any favours by secluding countries by their store. They'd make billions if you could just select the iTunes Store you want to search & purchase from just by signing in! If anything what they're doing is putting themselves into a corner, other companies like Samsung & HTC are already on too of them for innovation & ease of use. The people they're attracting are predominantly existing Apple users not new customers. What do you guys think?

    It's not Apple's choice, they can only sell a particular item where the content provider/rights-holder has granted them a license to sell them. Content is licensed by the rights-holders to Apple on a country-by-country basis, each country therefore has to have its own store, and you have to be in a country to use its store - they want control over where their content is available.
    You can try requesting that an item be added to the UK store via this page, but unless the rights-holder agrees to then Apple won't be able to sell it here : http://www.apple.com/feedback/itunes.html

Maybe you are looking for