Fetch Groups and Caching

Hi there,
i want to constitute fetch groups for my descriptor. But i don't know or find a tutorial about what will happen to my cache when i query with that fetch group. Will the objects (pojos) be put into the cache? In partial object queries, we cannot cache partial objects. In fetch groups, can we cache the objects?

Fetch groups currently only work for EJB 2.x CMP Entity Beans, not POJOs. For POJO apps you can use partial object queries but as you say, queried objects are not cached.
--Shaun                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Need scripts for fetching groups and subgroups info , script for del users

    Hi ,
    I need a script or macro which will fetch list of groups and sub groups triend forums download did not fine one.
    I need another script which will delete listed users there is a macro in forums but it doesn't suit my rquirement.
    Any one have these scripts handy with you please help me with that,
    Regards,
    Neo.

    Hi Braham,
    Thanks for your quick reply.
    Are we able to do this on two stage method
    1. grab the security groups from the share paths
    if can grab the share path from a separate txt file than copying it to the <your path> location
    so i can modify the txt file
    once run the script
    if can the output like below to a CSV file
    \\servername\foldermain\folder1group 1group 2group 3\\servername\foldermain\folder2group 1group 2group 3then i know which groups belongs to which share paththen i can remove the duplicate groups and keep the common groups to grab the users belongs to itso with the second script same as the first copy the security groups to a txt file and the out put as below.what I needs is the users full name and the samaccount name ( user id )group 1user1user2user3
    group 2user1user2user3looking forward your help on thisThank you.Thilo

  • SQL batch doesn't work; How to fetch related objects with fetch group?

    I have two questions:
    1. SQL Batch doesn't seem to work. I have tested some batch object creation
    with BatchLimit set to -1, 0, 1, 25, 100. They all have similar
    performance.
    kodo.jdbc.DBDictionary: BatchLimit=25
    2. How to use custom fetch group to fetch related objects? The example of
    custom fetch group only show how to fetch different attributes in different
    groups. I have a test cases where I would like to pre-fetch related objects
    to save round trip.
    Enviroments:
    * Kodo 3.1.0 RC1
    * Oracle 9i release 1
    Thanks for any help!
    Qingshan Luo
    Senior Software Engineer
    Open Harbor
    1123 Industrial Road
    San Carlos, CA 94070
    Phone: 650-413-4251
    Fax: 650-413-4298

    try poracle 10g driver. At least they fixed terrible CLOB bug may be batch
    to. BTW 9.2.x has problem with batching with deferred constraints so be
    careful
    "Greg Campbell" <[email protected]> wrote in message
    news:c3dmnu$rmj$[email protected]..
    >
    "Qingshan Luo" <[email protected]> wrote in message
    news:c3dg7q$mdl$[email protected]..
    Hi,
    I have two technical questions with Kodo.
    1. SQL Batch doesn't seem to work. I have tried batch size of -1, 0, 1,25.
    But the performance from batch creating objects is not affected by batch
    size.
    kodo.jdbc.DBDictionary: BatchLimit=25You may be running into a bug in the Oracle 9.2 driver. That driverdoesn't
    reliably give update counts when using batching and prepared statement
    caching. By default, Kodo will turn off batching. You can manuallyenable
    batching by setting the BatchLimit on your DBDictionary, as you've done.If
    you do this, though, you may want to turn off prepared statement cachingby
    setting MaxCachedStatements to 0 (see
    http://www.solarmetric.com/Software/Documentation/3.1.0RC1/docs/ref_guide_dbsetup.html#ref_guide_dbsetup_builtin).
    >
    2. How to use custom fetch groups to eagerly fetch related persistable
    objects? Example only showed attributes, not relationships.You can find information on setting up eager fetching of relations at
    http://www.solarmetric.com/Software/Documentation/3.0.3/docs/ref_guide_
    perfpack_eager.html
    Basically, you'll need to add the relations to your fetch group, and
    set the eager fetching mode.
    Enviroment:
    * Kodo 3.1.0 RC1
    * Oracle 9i release 1.
    Qingshan Luo
    Senior Software Engineer
    Open Harbor
    1123 Industrial Road
    San Carlos, CA 94070
    Phone: 650-413-4251
    Fax: 650-413-4298

  • JavaCode to create IT Resource, Group and UserForm in OIM

    Hi,
    Is it possible to create the ITResource, Group and UserForm in OIM using java code(java apis).
    Has anyone tried creating.
    Regards,
    Manju

    ya , it is very simple. you can use the APIs for creating group, form etc,.
    Use this link [APIs Guide|http://74.125.153.132/search?q=cache:Rkz-kX1n6sMJ:download-east.oracle.com/docs/cd/B32386_01/generic.902/b32144.pdf+guide+oracle+identity+manager+API&cd=1&hl=en&ct=clnk&gl=in]
    [Create Group|http://otndnld.oracle.co.jp/document/products/id_mgmt/idm_904/doc_cd/javadocs/operations/Thor/API/Operations/tcGroupOperationsIntf.html]
    Use Create Group API to create group and use tcFormDefinitionOperation and tcFormInstanceOperationsIntf APi to create form etc

  • Table name for Customer Account Group and created by Data

    Dear Gurus,
    Kindly le t me know the table name having a list of Customer a/c groups and created by data. if there is no such table thn pls let me know the alternatives for fetching the same data.
    Wishes
    Abhishek

    hI
    Go to Se11 and give table name KNA1 and go to display
    you can able to see the Customer AccountGroup field :KTOKD
    Thanks
    Vasu

  • SQL Query to get All AD Groups and its users in Active Directory

    Hi,
       Is there any query to get all AD groups and its user in an instance of a SQL server?

    Check this blog.
    http://www.mikefal.net/2011/04/18/monday-scripts-%E2%80%93-xp_logininfo/
    It will give you more than what is required. If you dont want the extra information,then you can try this.. I took the query and removed the bits that you might not require.
    declare @winlogins table
    (acct_name sysname,
    acct_type varchar(10),
    act_priv varchar(10),
    login_name sysname,
    perm_path sysname)
    declare @group sysname
    declare recscan cursor for
    select name from sys.server_principals
    where type = 'G' and name not like 'NT%'
    open recscan
    fetch next from recscan into @group
    while @@FETCH_STATUS = 0
    begin
    insert into @winlogins
    exec xp_logininfo @group,'members'
    fetch next from recscan into @group
    end
    close recscan
    deallocate recscan
    select
    u.name,
    u.type_desc,
    wl.login_name,
    wl.acct_type
    from sys.server_principals u
    inner join @winlogins wl on u.name = wl.perm_path
    where u.type = 'G'
    order by u.name,wl.login_name
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • JRE Cache ignores the "Expire" and "Cache-Control: no-cache" directives.

    My applet is using HttpURLConection to retrieve data from a server with Caching enabled. The cache contents are "revalidated" (via "if-modfied-since") each time the applet is started. However, subsequent requests to retrieve the same resource are always read from the cache with no validation even if the resource has expired.
    The server is sending a valid "Expires:" tag and "Cache-Control: no-cache" tag in the response; but, the JRE refuses to recheck for an updated version of the resource even after the file has expired.
    The JRE does seem to understand the "Cache-Control: no-store" tag; but, this is inefficient (no caching at all) when I'm tring to get it to not refetch the resource unless there's a change. Is there some other tag that the JRE is expecting to see?

    I have a similar problem except that I want my pages to not cache at all. The server is setting the Cache-Control: max-age to 0 and the Expires to "now" but JRE seems to ignore these settings, but only sometimes. Sometimes pages are fetched from cache and sometimes from the server.
    In my applet I'm using a normal URLConnection like this:
    URLConnection uc = new URL("http://<server>/method").openConnection();
    uc.connect();
    InputStream is = uc.getInputStream();
    is.read();When my request headers look like this:
    accept-encoding: gzip
    Host: <server>
    Cache-Control: no-cache
    Pragma: no-cache
    User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_13
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alivethe page will not be cached and is requested again but this time without the accept-encoding, Pragma and Cache-Control. The adding (and removal) of the headers seems to happen inside the JRE, though. I'm not explicitly setting them.
    The response header of the first request looks like this:
    HTTP/1.1 200 OK
    Date: Wed, 20 May 2009 12:55:07 GMT
    Server: Apache/2.2.11 (Win32) mod_jk/1.2.26 PHP/5.2.8
    Cache-Control: max-age=0
    Expires: Wed, 20 May 2009 12:55:07 GMT
    Vary: User-Agent,Accept-Encoding
    Content-Encoding: gzip
    Keep-Alive: timeout=120, max=79
    Connection: Keep-Alive
    Transfer-Encoding: chunked
    Content-Type: text/html;charset=iso-8859-1When the request is made with this header:
    User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_13
    Host: <server>
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-aliveThe response headers looks like this:
    HTTP/1.1 200 OK
    Date: Wed, 20 May 2009 12:55:07 GMT
    Server: Apache/2.2.11 (Win32) mod_jk/1.2.26 PHP/5.2.8
    Content-Length: 1016
    Cache-Control: max-age=0
    Expires: Wed, 20 May 2009 12:55:07 GMT
    Vary: User-Agent,Accept-Encoding
    Keep-Alive: timeout=120, max=83
    Connection: Keep-Alive
    Content-Type: text/html;charset=iso-8859-1And in this case the JRE sometimes fetches the request from the server and sometimes from cache. I have not been able to determine how the JRE decides to refresh, or why it sometimes sends an accept-encoding and Pragma header and sometimes not.
    any help would be appreciated.
    Alex

  • Fetch first and last record together

    Hi All,
    I want to fetch first and last records. I have done through ROWNUM, but I need some alternative ways, may be through RANK function.
    Please help on this.
    here sample data:
    WITH t AS
    (SELECT 100 sid, 'ABC' SNAME,  4 status_id, SYSDATE + 1/24 start_date FROM dual UNION ALL
    SELECT 100  sid, 'ABC' SNAME,  5 status_id ,SYSDATE + 2/24 start_date FROM dual UNION ALL
    SELECT 100  sid, 'ABC' SNAME,  6 status_id ,SYSDATE + 3/24 start_date FROM dual UNION ALL
    SELECT 100  sid, 'ABC' SNAME,  7 status_id ,SYSDATE + 3/24 start_date FROM dual UNION ALL
    SELECT 100  sid, 'ABC' SNAME,  8 status_id ,SYSDATE + 4/24 start_date FROM dual)
    SELECT * FROM t ORDER BY start_date;Thanks,

    if you want all the info on the same row.
    /* Formatted on 10/19/2011 7:06:50 AM (QP5 v5.149.1003.31008) */
    WITH t AS (SELECT 100 sid,
                      'ABC' SNAME,
                      4 status_id,
                      SYSDATE + 1 / 24 start_date
                 FROM DUAL
               UNION ALL
               SELECT 100 sid,
                      'ABC' SNAME,
                      5 status_id,
                      SYSDATE + 2 / 24 start_date
                 FROM DUAL
               UNION ALL
               SELECT 100 sid,
                      'ABC' SNAME,
                      6 status_id,
                      SYSDATE + 3 / 24 start_date
                 FROM DUAL
               UNION ALL
               SELECT 100 sid,
                      'ABC' SNAME,
                      7 status_id,
                      SYSDATE + 3 / 24 start_date
                 FROM DUAL
               UNION ALL
               SELECT 100 sid,
                      'ABC' SNAME,
                      8 status_id,
                      SYSDATE + 4 / 24 start_date
                 FROM DUAL)
      SELECT sid,
             sname,
             MIN (status_id) KEEP (DENSE_RANK FIRST ORDER BY start_date) min_status,
             MIN (start_date) min_dt,
             MAX (status_id) KEEP (DENSE_RANK FIRST ORDER BY start_date DESC)
                max_status,
             MAX (start_date) max_dt
        FROM t
    GROUP BY sid, sname
    SID     SNAME     MIN_STATUS     MIN_DT     MAX_STATUS     MAX_DT
    100     ABC     4     10/19/2011 8:05:54 AM     8     10/19/2011 11:05:54 AMEdited by: pollywog on Oct 19, 2011 7:11 AM

  • Fetched Groups - CMR

    I'm having problems with CMR fields.
    My ejb-jar.xml & sun-ejb-jar.xml files are correct.
    Can anyone explain me the use of fetched groups ?
    Explanation of the tag <fetched-with></fetched-with>?
    Thankx
    D.Geerts
    The following errors occurs all the time :
    Validation error in bean PublicatieE: The field tdUitgeverNId has an invalid fetch group. Default is not a valid fetch group for managed fields. If your field is not a managed field, it may be treated as one if you have a CMR to this bean which is mapped to the same column as tdUitgeverNId.
    Select a different fetch group.
    [28/Oct/2003:15:38:35] WARNING ( 748): DPL5035:Error while running ejbc
    com.iplanet.ias.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- -- Error while processing CMP beans.
         at com.iplanet.ias.deployment.backend.EJBCompiler.wrapException(EJBCompiler.java:589)
         at com.iplanet.ias.deployment.backend.EJBCompiler.compile(EJBCompiler.java:186)
         at com.iplanet.ias.deployment.backend.EjbModuleDeployer.runEJBC(EjbModuleDeployer.java:246)
         at com.iplanet.ias.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:128)
         at com.iplanet.ias.deployment.backend.ModuleDeployer.redeploy(ModuleDeployer.java:581)
         at com.iplanet.ias.deployment.backend.ModuleDeployer.doRequest(ModuleDeployer.java:84)
         at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployEJBJarModuleArchiveOrDirectory(ManagedServerInstance.java:894)
         at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployEJBJarModule(ManagedServerInstance.java:844)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    A fetch group controls when an attribute is fetched. All attributes in the default fetch group are read from the database when the bean is accessed, but attributes in named fetch groups are read only when explicitly accessed. When that happens, all attributes in the same group are read together. Now the problem with managed fields is that you probably have an attribute associated with a column that is also used as a foreign key in a relationship. It then becomes a managed field. What I do in those situations, to get around the problem, is to use a named fetch group, such as "FK" (foreign key) for such attributes.
    This is a problem only with database designs that doesn't use synthetic keys, and you therefore need an accessor for the key value itself. With syntheric keys, you would probably get the related bean instead of its key, and you would then not have any attributes mapped to the key column, only relationships.
    Hope this was not entirely unclear.

  • Group Membership Cache TTL

    Hi,
    I'm using WebLogic 6.10 sp1 with an extended AbstractListableRealm (using a LDAP-Server). I'm also using a CachingRealm with GroupCaching = enabled. Actual I have about 95 Users and 4 Groups. My Problem: if I set "Group Membership Cache TTL" to 300 (default) the cache is going to be re-filled after 5-7 minutes even if I set "Group Cache TTLPositive" (and TTLNegative) to 900 sec. (= 15 Minutes). If I set "Group Membership Cache TTL" to 800 or 900, the cache works fine. Anybody any ideas why 300 Members/Group isn't enough for 95 Users?

    This has been fixed in SP3.
    -utpal

  • Uanble to create Cache Group from Cache Administrator

    Folks,
    I am attempting to create a cache group from the Cache Administrator.
    I have set all the data source properties and am able to login to the data source but when I attempt to create a cache group i.e. I specify the name & type of cache group, I get this message in red at the bottom saying "Gathering table information, please wait" and... that's it. Nothing happens!
    I am able to move the cursor etc. but the cache group is not defined.
    Anybody have any suggestions as to what I'm doing wrong? Any help would be appreciated!
    keshava

    You cannot have multiple root tables within one cache group. The requirements for putting tables together into one cache group are very strict; there must be one top level table (the root table) and there can optionally be multiple child tables. The child tables must be related via foreign keys either to the root table or to a child table higher in the hierarchy.
    The solution for your case is to put one ofthe root tables and the child table into one cache group and the other root table into a separate cache group. If you do that you need to take care of a few things:
    1. You cannot define any foreign keys between tables in different cache groups in TimesTen (the keys can exist in Oracle) so the application must enforce the referential integrity itself for those cases.
    2. If you load data into one cache group (using LOAD CACHE GROUP or 'load on demand') then Timesten will not automatically load the corresponding data into the other cache group (sicne it does not know about the relationship). The application will need to load the data into the other cache group explicitly.
    There are no issues regarding transactional consistency when changes are pushed to Oracle. TimesTen correctly maintains and enforces transactional consistency regardless of how tables are arranged in cache groups.
    Chris

  • Multiple Fetch Groups

    In the past I asked that Kodo supports multiple optimistic transaction
    groups for fine grain concurrency control
    I would also like to see multiple fetch groups so I can give JDQL a hint
    which fetch group(s) to prefetch on query execution. When Kodo supports
    batch loading multiple fetch groups will provide essential mechanism for
    controling batch loading

    We provide APIs for configuring a PM's and a Query's current fetch
    groups.
    -Patrick
    On Wed, 26 Feb 2003 19:10:45 -0500, Alex Roytman wrote:
    do you allow to pass a hint to JDOQL which fetch group(s) you want
    eagerly loaded ?
    "Abe White" <[email protected]> wrote in message
    news:[email protected]..
    Multiple fetch groups are implemented in Kodo 2.5.
    Patrick Linskey
    SolarMetric Inc.

  • Crm tables for sales group and sales office

    Hello CRM Experts,
    Can any one plz. help me to find Tables for Sales Group and Sales office.
    It will be really helpful if the above fields have relation to the Business Partner.
    Thanks in Advance,
    Regards,
    Bharat.

    Hi Radek,
    I feel the table which you have given is the right table but in my scenario we have created sales office and sales group(in org structure) independently in CRM, so now we need to find these values from the table independently as well as with relation to BP the table which you have provided can be used for second scenario but if we want to fetch the values of all sales office and sales group which table i have to use.
    One more problem for second scenario is in BP we cant able to see the sales ofice & group values which we defined in CRM, if we can save BP with sales office and group values then only we can use the table which you have given
    Highly appreciable for your replies.
    Thanks,
    Bharat.

  • WAAS, wccp service groups and DC/Branch deployment

    Hi,
    I have two design queries relating to wccp service groups and WAAS in DC and branch deployments.
    Firstly, lets say at the DC end I use wccp service 61 (source address) on the WAN interface of my edge-layer switches. I configure the L3 interfaces on the same switches (connecting to the LAN side) to use use wccp service 62 (destination address). The WAEs are using L2 at the edge layer; with masking etc.
    I've read that at the branch office you need to 'reverse' the service group setup - so that if I have the same sort of setup at the branch using 3750s and WAEs then the WAN interface should be using wccp service 62 and the LAN side using wccp service 61.
    If I assume that is correct, then how does this affect things when two branches are communicating with each other (and they are both setup the same) - will be waas not be effective in this scenario? (Assume that the DC waas does not see any branch-to-branch communication).
    What happens if you have a consistent design across your network (61 on WAN, and 62 at LAN interfaces across all WAAS sites)?
    Secondly, when using L2 wccp redirection and masking; do most deployments leave the mask as default (0x1741)? I'm thinking that in some situations it might be better to have an entire geographic location covering a few branches being sent to the same DC end WAE. For example, I might want everyone on a /24 subnet in one branch to be using the same WAE/dre cache at the DC; rather than the possibility of duplicate dre caches on DC end WAEs service the same branch subnet (I realise that redundancy might be an advantage should one DC WAE fail).
    Is there a table/calculator somewhere that can work out what mask I could use to cover /24 or /22 or even /16 subnets to direct requests to the same WAE at the DC?
    Thanks
    Cameron

    Cameron,
    Excellent questions. Rule of thumb is to use source IP based load balancing, so in the branches 61/LAN - 62/WAN and in the DC 61/WAN and 62/LAN. That being said, if there is some site to site traffic at the edges, you may get some splitting, however, unless there is enough traffic to make it a "mini-dc", changing the services around is generally a wash. Also, if you only have a single WAE at the edge, it won't matter either.
    On the mask, default mask is definitely not desirable. I generally use Calc and convert my desired Mask from Binary to Hex. The following examples are assuming 4 bit masks, but you can use from 1 up to 6 or 7 max bits if you need more buckets.
    If you are looking to group /24, you could be 0xF00 or similar.
    If you are looking to group /22, use 0x3C00 or similar
    When calculating your mask, don't put your bits in the host bits, only in the network bits. Also, remember that the leftmost bit is usually the decision maker, so don't make it too far to the left or all your traffic will be on one WAE. The less WAEs in your WCCP cluster, the less bits you should use in your mask (allow some extras for fault tolerence).
    Hope that helps,
    Dan

  • Grouping and Decimal characters in rtf templates.

    Hi guys and girls,
    I’m really struggling with a problem here regarding the decimal characters for the prices in my output.
    I'm using XML Publisher 5.6.3.
    My goal is to control the grouping and decimal character from my template.
    The numbers in the XML data file can either be 10.000,00 or 10,000.00. The format is handled by the users nls_numeric_characters profile option.
    The output of the template shall be based on the locale and not the data generated by Oracle Reports. For example: Reports to US customers shall show the numbers in the following format 10,000.00. Reports to our European customers shall show the numbers in this format 10.000,00.
    How can I achieve this in my templates? Can it be achieved at all?
    Thank you in advance.
    Kenneth Kristoffersen
    Edited by: Kenneth_ on May 19, 2009 1:30 AM

    Hi,
    Thank you for your reply.
    The problem is that the report is generating the output based on the users profile option nls_numeric_characters.
    I have tried to override the users profile option in the before report trigger without any luck. I can alter selects so the query gets the numbers in the right format but then I would have to go through all queryes and reports which seem a bit wrong? Especially for the standard Oracle reports.
    BR Kenneth

Maybe you are looking for