How to Load the Entities on Memory ?

Hi..
I have an cmp entity bean , and whenever i calling the bean, its loading
each time in database ,and it results the performance degradation of the
page. Hence i need to keep the cmp entity on memory when the application
server starts, so that i will access the entities on memory rather than
database each time .
Tell me how to keep the entity beam (cmp) on memory when the
application server starts ?

I am assuming that the data that you are accessing through this bean doesn't change (or changes very rarely). Consider using Read Only Entity beans for this
You can find more about this at the following links:
https://glassfish.dev.java.net/javaee5/docs/DG/beahl.html#beail
and
https://glassfish.dev.java.net/javaee5/docs/DG/beajj.html#beajj

Similar Messages

  • How to Load the Entities on Cache ?

    Hi..
    I have an cmp (read only) entity bean , and whenever i calling the bean, its
    loading each time in database ,and it results the performance degradation
    of the loading of page. Hence i need to keep the cmp entity on memory
    cache when the application server starts, so that i will access the entities
    on cache memory rather than database each time .
    Tell me how to load the entity beam (cmp read only) on memory when the
    application server starts ?

    Many Application Servers have special features for CMP beans that are read-only or read-mostly.
    It's not required by the EJB specification but it's pretty common. E.g., in SUN's application servers,
    you can mark the CMP bean as read-only using the <is-read-only-bean> element in
    sun-ejb-jar.xml. You can also set the <refresh-period-in-seconds> element to let the container
    know when it needs to be refreshed. Doing so will prevent the majority of the database acceses.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to remove the Object from memory.

    Hello.
    Flash file that i made with Flex Builder uses memory too
    much.
    Look at the next example source code.
    var testCan:Canvas = new Canvas();
    this.addChild(testCan);
    this.removeChild(testCan);
    testCan = null;
    but just memory usage still goes up, is not freed instantly.
    so if i load the large flash files on my web browser,
    after 5 munites or something, the web browser is down.
    How to remove the object from memory immediately without
    delay?

    It's all about the Garbage Collector ..
    There is a nice write up here :
    http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html

  • How to load the content in Combobox

    Dear All,
       Any one can tell me how to load the combobox dynamically..  i have one combobox in that i defined the value as "Defined New" when i click the DefineNew a new form wil come i wil enter the value in the editext. when i click the combobox the value should display.. i have done  this, its working fine but  the problem is every time when i add the value it wil show the data in the  the form Load.. i want data should come dynamically..
    any one can help me in this regard
    G.shankar

    You can use this "oForm.Refresh()" every time you add a new valid value to the ComboBox.
    I hope this help you.
    Regards.
    Enriquillo Guigni

  • How to Load the data from excel file(Extension is .CSV) into the temp.table

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Hello Sachin,
    You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
    Instead of copy values into forms you can save them in your temporary table.
    Kind regards,
    Alex
    If someone's helpful or correct please mark it accordingly.

  • How to load the data from .csv file to oracle table???

    Hi,
    I am using oracle 10g , plsql developer. Can anyone help me in how to load the data from .csv file to oracle table. The table is already created with the required columns. The .csv file is having about 10lakh records. Is it possible to load 10lakh records. can any one please tell me how to proceed.
    Thanks in advance

    981145 wrote:
    Can you tell more about sql * loader??? how to know that utility is available for me or not??? I am using oracle 10g database and plsql developer???SQL*Loader is part of the Oracle client. If you have a developer installation you should normally have it on your client.
    the command is
    sqlldrType it and see if you have it installed.
    Have a look also at the FAQ link posted by Marwin.
    There are plenty of examples also on the web.
    Regards.
    Al

  • How to load the data from excel file into temprory table in Forms 11g?

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Declare
        v_full_filename         varchar2(500);
        v_server_path           varchar2(2000);
        v_separator             VARCHAR2(1);
        v_filename              VARCHAR2(400);
        filename                VARCHAR2 (100);
        v_stop_load             varchar2 (2000);
        v_rec_error_log         varchar2(4000);
        v_error_log             varchar2(4000);
        ctr                     NUMBER (12);
        cols                    NUMBER (2);
        btn                     number;
        RES                     BOOLEAN;   
        application             ole2.obj_type;
        workbooks               ole2.obj_type;
        workbook                ole2.obj_type;
        worksheets              ole2.obj_type;
        worksheet               ole2.obj_type;
        cell                    ole2.obj_type;
        cellType                ole2.OBJ_TYPE;
        args                    ole2.obj_type;
        PROCEDURE olearg
        IS
        args   ole2.obj_type;
        BEGIN
        args := ole2.create_arglist;
        ole2.add_arg (args, ctr);                                
        ole2.add_arg (args, cols);                                   
        cell := ole2.get_obj_property (worksheet, 'Cells', args);
        ole2.destroy_arglist (args);
        END;
    BEGIN
    v_full_filename := client_get_file_name(directory_name => null
                                     ,file_name      => null
                                     ,file_filter    => 'Excel  files (*.xls)|*.xls|'  
                                                                            ||'Excel  files (*.xlsx)|*.xlsx|'                                                                 
                                     ,message        => 'Choose Excel file'
                                     ,dialog_type    => null
                                     ,select_file    => null
    If v_full_filename is not null Then
    v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
    v_filename := v_separator||v_full_filename ;
    :LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);                                
    RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));     
    --Begin load data from EXCEL
    BEGIN
        filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
        application := ole2.create_obj ('Excel.Application');
        ole2.set_property (application, 'Visible', 'false');
        workbooks := ole2.get_obj_property (application, 'Workbooks');
        args := ole2.create_arglist;
        ole2.add_arg (args, filename); -- file path and name
        workbook := ole2.get_obj_property(workbooks,'Open',args);
        ole2.destroy_arglist (args);
        args := ole2.create_arglist;
        ole2.add_arg (args, 'Sheet1');
        worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
        ole2.destroy_arglist (args);
        ctr := 2;                                                     --row number
        cols := 1;                                                -- column number
        go_block('xxx');
        FIRST_RECORD;  
        LOOP       
                --Column 1 VALUE --------------------------------------------------------------------
            olearg;
            v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            :item1 := v_stop_load;
            cols := cols + 1;                                                      
              --Column 2 VALUE --------------------------------------------------------------------
            olearg;
            :item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            cols := cols + 1;
            --<and so on>
        ole2.invoke (application, 'Quit');
        ole2.RELEASE_OBJ (cell);
        ole2.RELEASE_OBJ (worksheet);
        ole2.RELEASE_OBJ (worksheets);
        ole2.RELEASE_OBJ (workbook);
        ole2.RELEASE_OBJ (workbooks);
        ole2.RELEASE_OBJ (application);
    END;
    --End load data from EXCELPlease mark it as answered if you helped.

  • How  to load the data from excel  file  into table in oracle using UTL_FI

    How to load the data from excel file into table in oracle
    and from table to excel file
    using UTL_FILE package
    Please give me some example

    This is something i tried in oracle apex
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    CKLP

  • How to load the data from informatica into bw & how to report the data

    Hi friends,
    how to load the data from informatica into bw & how to report the data
    using cognos.(i.e how to access the data in sap bw using cognos 8 BI suite).
    Thanks,
    madhu.

    Inorder to report BW data into Cognos you can extract data from using Open Hub to the DB table from which Cognos reads.
    For BW informatic integration refer following docs:
    http://www.aman.co.il/aman/pfd/DataInteg_BR.q103cd.pdf.pdf
    http://h71028.www7.hp.com/enterprise/cache/3889-0-0-225-121.html
    http://devnet.informatica.com/learning/ePresentations.asp
    http://72.14.203.104/search?q=cache:C741L86Q19oJ:devnet.informatica.com/showcase/resources/Essbase_DataSheet.pdfinformaticapowerconnect(BI)&hl=en&gl=in&ct=clnk&cd=3
    http://www.informatica.com/customers/utilities_energy/fpl_group.htm
    http://www.informatica.com/solutions/resource_center/technote_sapbw_65241004.pdf#search=%22Informatica%20to%20Bw%22

  • How to load the CategoryName, instead of CategoryID in ListView?

    I have a Listview control in a Windows Form.
    The listview contains 3 columns
    - CategoryID
    - Product Description
    - Price
    The question is: how to load the "Category Name", instead of "Category ID"?
    Does listview support Dictonary Blinding?
    Please help

    Hi iHandler,
    As CoolDadTx said, the key part of Dictionary wouldn't be available.
    If the Value part of your Dictionary is List Type, it can be binded to listView, but I suggest you using TreeView instead of ListView. Because The Dictionary type is
    One to One or One to Many relationship. I can be easily binded to
    TreeView for displaying the relation.
    Here I make a sample you could refer to which can load the TreeView with a Dictionary.
    private void LoadTreeView(Dictionary<string, List<string>> treeStatusDic)
    //load Key Node
    foreach (string key in treeStatusDic.Keys)
    this.treeView1.Nodes.Add(key);
    //load child Node
    foreach (TreeNode tn in this.treeView1.Nodes)
    if (treeStatusDic.ContainsKey(tn.Text))
    List<string> ls = treeStatusDic[tn.Text];
    foreach (string t in ls)
    tn.Nodes.Add(t);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to load the data in DSO

    Hello,
             In my BI system ,i have the DSO and InfoCube ,haveing the
    infopackage Delta and Init..can any one tell me how to load the data from R/3 in to DSO ,when we have two infopackage(one is delta nad other is Init).Please define brifly.

    Hello,
    The procedure is as follows.
    1) First run the init infopackage (either with or without data), preferably with data.
    2) Then run the delta infopackage always. (it will get delta records always).
    Now if there are any errors and delta gets faulted, you can delete the init from the init infopackage and run the init infopackage again.
    And then schedule the delta.
    REgds,
    Shashank

  • How to load the external outlines .otl

    i have hyperion essbase 9.3.1.i had received external outlines.how to load the external outlines

    Hi
    I have bee told that simply copying the otl file can cause it to become corrupt and that the best way is to:
    1. Open the file in the Admin Console using File > Open and browsing to the otl file you have been sent
    2. Do a Save As and save over the existing otl file
    3. Stop and restart the application
    I think this is particularly if the otl file is from a different version.
    Hope this helps
    Stuart

  • How to load the subinventories

    Hi,
    How to load the subinventories if i have around 200 programtically?
    Note : i dont want to use data loader for it?
    Regards
    846691

    This is from MySupport:
    Currently there is no API or Interface table to upload the subinventory related information.
    At present there is no other option other than to use the front end application .
    There is an existing enhancement request which may be released in future release.
    hope this helps

  • How to load the google map into an empty movieclip

    how to load the google map into an empty movieclip ?  Thank you

    if you're using as3, check the google maps api for flash.  if you're using as2, check the google maps api for javascript and use the externalinterface class in flash.

  • How to load the boot menu using the command line , after the configuration change ?

    how to load the boot menu using the command line , after the configuration change ?

    Hi @Bask-48 
    Welcome to the HP Forums!
    It is a terrific place to find answers.
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
    I grasp you are trying to change the boot order.  Here is a link to Configuring the Boot Order in the System BIOS
    that will assist you.
    Good Luck and Happy Holidays!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

