What cannot be done using EJB?

Hello,
My question is What cannot be done using EJB?

Enterprise Bean must not use read/write static fields. Using read-only static fields is allowed. Therefore, it is recommended that all static fields in enterprise bean class be declared as final.
Enterprise Bean must not use thread synchronization primitives to synchronize execution of multiple instances.
Enterprise bean must not attempt to manage threads. Enterprise bean must not attempt to start, stop, suspend, or resume a thread; or to change a thread's priority or name. The enterprise bean must not attempt to manage thread groups.
Enterprise Bean must not use the AWT functionality to attempt to output information to a display, or to input information from a keyboard.
Enterprise bean must not use java.io package to attempt to access files and directories in file system.
Enterprise bean must not attempt to directly read or write a file descriptor.
Enterprise bean must not attempt to listen on a socket, accept connections on a socket, or use a socket for multicast.
Enterprise bean must not attempt to set the socket factory used by ServerSocket, Socket, or the stream handler factory used by URL.
Enterprise bean must not attempt to query a class to obtain information about the declared members that are not otherwise accessible to the enterprise bean because of the security rules of the Java language. The enterprise bean must not attempt to use the Reflection API to access information that the security rules of the Java programming language make unavailable.
Enterprise bean must not attempt to create a class loader; obtain the current class loader; set the context class loader; set security manager; create a new security manager; stop the JVM; or change the input, output, and error streams.
Enterprise bean must not attempt to gain access to packages and classes that the usual rules of the Java programming language make unavailable to the enterprise bean.
Enterprise bean must not attempt to define a class in a package.
Enterprise bean must not attempt to use the subclass and object substitution features of the Java Serialization Protocol.
Enterprise bean must not attempt to obtain the security policy information for a particular code source.
Enterprise bean must not attempt to access or modify the security configuration objects (Policy, Security, Provider, Signer, and Identity).
Enterprise bean must not attempt to pass this as an argument or method result. The enterprise bean must pass the result of SessionContext.getEJBObject() or EntityContext. getEJBObject() instead.
Enterprise bean must not attempt to load a native library.
Rgds,
Seetesh

