Performance with entity bean... What am i doing wrong??

hello,
My configuration:
Development = OC4J 10g 9.0.4.0.0 standalone
Production = Oracle IAS 10g 9.0.4
JBoss version = 4.0.3 SP1
I have an application using CMP Entity beans. My architecture uses Stateless session bean to access to the entities and values objects to transfer the data.
One of this entity beans has the following parameters:
id : NUMBER(20)
name : VARCHAR(255)
data : BLOB
2 values objects are used to access the entity bean:
MyLightValueObject with parameters: id and name
MyValueObject with parameters: id, name and data
The method findAll of my stateless session bean takes about 255 ms when there are 50 objects in the database under JBoss, but takes more than 10 seconds when deployed on OC4J.
<pre>
     public java.util.Collection findAll() throws javax.ejb.FinderException,
               javax.naming.NamingException {
          // This statement takes about 200 millisonds on either server.
          java.util.Collection selected = getLocalHome().findAll();
// The access to light value object took 10 seconds under OC4J !
          ArrayList retval = new ArrayList(selected.size());
          for (Iterator i = selected.iterator(); i.hasNext();) {
               retval.add(((ClauseLocal) i.next()).getClauseLightValue());
          return retval;
</pre>
I tried the following link already :
http://download-west.oracle.com/docs/cd/B10464_02/core.904/b10379/optj2ee.htm#sthref529
However, when I redeploy my ear on the server, whatever the options specified on the entity-deployement tag, the server reset his default options. Moreover, the locking_mode attribute is not specified in the DTD.
Could you please help me.... Thanks for your comprehension.

To install Firefox from the Android Market web site, you must be logged in to the web site and your phone using the same Google account. If that doesn't work, you can follow the instructions here for other ways to install Firefox for Android: https://wiki.mozilla.org/Mobile/Platforms/Android

Similar Messages

  • Message "this app is not compatible with this iPad" What am I doing wrong?

    I am trying to update my apps and when I touch update all I get the message 'this app is ot compatible with this I-pad.  this has never happened before, what am I doing wrong?

    One or more of the apps you are updating is seeing that you have not yet gone to ios5.  All the iwork app changes, for example, will not upgrade until you do.   What you can do is tick them individually.  If that particular app will update, then it will.  If it won't it will tell you, and you can go back and get them later after you do the ious 5 update.  Last night i decided to update before i started the ios 5 upgrade, and there were 16 apps waiting for up date.  All but 5 did update, but not the i works, and 2 others.
    It takes a little longer to do them 1 at a time, but it is better than staring at the stupid 'not eligable' notice.

  • Attempting to test Function with Bind Variable --- What am I doing wrong?

    When I try to test a function (ComputeFreight) with a bind variable, I get an error, returned.....
    "SQL> EXEC :ComputeFreight :=V_ComputeFreight;
    BEGIN :ComputeFreight :=V_ComputeFreight; END;
    ERROR at line 1:
    ORA-06550: line 1, column 25:
    PLS-00201: identifier 'V_COMPUTEFREIGHT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored"
    What am I doing wrong?
    Below is my code with description ----
    create or replace function "ComputeFreight"(p_ORDERNUMBER IN C_ORDER.ORDERNUMBER%TYPE) -- Passing Ordernumber into Function
    return NUMBER
    is
    -- Declaring Variables
    v_ComputeFreight NUMBER(10,2);
    v_low number (10,2) := 0.05;
    v_high number (10,2) := 0.07;
    v_SUBTOTAL NUMBER(10,2);
    begin
    -- Computing order subtotal (Retrieving Item cost and qty from two different tables, multiplying and adding total order cost)
    SELECT SUM(O.QUANTITY * I.ITEMPRICE) INTO v_subtotal
    FROM ORDER_LINE O JOIN INV_ITEM I
         ON (O.ITEMNUMBER = I.ITEMNUMBER)
    WHERE O.ORDERNUMBER = P_ORDERNUMBER;
    -- Testing to see which freight charge rate to use
    IF
    v_subtotal < 300.00 THEN
    v_computefreight := v_subtotal * v_low;
    ELSE
    v_computefreight := v_subtotal * v_high;
    END IF;
    -- Returning Freight Charge
    RETURN v_ComputeFreight;
    end "ComputeFreight";
    -----------------------------------

    You have made at least 2 errors.
    The first one is the name of your function:
    create or replace function "ComputeFreight" (You use double quotas and the mixed case in the function name - it means you
    make your function name case-sensitive. In the call of your function you have to use double-quoted form "ComputeFreight", nothing else.
    If you your function name has to be case-insensitive, don't use double quotas or
    use upper-case form: "COMPUTEFREIGHT".
    The next mistake is how your call you function. You have to do the following:
    var V_ComputeFreight number
    EXEC :V_ComputeFreight := <your function name>
    V_ComputeFreight is a bind variable and you have to read more about this.
    Rgds.
    P.S. and as Dave fairly remarked above you have to pass the argument into the function.
    Message was edited by:
    dnikiforov

  • HT204053 Trying to set up my apple TV and it doesn't want to accept the Apple ID and password I have just set up with iTunes.  What am I doing wrong?

    I am having trouble signing into my apple ID acct on my new device Apple TV.  It doesn't seem to accept my newly created  Apple ID and password.  What am I doing wrong?  Is there a delay in creating the acct to when I can use it?

    yeah have reguested apple id and reset password still nothing

  • Photos from Win XP will not Sync with 3G iphone what am I doing wrong

    Need some help, just got the iphone and the only thing I can't understand is how to transfer my photos from my PC to the phone. I understand I use Itunes and point it to the folder/photo I want to sync. Itunes goes through it optimizing 1 of 29 photos (only doing 29 photos to start) but then when I go to the phone I have the normal Camera Roll Album and one folder listed. In the folder listed is only one photo which is all messed up.
    I understand the phone takes photos and displays photos at one res, and I thought Itunes doesn't care what res the photo from the PC is cause it optimizes it to be viewed on the phone.
    What am I missing ? and what is this folder that keeps being built ipod photo cache. Any help would be wonderful and yes I did read the "Iphone User Guide" that came with the phone.

    Not sure what the issue is that you are having. Sounds like you are doing the right thing.
    You point iTunes to a folder that contains pictures (or more subfolders that contain pictues...1 subfolder deep). Then tell it to sync. iTunes does its "optimize" thing. Then they sync over. Each subfolder in that folder you pointed to becomes a library.
    eg:
    C:\PHOTOS you point it to.
    C:\PHOTOS\FAMILY
    C:\PHOTOS\WORK
    C:\PHOTOS\FRIENDS
    C:\PHOTOS\WALLPAPER
    C:\PHOTOS\MISC
    are all under it.
    Each of those becomes a library on the iPHone (Family, Work, friends, etc)
    Photos from those folders go to phone (and photos from the root you pointed it to).
    The extra folder it makes (think it tries to mark it hidden unless you have it set to show hidden files) is just stuff for iTunes to keep track (like HASH data and other stuff) to know what it has synced so it can tell what is new and what is old if you add more photos or folders later.
    I have some huge images on my PC that I sync over without issue. iTunes scales them down when syncing to the phone (the whole optimize stuff).
    Message was edited by: DaVBMan

  • Cannot set up Mail with GoDaddy Account, what am I doing wrong?I

    I searched the correct way to do this through GoDaddy, my hosting service and got these directions, which I have tried, but didn't work.
    *To Set Up Apple Mail for SMTP Relay
    1. From the Mail menu, click Preferences.
    2. In the Preferences window, click Accounts.
    3. In the Account window, click Account Information.
    4. From the Account Type list, select POP.
    5. In the Description field, type a name for the account.
    6. In the Email Address field, type your email address.
    7. In the Your Name field, type your full name.
    8. In the Incoming Mail Server field, type pop.secureserver.net.
    9. In the User Name field, type your user name (your full email address).
    10. In the Password field, type the password to your email account.
    11. In the Outgoing Mail Server (SMTP) field, type smtpout.secureserver.net.
    12. In the SMTP Server Options window, in the Outgoing Mail Server field, type smtpout.secureserver.net.
    13. In the Authentication field, type your password.
    14. In the Server Port field, type 80 or 3535.
    15. In the User Name field, type your SMTP user name.
    16. In the Password field, type your SMTP password.
    17. Click OK.
    Obviously, I'm connected to the internet...
    I tried doing this through POP and IMAP, there is an error message saying unable to connect. What can be done to make this work?

    the 3535 is not gonna work...the 110 will work...I have been dealing w/ godaddy.com .mac and mac support for 5 months with compatibility. It is the worst.. mac says they never heard of godaddy and godaddy had me run a trace route so then I had to deal w/ my isp for no good reason since other browsers could reach godaddy so it is not my stream.. It is the worst. These are suposed to be the easiest and most seemless systems and they cannot sync. I use firefox to get to go daddy on my macbook and it is as if I am using dial up. I am ready to just cancel .mac which is really another headache to learn..and godaddy and just move everything over to a company that can handle everything. My web business has been on hold since January. It makes no sense. I got the mac so I would not have to deal w/ the windows registry error answer.. now godaddy tells me they are built for windows.
    There is no winning at this. I have spent countless hours on phone support after spending countless hours researching the answers only for all support lines to tell me i can "go to...website for more info..." it is as bad as using windows.
    Very dissatissfied,
    p

  • Some websites do not display properly. I am getting overlapping of menu's. This does not happen with IE. What am I doing wrong?

    I log on to the same wesite on Mozilla and IE. On mozilla the left hand menu overlaps one over the other but the same does not occur with IE, I ask this as I prefer mozilla. Do I need to change any configuration setting. I have a Dell Studio Laptop which is only about 5 months old. Unfortunately I cant post the url because it needs a password to get into the site.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)<br />
    See http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you increased the minimum font size then try the default setting 'none' as a high value can cause issues like you described.
    * Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    * Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    See also [[Websites look wrong]

  • Replacement Ipod Dead With Same Problems, what am i doing wrong?

    I bought a Classic, it started to not play some of my songs, then it crashed, then i couldnt revive it or put anything on it, so i sent it back and received a new one promptly. Guess what, same problems, stopped playing some songs about a week ago, HDD makes strange sounds as if trying and failing to locate tracks, then i did a restore after i reworked my itunes library and now the pc is starting to not recognize it and cant add songs and restoring is a pointless option, ipod is full of songs up to the letter G after a failed library sync. PlEASE help me remedy so that i dont have to replace my replacement with another ipod that needs to be replaced

    Ok here's what I did:  While the modem was still connected to my PC, my router was plugged in and just had power so I did the hard reset like you said.  Then I plugged the modem into the router, reset my modem and plugged the ethernet cable back into my tower and Now it works.  The only problem is that I have is that when i get to http://198.162.1.1/ and leave username blank and password admin, I keep getting 401 Unauthorized.  I would really like to be on a secured network but I never could because the easylink advisor wouldn't work right and I couldn't get the laptop to get connected.  Thank you for your help.

  • Help with a script (what am I doing wrong)

    tell application "Finder"
    set theFolder to (choose folder with prompt "choose the user folder") as Unicode text
    set newFolder to make new folder at theFolder as Unicode text with properties {name:"test folder"}
    set targetFolder to newFolder
    move entire contents of (theFolder & "Library:Preferences") to targetFolder
    end tell
    error "Can’t get entire contents of \"Macintosh HD:Users:username:Library:Preferences\"." number -1728 from «class ects» of "Macintosh HD:Users:username:Library:Preferences"
    also I would like the new folder in Library not user folder

    I had some time to give the connected volume stuff another look, so I tweaked the script a little. This latest version will handle getting the users from local or connected volumes as well as connected accounts. I threw in some labels in the choice dialog so you can see what the volumes are, and changed the time stamp a little to avoid using either the POSIX or Finder path delimiters.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- remove user preferences to a backup folder
    set theUsers to {}
    repeat with aDisk in (get list disks)
    set aDisk to contents of aDisk
    tell application "System Events"
    if (local volume of disk aDisk) then -- get users from local disks
    if (startup of disk aDisk) then
    set label to "[Startup Volume] "
    else
    set label to "[Local Volume] "
    end if
    repeat with aUser in paragraphs of (do shell script "ls '/Volumes/" & aDisk & "/Users'")
    if aUser is not in {"Shared"} then set the end of theUsers to (label & aDisk & "/Users/" & aUser)
    end repeat
    end if
    try
    if (server of disk aDisk is not missing value) then -- get users from connected disks
    try
    repeat with aUser in paragraphs of (do shell script "ls '/Volumes/" & aDisk & "/Users'")
    if aUser is not in {"Shared"} then set the end of theUsers to ("[Server Volume] " & aDisk & "/Users/" & aUser)
    end repeat
    on error errmess -- get connected user
    log errmess
    set the end of theUsers to ("[Server " & (server of disk aDisk) & "] " & aDisk)
    end try
    end if
    end try
    end tell
    end repeat
    set theChoice to (choose from list theUsers with title "Move preferences to backup" with prompt "Select an account to move user preferences:" with empty selection allowed) as text
    if the result is in {"false", ""} then return -- no selection
    set theChoice to "/Volumes/" & text ((offset of "] " in theChoice) + 2) thru -1 of theChoice -- strip off the volume labels
    set theSource to (theChoice & "/Library/Preferences") as POSIX file as text as alias
    set theDestination to (theChoice & "/Library") as POSIX file as text as alias
    tell ((current date) as «class isot» as string) to set timeStamp to (text 6 thru 7) & "-" & (text 9 thru 10) & "-" & (text 3 thru 4) & space & (text 12 thru 13) & (text 15 thru 16) -- ISO time = yyyy-MM-ddThh:mm:ss
    set theName to "Preferences copy " & timeStamp
    try
    set targetFolder to ((theDestination as text) & theName) as alias
    on error errmess
    log errmess
    tell application "Finder" to make new folder at theDestination with properties {name:theName}
    set targetFolder to the result as alias
    end try
    tell application "Finder" to move items of theSource to targetFolder
    </pre>

  • Trouble with  vst pluggin, what  am i doing wrong??

    trying to place vst plugs , i added to the folder , but nothing??? anyone can set me in right direaction , im clearly doing something wrong

    ...additionally...
    Many VSTs are available as AUs.
    Another tip:wrappers exist. Wrappers allow most of your VSTs to load as AUs-use AUs if they are available.
    Find a wrapper here:
    http://www.fxpansion.com/product-auadapter-main.php

  • HT1414 My generation 1 iPad won't update even when I try manually with iTunes.  What am I doing wrong?

    So I have tried updating in settings and iTunes and nothing any suggestions?

    If you have the 1st gen iPad you cannot update via the settings unless you have iOS 5 on it and that is as high as you can go anyway - actually 5.1.1 is the limit.

  • I am trying to download firefox to my android and get this meesage" there are no android phones associated with this account " what am I doing wrong?

    I would like to sync my laptop and android but get the above message

    To install Firefox from the Android Market web site, you must be logged in to the web site and your phone using the same Google account. If that doesn't work, you can follow the instructions here for other ways to install Firefox for Android: https://wiki.mozilla.org/Mobile/Platforms/Android

  • Using my apple ID and password on Mobile Me, I get the message  "Verification Failed"  .  Could not communicate with the server.  What am I doing wrong?

    Using my Apple ID and password on Mobile Me, I get the message "Verification Failed".  Could not communicate with the server"  What am I doing wrong?

    There is a MobileMe forum.  You might have better luck their.

  • Caching data with Entity Bean

    Hello,
    I am performing some tests concerning the benefit of caching data with Entity Bean.
    Here is the case :
    I have an Entity Bean with a business method getName() to retrieve a name field in the EJB.
    I understand that in order to cach data, I have to set the NOT_SUPPORTED transaction attr for this method. In this way, when this method is called, the ejbReload() is not called and the data is retreived from the EJB ready instance (and not from the database).
    Is it true and is it the good way to use the cach mechanism ?
    Now if we consider that this instance is the only one in the ready stage, and it is never pooled (it seems so !), what about a modification of the database from a tier (or from an other EB instance)? The Entity Bean is not able to see this modification seence it does not call the ejbLoad method.
    Is there a way to force an Entity Bean to be periodically polled in order to recover data from the data store when activated ?
    Thanks in advance,
    Thierry

    No, This is wrong way of doing what you want. Most of the application servers provide various configuration settings for this. Eg. caching mechanism, interval on when to call ejbLoad and ejbStore, read only beans. You have to check the documentation for this.
    --Ashwani

  • What am I doing wrong with this filter (counter/frequency issue), probably another newb question.

    I extracted the part of my VI that applies here.  I have a 6602 DAQ board reading a counter for frequency, using a Cherry Corp proximity sensor.  Getting a lot of noise and errant ridiculously high readings.  Speed of shaft which it's measuring is currently 2400rpm with one pulse per revolution so 40hz. 
    Trying to use the express filter VI to clean up the signal and ignore anything over, say, 45hz and under 35hz.  No matter what setting I choose I continually get the  20020 error, Analysis:  The cut-off frequency, fc, must meet:  0 <= fc <= fs/2.  I know this relates to sample period somehow, but for the life of me I can't understand what I'm doing wrong. 
    I used this VI without filtering on bench tests with a hand-drill and got perfect output every time.  Now it's on the machine and being erratic.  Any help here will ease my stress level significantly, thanks.
    VI attached
    Still confused after 8 years.
    Attachments:
    RPM.vi ‏92 KB

    Hello Ralph,
    I'm not sure about mounting your sensor to your rig, but I can provide a couple ideas about the filtering. Depending on the type of noise, the digital filters on the PCI-6602 could help eliminate the behavior you are seeing. If the noise manifests as a "glitches" or a bouncing signal, you could use another counter with a minimum period to help eliminate the noise. This concept is discussed in greater detail in this KnowledgeBase. I noticed that you are using NI-DAQmx; the practical application of the digital filters on the PCI-6602 in NI-DAQmx is discussed in this KnowledgeBase. A more detailed description of the behavior of these filters is provided in the NI-DAQmx Help (Start>>All Programs>>National Instruments>>NI-DAQ) in the book entitled "Digital Filtering Considerations for TIO-Based Devices".
    I also wanted to comment on your original post and explain why you were receiving error -20020. For convenience, I have copied the text of the error code below.
    Error -20020 occurred at an unidentified location
    Possible reason(s):
    Analysis:  The cut-off frequency, fc, must meet:  0 <= fc <= fs/2.
    I think you may have misunderstood exactly what the Filter express VI does. The Filter express VI takes a series of values in a waveform and performs filtering on those signals. So, it will look at a waveform made up of X and Y values and apply the defined filter to this waveform. Specifically in your application, the cut-off frequency (fc) is the Upper Cut-Off level that you specified in the Filter express VI; any frequency components of the waveform outside of the range you have defined will be filtered. The fs is the sample rate based on the data that you wire to the Signal input of the Filter express VI. In your VI, this data is coming from the DAQ Assistant. So, fs will be the sample rate of the DAQ Assistant and is associated with the rate at which points are acquired. The sample rate does NOT relate to the bandwidth of the signal, except that the Nyquist theorem tells us that the sample rate must be at least twice the signal bandwidth in order to determine periodicity of the signal. So, in this case, the sample rate of the DAQ Assistant would need to be at least double the high cut-off frequency.
    However, you are performing a frequency measurement using a counter. I think this is where the confusion comes in. For the frequency measurement using a counter, the DAQ Assistant returns a decimal value which represents the rate of the pulse train being measured by the counter. It does not return the actual waveform that is being read by the counter. It is this waveform that would be band-pass filtered to eliminate frequency content outside of the filter's bandwidth. Instead of the Filter express VI, I would recommend that you simply discard values that are outside the range you specify. I have modified the code you posted earlier to perform this operation. The image below shows the changes that I made; rather than using the Filter express VI, I simply compare the frequency to the "Low Threshold" and "High Threshold". I use a Case structure to display the value on if it is within the limits. Otherwise, I display a "NaN" value. I have also attached the modified VI to this post.
    Message Edited by Matt A on 09-04-2007 07:58 PM
    Matt Anderson
    Hardware Services Marketing Manager
    National Instruments
    Attachments:
    RPM (Modified).JPG ‏17 KB
    RPM (modified).vi ‏72 KB

Maybe you are looking for

  • Why can i not make a compilation (Also adding artwork sometimes doesn't work)

    Has anyone experienced this issue?                                                                                     I am on itunes 12.1.1.4 windows (64bt).  When making compilations (grouping songs together as one album) i found some would work an

  • How to setup tab in a pdf form

    can someone explain how to set tabs in a writeable pdf form

  • Can I use my iphone in different country

    Hello, I was using my iphone 4 in Austria and moved back to Mongolia few weeks ago. My phone is not working here. I think it is locked how can I unlock?

  • Java.lang.NullPointer exception and operating systems

    Do different operating systems handle the NullPointer exception differently? I have an application that has a screen come up when you click a button. However, the app attempts to process some data before bring up the screen. Sometimes the data is nul

  • MP-BGP and MPLS multipath load sharing

    Hi, I am trying to PoC MPLS multi path load sharing by using per-PE-per-VRF RDs in the network. I have a simple lab setup with AS65000 which consists of SITE1 PE1&PE2 routers (10.250.0.101 and 10.250.0.102), route reflector RR in the middle (10.250.0