Maybe you are looking for

  • My newly macbook air can't install windows 7 via boot camp even I have formatted the SSD in the window installer

    I have insert the windows 7 disc as the instruction. Every things go fine at the starting, until the part that need to select the harddisk partition to install the windows.Even I have formatted the harddisk in the window installer, I can't continue m

  • I cannot get a WindowsForms user control hosted in WPF/C# to show() PDF please help

    I have a WPF C# .NET 4.0. solution in VS2010 on Windows 7.   It contains a WPF hosting project and a WindowsFormsControl project where I've created a UserControl that should display an Acrobat CAcroAVDoc object from the Interop.Acrobat SDK com object

  • I can't get printer to work on iMAC!

    It was working until I used the airport utility (1.3.3) on my iPhone to reconfigure my airport extreme to allow printer to connect to wifi via PIN.  Now it works on phones and iPads and windows laptop but not iMAC.  I have an HP Officejet 4622.

  • How to enable TOTAL COMPENSATION link in ESS

    Hi All, We have an iview TOTAL COMPENSATION in Benifits and Payments folder in Portal Content->Content Proided by SAP->End user content->Employee self service.But we are unable to see this in Benifits and Payments tab for an ESS user. How to enable t

  • Number to boolean array problem

    I am tring to program a programmable attenuator using a number to boolean function.  It looks like a default number to boolean array function counts in binary (1, 2, 4, 8, 16, 32, 64, 128).  If I were to choose 8, for example, it will turn on the 4th