Similar Messages

  • What are the limitations of Java,what cannot be done with Java?

    Hello.I want to ask, is there anything which cannot be done with Java related to computer programming ,does Java have limitations?

    BIJ001 wrote:
    You need a JVM to run Java applications.Usually yes but nothing prevents you from writing a compiler to compile Java sources right into native code.@Everyone: Sorry folks, I meant to say "Never say unequivocally that something cannot be done. Time will more than likely prove you wrong."... which I think you all got the gist off, despite what I actually said.
    @BIJ: Hmmm yep, so that sort-of brings writing a device driver in the Java language into the realms of practicality, except you'd still have to work-around the fact that Java is by design a device/OS idependant language, so one suspects that you'd probably end-up using to JNI to call a large and complex library of assembler (or something) functions, which actually do the work... hence you'd probably be better of in assembler, C, or indeed any "native" language, or combination thereof.
    Java excels at writing "large and complex business systems". Java pretty much sucks at writing "low-level CS stuff", which C (and assembler) both excel at... Hence some knowledge of both helps you pick the tool for the task, and create "complementary" layers of abstraction in your application, which (the theory goes) make it robust and flexible.
    I do think that it's interesting that Java excels in exactly the places where C is/was "undercooked".... I do sometimes wonder if that was by design; like the language designers intended them to be complementary tools or something.
    Cheers. Keith.

  • Create tables in different database schemas using EJB 3 Entity Persistent

    Hi All,
    I would like to find out how to get the following tasks done using EJB 3.0 Java Entity Persistent:
    ( i ) Create tables in different schemas such as STUDENT under EDUCATION schema and table PATIENT in HOSPITAL schema. We can then reference them in SQL as EDUCATION.STUDENT and HOSPITAL.PATIENT.
    ( ii ) Reference these tables uniquely once they are created.
    There are no pre-existing tables or naming conventions that needs to be adhere to in this situation.
    I have no problem creating tables on the current schema in EJB 3.0 Java Entity Persistent.
    Any suggestions would be appreciated.
    Thanks,
    Jack

    Use the schema attribute of the Table annotation:
    package javax.persistence;
    @Target({TYPE}) @Retention(RUNTIME)
    public @interface Table
       String name( ) default "";
       String catalog( ) default "";
       String schema( ) default "";
       UniqueConstraint
    uniqueConstraints( ) default {};
    }

  • Every time I try to upload a video to youtube (or pictures to blog services like tumblr) using Firefox, I cannot upload them unless I use the "basic uploader" function. Why and what can be done?

    Every time I try to upload a video to youtube or a pictures to a blog service, such as tumblr, I am unable to do so with the default uploading options (usually something that allows multiple uploads, etc). Instead, I can upload these media using their "basic upload" functions. Why and what can be done?
    == URL of affected sites ==
    http://www.youtube.com; http://www.tumblr.com

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • CASE statement... problem using it... what have I done to deserve this?

    I'm trying to use a CASE statement in Ora 8.1.7 (with compatible
    set to 8.1.0) and am finding that I cannot compile the
    procedure.
    I'm using the CASE statement in a call to a procedure...
    insert_addr (p_id_number => v_id_number,
    p_addr_type => v_addr_type,
    p_addr_status => v_addr_status,
    p_addr_pref_ind => v_pref_addr_ind,
    p_date_modified =>
    (CASE
    WHEN cmf_rec.hadoc = cnv_constants.nov17_1958
    THEN cmf_rec.doe
    ELSE cmf_rec.hadoc
    END)
    I'm getting "PLS-00103 Encountered the symbol "CASE" when
    expecting one of the following..." error msg when compiling.
    What have I done wrong? Syntax error? Should I change the
    compatible parameter?
    Thanks.

    You can actually use the CASE statement in Pl/Sql, though not like in SqlPlus.
    You have to use dynamic Sql.
    Example
    create or replace procedure test_case1 is
    v_sql varchar2(4000);
    begin
    v_sql := 'update case_test set qual_rule = '||
             '(case '||
             ' when dob < ''01-jan-1902'' then ''100+'' '||
             ' when dob between ''01-jan-1902'' and ''31-dec-1912'' then ''90-99'' '||
             ' when dob between ''01-jan-1912'' and ''31-jan-1932'' then ''70-89'' '||
             ' when dob between ''01-jan-1932'' and ''31-jan-1952'' then ''50-69'' '||
             ' when dob between ''01-jan-1952'' and ''31-jan-1972'' then ''30-49'' '||
             ' when dob between ''01-jan-1972'' and ''31-jan-1984'' then ''< 30'' '||
             ' else ''under age'' '||
             ' end ) ';
    execute immediate v_sql;
    commit;
    end test_case1;

  • How to export a PowerView report to Power Point in SharePoint Online? If it cannot be done,what is the alternative?

    How to export a PowerView report to Power Point in SharePoint Online? If it cannot be done,what is the alternative?

    Hi Tanay,
    I am not aware of a control you can put in PowerPoint, however, you can insert a web browser control and reference a page in SPO (or maybe even directly the path to the workbook, didn't try that).
    if you are using PowerPoint 2013 take a look
    here
    GALROY

  • What can be done to avoid getting the following error when trying to delete unused clips he operation could not be completed.  *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

    what can be done to avoid getting the following error when trying to delete unused clips in Imovie 09 "the operation could not be completed.  *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil"  I use to get these type of error messages when trying to delete unsused clips from a large event 60 minutes or longer, but now I get this message when trying to reduce a 4 minute event.
    Also, does anyone know if there is a limit to the total amount of space that can be taken up by Projects in Imovie 09
    Thanks for any help

    Zachy,
    It goes something like this...
    Put your new drive in the enclosure. Use Disk Utility to format it, etc. I'd give it a slightly different name than the original. Let's say you have Old Disk and New Disk as your drive names. Use Carbon Copy Cloner to copy Old Disk to New Disk. Now you should have an exact copy, which you can test by rebooting and holding down the Option key. Choose New Disk from the list and let it boot, make sure all is well.
    Shut down and physically swap the drives. Take Old Disk and put it in the enclosure. Now your system has a new disk with a lot more space and you can reformat your old disk and just use it for large files or whatever.

  • I cannot get Adobe Reader 11 to work - what have I done wrong?

    I cannot get Adobe Reader 11 to work - what have I done wrong?

    Hi Pat,
    I usually don’t have trouble explaining my problems, but this one is confusing the heck out of me.  I just downloaded Reader 11.  It is installed, I believe.  This is the first time Reader has not worked for me after upgrading to a newer version.  I’ve been reading PDF files forever, but tonight when I went to read a pdf file that I received today, I clicked on the file, expecting Reader to open up and it never did.  Then I tried to read some older pdf files and nothing happened when I tried to open the file.  I’ve been using Acrobat Reader for years so that’s why I’m so confused.
    I downloaded the file from the adobe.com website. and everything seemed to be fine.  My question is indeed vague, but I don’t know any other way to explain what happened.  Should I uninstall and start over??
    Thanks, Elaine

  • I downloaded lion but now I cannot access my word and excel docs for work.  What can be done easily to open all my files?

    I downloaded lion but now I cannot access my word and excel docs for work.  What can be done easily to open all my files?

    tamanacoazur wrote:
    Have not a clue if this a LION problem or Microsoft problem.  My gut says Microsoft as they acknowledge the problem in their support section.  Their solution:  Open files with previous version of Word.  That is completely unacceptable as a solution in my opinion.  Why would have I ever bothered to upgrade to 2011 if I had known I need to keep a version of 2008 running on my computer. 
    Honestly I don't know if it's a Lion or MS problem eihter. I have been using Lion for many months with Office 2011 with no problems though.The earliest version I had on my machine was 2008 and 2011 opened those files with no problems at all. As Dave mentioned earlier he opens Office 2004 files all the time with 2011.
    One thing you might want to do is restart the computer while holding down the Option key then select the Restore Volume and run Disk Utility and repair the Disk Permissions on the HD. Run DP at least 2x.

  • Downloaded Firefox NIGHTLY-cannot find it on Programs to uninstall-what have I done???

    I just got refurb'd Lenovo and wanted to get Firefox. Googled and got Firefox Nightly which did not have a valid certificate and downloaded anyway. The video clip said this was a nightly update of the latest and greatest of what was happening in Firefox world. Now I cannot find it on my programs list to uninstall it. What have I done and what can I do? Thanks.

    hello McBreakthrough, nightly is the early developer version of firefox - for general use you'll more likely want to install the stable release version of firefox from getfirefox.com.
    you can sort your list of installed programs in the windows control panel by install date, this should make it easy to find & uninstall the most recently added programs...

  • I have 4 mail icons on my desktop and cannot open any of them.  I have no idea how I have done this but want to go back to having one mail icon which opens.  What have I done and what should I do?

    I am new to mac pro and have managed to set up 4 mail icons on my desk top and none of them open mail.  What have I done and how do I get back to having just one in the doc which opens?

    HA! It turns out, that an app that I've never used before, became active during a time that I was multitasking and didn't realize it. I didn't notice the effects right away, because my main desktop has a special 3D desktop generator called, bumptop, which covers over any other desktop color or graphic in that area. So it wasn't until I swiped to go to a different desktop, that I noticed the random slideshow being displayed. All fixed now. What a relief.

  • I recently updated to iOS 8.0 on my Ipad however when i try to agree to the new terms and conditions i get an error message saying either 'Cannot connect to server' or 'Your session has timed out please try again' what can be done to resolve this?

    Hi, I recently updated to iOS 8.0 on my Ipad mini however when i try to agree to the new terms and conditions i get an error message saying either 'Cannot connect to server' or 'Your session has timed out please try again' what can be done to resolve this problem? Also i cannot download anything from the App store as a result of this.

    Can you check the Object Security for the Analysis Menu and Export button and see if it is restricted?
    Also, is this a Oracle DB?  IF so, has the following 32 bit Oracle Client components been isntalled:
    Oracle Objects for OLE
    Oracle Data Provider for .NET
    Oracle Providers for ASP.NET

  • HT1386 I have a new computer. I have copied Itunes library from an external hard drive. Itunes now tells me I cannot sync with my Ipod as it thinks the 20gb on the computer are different to the 20gb on my Ipod touch! What have I done wrong? How can I fix

    I have a new computer. I have copied Itunes library from an external hard drive. Itunes now tells me I cannot sync with my Ipod as it thinks the 20gb on the computer are different to the 20gb on my Ipod touch! What have I done wrong? How can I fix it?  Alan

    See:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    Sync Your iOS Device with a New Computer Without Losing Data - How-To Geek

  • I have been using facetime on my iphone for a while and after the recent, ios update, I cannot seem to use the facetime. What went wrong?

    I have been using facetime on my iphone5 for a while and after the recent IOS update, I cannot seems to use my facetime any longer. what went wrong?

    'The installer has insufficient privileges to modify this file C:\Program Files (x86)\Common Files\Apple\Apple Application Support\Web kit.resources\inspector\Images\Spinner Inactive Selected.gif.'
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • I partitioned my Mac Book so I could have windows and now i don't know how to switch back it also doesn't tell me what I want to use when I reboot it. How do I switch back to OS X?

    I partitioned my Mac Book so I could have windows and now i don't know how to switch back it also doesn't ask me what I want to use when I reboot it. How do I switch back to OS X?

    At startuo hold down the Option key. That will bring up a boot menu screen.

Maybe you are looking for

  • IPhone 3GS On-Screen Keyboard Problem!

    The number, space bar and return key on my iPhone 3GS on-screen keyboard is not working until you tilt it to landscape mode! When I tap the number key, it activates the cap key. When I tap the space bar,depending on weather I'm taping the left, middl

  • Why does iTunes make a mess out of my TV Shows library?

    I'm not really sure where to post this, as it doesn't seem like Apple pays much attention to the official Apple Support Forums, but I'll give it a go nontheless. The thing is, as most Apple TV owners I have to rely on iTunes for handling my media lib

  • What is being updated in AsyncOS 6.1.0 build 307?

    Is there a definitive source for a change list in updates?

  • How to set up LOW QUALITY as a default in FlashPlayer plugin

    I don't have very fast computer. I would like to view all flashes on websites in LOW QUALITY. It is possible by right-clicking on a flash and changing the quality from HIGH to LOW. How to set up the FlashPlugin for Internet Explorer (8.0.6001.18702)

  • ChoiceBox tab-order weirdness

    I have been having trouble with tab-order and ChoiceBox controls in JavaFX 1.3.1. Generally the tab-order of controls seems natural and logical: left-to-right top-to-bottom. ChoiceBox controls break that left-to-right rule and somehow promote themsel