Ejb caching values

Hi,
I am using Ejb 2.0 in Jboss 4.2.3
My application is holding the previous values.Suppose I am searching in my application with some key values.The next time when I come to that page the previously given values are showing.
But in weblogic 8 this behaviour is not showing. There is no previous values contained in case of weblogic.
Please help.

Sorry, but you are too vague.
You talk about EJBs, but as far as I can tell you are then referring to some web logic, are you not? What are you really having trouble with? web page caching?

Similar Messages

  • Caching values between different executions of a message mapping

    Hi all
    Like global container object is used for caching values between different user defined functions
    within the same message mapping.
    Can v have some sort of cachingvalues
    between simultaneos exceutions of same message mapping?
    Thanks and Regards
    Bhasker

    Hi Bhasker raj,
        This facility is there if you are using seeburger adapters.
    YOu can use something called seeburger variables which can hold the data beyong the mapping in some permanent memory.
    Alternatively, you can think of creating a ZTABLE in the ABAP stack of XI and storing the data you want in it, using a UDF and get it back in another UDF.
    YOu can use the first UDF at last node/field in the message mapping and the
    secomd UDF in the first node/field in the mapping.
    Regards,
    Ravi

  • Need a help to update coherence cache values in c++

    Hi,
    I need to update coherence cache value of a particular object.
    Managed<ExposureHolderContract>::Handle contract =
    cast<Managed<ExposureHolderContract>::Handle>(cache->get(vsName));
    contract->setName("dsafd");
    When i try to cast to a ManagedObject:: Handle it says
    coherence::lang::ConstCastException: attempt to cast from a "const coherence::lang::Managed<ExposureHolderContract>" to a "coherence::lang::Managed<ExposureHolderContract>"
    at void coherence::lang::coh_throw_const_cast(const std::type_info&, const std::type_info&)(ConstCastException.cpp:27)
    at coherence::lang::coh_throw_const_cast(std::type_info const&, std::type_info const&)
    <stack frame symbol unavailable>
    <stack frame symbol unavailable>
    <stack frame symbol unavailable>
    <stack frame symbol unavailable>
    <stack frame symbol unavailable>
    at __libc_start_main
    on thread "main"
    In the documentation it says in order to call non static methods we need to retrieve the handle.
    but when I try to cast to a handle it fails.
    I'm inserting data to coherence cache by calling Managed::create method. Is this method making immutable object.
    ExposureHolderContract tempEhc(contractId, name, date, age, weight);
    Managed<ExposureHolderContract>::Handle ss = Managed<ExposureHolderContract>::create(tempEhc);
    cache->put(String::create(contractId.c_str()), ss);
    Please help me to update the recorde value.
    regards,
    sura

    Hi Sura,
    It is a matter of safety and correctness. The in-process caches return a locally held object, and thus if you made some change to it, that change would be visible within the in-process cache, while not visible to the remote cache. Thus future access to the in-process cache would see a value which does not actually exist in the remote cache. While it is true that if you modify it with the intent to immediately re-insert it this shrinks the window of incorrectness that window still exists, and of course the cache has no idea if you will ever reinsert the value. As for the effect on performance it should be insignificant if you actually do put it back in the cache as the cost of a cache update will easily be multiple orders of magnitude greater then the cost of the clone. Also remember there is no requirement to clone a value if you don't intend to mutate it, you can safely use it via the View. So the only time the performance cost of the clone could be considered significant is when you intend to mutate but not reinsert the data, but a clone is also necessary there as not cloning it would leave the in-process cache in an inconsistent state with respect to the remote cache.
    Mark
    Oracle Coherence

  • Caching values in JNI having multiple instances of the Java wrapper object

    Hi,
    I have a Java lib that wraps and more complex 3 ^rd^ party C++ lib using JNI. This C++ lib is asynchronous. So, there's the need to register callbacks. I've already done this. I can register a callback from Java to the C++ lib and I can get notified, also in Java, when the C++ lib fires an event.
    To achieve this I had to cache some information in my "JNI glue code". I've cached a JavaVM* and a jobject to that I can call a Java method in "glue code" callback. Something like this:
    // This is supposed to be a callback registered in the 3 ^rd^ party lib's object that I'm wrapping
    void callback_OnSomething(int someInfo) {
    // Call a the "fireOnSomething" method from Java
    So, all of this is working, but I have a small problem. When I have more than one instance of my "Java wrapper object", my cached values in the glue code will get mixed up, because "glue code" cached variables are the same.
    Have you ever done something like this? How have you solved it?
    Many thanks in advance.

    Hi,
    Thanks for you answer! By "glue code" I mean the C code that's used to "glue" the Java code to the 3 ^rd^ party lib. I've seen this term here: en.wikipedia.org/wiki/Glue_code.
    I've already converted my objects to "GlobalReferences". My example is running perfectly when I have just one instance of the Java wrapper object.
    So, if I understood it correctly you're suggesting that I cache the values in the Java object itself? So, what I have to do is to just have a "long" in my Java object with the memory addresses. And is the "long" always valid, whether I'm running a 32 bits or 64 bits version?
    Just one more thing. When you say "Make sure to delete it when finished with it", what do you mean?
    Once again, many thanks!

  • XML Event casuing EJB cache limit to be reached

    I am running WLS 6.1 (sp2) and WLI 2.1 (sp2). My workflows are completely XML event
    driven. After the workflow is started a number of events are created that wait
    for different state changes to be posted th the JMS queue. During testing this
    seemed to work fine. However, I have now moved to production and things are falling
    apart.
    I have 100+ active workflows at any given time. They all have the same XML event
    active, which checks a conditional field to determine if it should handle the
    event. When the number of active workflows reached 100 I start receiving CacheFullException
    whenever the workflow engine attempts to process the event.
    Is there some way to increase the default EJB cache size for the WLI beans? How
    does WLI process these events so that the cache limit comes into play? Is there
    some way to change the structure of my workflow so that this limit is no longer
    a problem?
    Any suggestions will be greatly appreciated.
    Thanks,
    Pete Giesin

    I am running WLS 6.1 (sp2) and WLI 2.1 (sp2). My workflows are completely XML event
    driven. After the workflow is started a number of events are created that wait
    for different state changes to be posted th the JMS queue. During testing this
    seemed to work fine. However, I have now moved to production and things are falling
    apart.
    I have 100+ active workflows at any given time. They all have the same XML event
    active, which checks a conditional field to determine if it should handle the
    event. When the number of active workflows reached 100 I start receiving CacheFullException
    whenever the workflow engine attempts to process the event.
    Is there some way to increase the default EJB cache size for the WLI beans? How
    does WLI process these events so that the cache limit comes into play? Is there
    some way to change the structure of my workflow so that this limit is no longer
    a problem?
    Any suggestions will be greatly appreciated.
    Thanks,
    Pete Giesin

  • Re: use of cached values property in seq generator

    Gopi Kolla Yes, performance will degrade. I had to put a big value in one of my realtime mapping to avoid this.Here I had to use seq generator for generating unique key.

    It plays a significant role both functionally and for performance. In short if you are using a non-reusable sequence generator leave it default (which is 0) in which case at the satart of the session it checks in repository and uses the start value with incrementing 1 (if that is what is defined) and at the end of the session it writes the current value to repository. so there will be only 1 repository lookup. If you set a value for non-reusable sequence generator (say 50) for every 50 sequences it makes a lookup to repository and causes performance issue.For reusable sequence generator where multiple sessions (say on grid) can use the same sequence generator you should always set cache value to non-zero. say you set it to 100, session 1 gets 100 values cached and when session 2 starts parallelly it looks up in repository and since current value is already set to 100 (by session1) it takes 101 to 200 so this is very important so that session 2 doesn't step on session 1's values there by loosing unique number.

  • Use of cached values property in seq generator

    If we are using sequence generator as a unique key in real-time flow then latest value of seq-generator will get updated to repository randomly (not sure when it get updated). If repository connection is going in between then seq generator value can go back to previous some value ie is already loaded. It will cause job to fail as this is unique key in target.   This can be avoided by putting value in cache so that it will updated to repository.

    Hello infa_dev This option is used when you have multiple maps are using same sequence generator to ensure each session receives unique number.  For example if Number of cached value set to 10 then integration service will cache 10 value at a time. so for next run or next session value will start from 11.   Thank You Ashish Amin

  • Reading cache values from iView properties

    Hi,
    I want to programmatically retrieve the value of an iView's cache properties.
    I was thinking of retrieving this the normal way, using the attributes of the IPcdContext object.
    This works for most attributes, for instance:
    <b>pcdContext.getAttributes("").get("com.sap.portal.pcm.Title");</b>
    however, the attribute names used for cache -- <b>ALLOW_BROWSER</b>, <b>CachingLevel</b>, and <b>ValidityPeriod</b> -- don't seem to return anything...
    How can I retrieve these settings?
    Thanks in advance!

    Hi,
    If they are not set from PropertyEditor and left to the default values, then these properties are not set on the PCDObject. So when you retrieve these attributes you get null. The PropertyEditor uses the same logic, but when nothing found, it shows default values. So from PropertyEditor you see them, but from API you get null.
    You can inspect this behavior by opening the PCDObject with PCDInspector and check all available attributes. Then you will see that attributes  ALLOW_BROWSER, CachingLevel, and ValidityPeriod do not exist.
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • Update to near cache value is not reflected in the other near cache

    Hi,
    I have a cluster of two weblogic servers running within them tangosol cache. I also have two seperate tangosol servers running on the same two servers.
    When I make an update on the tangosol cache on one of the weblogic application, unfortunately the update is not picked up by the other weblogic application tangosol cache.
    What do I need to do so that all updates are available in all the tangosol cache?
    example below:
    initial:
    server1: weblogic tangosol near cache, key = "One", Value = null
    server2: weblogic tangosol near cache, key = "One", Value = null
    update on server1;
    server1: weblogic tangosol near cache, key = "One", Value = "New York"
    server2: weblogic tangosol near cache, key = "One", Value = null <- still null (?)
    Why is the value on server2 not updated also?
    Thanks.
    The tangosol configuration is a near distributed cache. The xml is below. Thanks.
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <!--
    Caches with any name will be created as default replicated.
    -->
    <cache-mapping>
    <cache-name>*</cache-name>
    <scheme-name>default-near</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <!--
    Default simple Near caching scheme with default eviction local cache
    in the front-tier and a non-expiring distributed cache in the back-tier.
    -->
    <near-scheme>
    <scheme-name>default-near</scheme-name>
    <front-scheme>
    <local-scheme>
    <scheme-ref>default-eviction</scheme-ref>
    </local-scheme>
    </front-scheme>
    <back-scheme>
    <distributed-scheme>
    <scheme-ref>default-distributed</scheme-ref>
    </distributed-scheme>
    </back-scheme>
    <!--
    invalidation auto = all changes in back caches gets notified
    present = subscribes to only changes thats held in near cache
    -->
    <invalidation-strategy>auto</invalidation-strategy>
    <!-- the cache server starts does not start all the schemes -->
    <autostart>false</autostart>
    </near-scheme>
    <!--
    Default Distributed caching scheme.
    -->
    <distributed-scheme>
    <scheme-name>default-distributed</scheme-name>
    <service-name>DistributedCache</service-name>
    <backing-map-scheme>
    <class-scheme>
    <scheme-ref>default-backing-map</scheme-ref>
    </class-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <!--
    Default backing map scheme definition used by all the caches that do
    not require any eviction policies
    -->
    <class-scheme>
    <scheme-name>default-backing-map</scheme-name>
    <class-name>com.tangosol.util.SafeHashMap</class-name>
    <init-params></init-params>
    </class-scheme>
    <!--
    Default eviction policy scheme.
    -->
    <local-scheme>
    <scheme-name>default-eviction</scheme-name>
    <eviction-policy>HYBRID</eviction-policy>
    <high-units>100000</high-units>
    <low-units>0</low-units>
    <expiry-delay>0</expiry-delay>
    <flush-delay>0</flush-delay>
    <cachestore-scheme></cachestore-scheme>
    </local-scheme>
    </caching-schemes>
    </cache-config>

    We can certainly set up a call to discuss what you are seeing. Please email [email protected] with your phone number and other information to set up the call.
    The more information that you can provide in advance (on the forum or by email), the better. For example, send your configuration settings (cache configuration, cluster configuration) files.
    Peace.

  • Controlling EJB Cache & Warning BEA-010001 in 8.1

    Background: Migrated from 6.1 to 8.1. Using CMP with template.j modified (migrated).
    Problem:
    1. Could not use any Entities which uses Entity Cache. It throws weblogic.ejb20.cache.CacheFullException
    during ejbLoad. My existing Cache parameters are (anyway, it is no different from
    6.1 where itz working fine)
    <pool>
    <max-beans-in-free-pool>100</max-beans-in-free-pool>
    </pool>
    <entity-cache>
    <max-beans-in-cache>100</max-beans-in-cache>
    <idle-timeout-seconds>610</idle-timeout-seconds>
    <read-timeout-seconds>60</read-timeout-seconds>
    <concurrency-strategy>Database</concurrency-strategy>
    </entity-cache>
    Is there any new configuration which needs to be set for 8.1? Redirection to
    some checklist for controlling there cache parameter would be helpful?
    2. While deploying my Beans it shows up Warning BEA-010001. Documentation says,
    specify in weblogic-ejb-jar.xml<weblogic-ejb-jar> <disable-warning>BEA-010001
    | BEA-010054</disable-warning>..</weblogic-ejb-jar>. I have thousands of beans
    deployed in the server my warning message dumps my console with these messages
    hiding critical error messages. Is there any 'additional parameters' to stop
    this warning or route this warning to a separate log file?
    TIA
    JAK

    Hi Jak,
    max-beans-in-cache equal 100 is way too low for any real life application.
    I'm not sure why it worked for you in 6.1. I remember setting it was broken
    in 6.1 at some point.
    Regards,
    Slava Imeshev
    "jak" <[email protected]> wrote in message
    news:3f07e7c9$[email protected]..
    >
    Background: Migrated from 6.1 to 8.1. Using CMP with template.j modified(migrated).
    >
    Problem:
    1. Could not use any Entities which uses Entity Cache. It throwsweblogic.ejb20.cache.CacheFullException
    during ejbLoad. My existing Cache parameters are (anyway, it is nodifferent from
    6.1 where itz working fine)
    <pool>
    <max-beans-in-free-pool>100</max-beans-in-free-pool>
    </pool>
    <entity-cache>
    <max-beans-in-cache>100</max-beans-in-cache>
    <idle-timeout-seconds>610</idle-timeout-seconds>
    <read-timeout-seconds>60</read-timeout-seconds>
    <concurrency-strategy>Database</concurrency-strategy>
    </entity-cache>
    Is there any new configuration which needs to be set for 8.1? Redirectionto
    some checklist for controlling there cache parameter would be helpful?
    2. While deploying my Beans it shows up Warning BEA-010001. Documentationsays,
    specify in weblogic-ejb-jar.xml<weblogic-ejb-jar><disable-warning>BEA-010001
    | BEA-010054</disable-warning>..</weblogic-ejb-jar>. I have thousands ofbeans
    deployed in the server my warning message dumps my console with thesemessages
    hiding critical error messages. Is there any 'additional parameters' tostop
    this warning or route this warning to a separate log file?
    TIA
    JAK

  • Result Cache value

    my table frequently updating value.I want to retrieve updated value from result cache not from the table .
    I used result cache function for the same.updated value is coming from table and not updated value from result cache.
    Is it possible to retrieve updated value from result cache.or any the memory area.
    I have below query
    SELECT /*+RESULT_CACHE*/SALARY FROM EMPLOYEES WHERE EMPLOYEE_ID = 160
    at the first time above query retrieving value from the disk.
    next time it is retrieving value from result cache. that is correct.
    But whenever salary is updating for the employee_id =160.
    after that that query retrieving value from disk. this is also correct.
    But i want to retrieve value after update the salary for that employee_id=10 from result cache not from disk.I want to any mechanism is available in oracle that can retrieve value from result cache for the same input if record is updated.
    Edited by: ibney on Mar 20, 2013 2:15 AM

    Hi Karthick,
    I know that .i have another question .
    I have below query
    SELECT /*+RESULT_CACHE*/SALARY FROM EMPLOYEES WHERE EMPLOYEE_ID = 160
    at the first time above query retrieving value from the disk.
    next time it is retrieving value from result cache. that is correct.
    But whenever salary is updating for the employee_id =160.
    after that that query retrieving value from disk. this is also correct.
    But i want to retrieve value after update the salary for that employee_id=10 from result cache not from disk.I want to any mechanism is available in oracle that can retrieve value from result cache for the same input if record is updated.
    Edited by: ibney on Mar 20, 2013 2:16 AM
    Edited by: ibney on Mar 20, 2013 2:16 AM

  • How to get the EJB "Cached Beans Current Count" in Command-Line

    I use WebLogic console to monitor EJB's "Cached Beans Current Count" property in monitor tab, but I want to get the result in Command-Line using "weblogc.Admin".
    What arguments to be used?
    I can get the EJB property use:
    java -cp weblogic.jar weblogic.Admin -url t3://svr:7001 -username weblogic -password weblogic GET -mbean mydomain:Application=myear,Name=myejb
    .jar,Type=EJBComponent
    How can I to get the "Cached Beans Current Count"

    Hello,
    This should do the trick
    $JAVA_HOME/bin/java -cp $CLASSPATH weblogic.Admin -url <server_url> -username <username> -password <password> GET -pretty -type EJBCacheRuntime -property CachedBeansCurrentCount
    Also see http://e-docs.bea.com/wls/docs81/admin_ref/cli.html for more info.
    Cheers,
    Hoos
    Message was edited by hoos at Nov 29, 2004 1:50 AM

  • Servlet - EJB, caching home & context problem

    Hello,
    I just run into the following problem:
    I created a thin client which accesses the EJB's via a servlet.
    In this servlet I cached the InitialContext und and the reference
    to the Home interface. While creating the initial context I provided
    login/password to access the EJB so it can't be accessed from the guest
    user.
    The first method call works as expected, any further call results
    in a RemoteException - Insufficent permissions.
    Any hints? I'm using 5.1, SP6.
    Zhanxs in advance
    Marcel

    The security creditials you suppplied to the IntialContext are only applied
    to the thread that created the InitialContext. I have only found one
    work-around - Construct an otherwise useless IntialContext each time a
    thread attempts to use and EJB or its home. This is inefficient and almost
    (not quite) destroys the advantage of caching the stubs.
    Is there any other solution? Any thing coming down the pike?
    Chuck McCorvey
    "Marcel Zielinski" <[email protected]> wrote in message
    news:[email protected]..
    Hello,
    I just run into the following problem:
    I created a thin client which accesses the EJB's via a servlet.
    In this servlet I cached the InitialContext und and the reference
    to the Home interface. While creating the initial context I provided
    login/password to access the EJB so it can't be accessed from the guest
    user.
    The first method call works as expected, any further call results
    in a RemoteException - Insufficent permissions.
    Any hints? I'm using 5.1, SP6.
    Zhanxs in advance
    Marcel

  • Clear the selection screen cached values

    Hello BW gurus,
    Is there a way to clear the contents of the selection screen(cached variable values) whenever it is refreshed?
    Thanks,
    madhuri

    Hi Madhuri,
    Please check this link if any use let me know
    http://help.sap.com/saphelp_crm50/helpdata/en/6e/798e07b33b11d5993800508b6b8b11/frameset.htm
    thanks
    Ranganath

  • EJB Cache

    Hi!
    I am having trouble figuring out how to do sessions in web services. For this porpouse I would like to use a cache in an EJB container...
    How could I make this cache, so that there is only one instance per cluster???

    Thanks swatdba,
    But I am trying to keep my app portable.
    I think I am going to do a singleton.
    Better to have one cache per VM rather not have any at all.

Maybe you are looking for

  • Moving from SQL server 2005 to SQL server 2008 ... for a MS/SQL newbie.

    Hello, I am in charge of moving an existing SAP NW BI (SPS20) from a MS SQL Server 2005 database on Windows Server 2003 (x864/64 bit) Platform to a MS SQL Server 2008 database/Windows Server 2008 Platform (x64/64 bit). The SID of the SAP system will

  • Recover Database Failed..

    Hi, I am trying to recover my Oracle 9i v9.2.0.4 database running on Solaris 9 (sparc). Database is in archived log mode and RMAN is also used to perform incremental and full backups. My database died with an internal error and so far I can restore i

  • Date shows as correct day-January(for any month)-correct year;

    For example: 2011-09-05 shows as 5 January 2011. This is transferred onto all date stamps on documents in mail, i-photo etc In mail inbox I can correct the issue by narrowing the time, date column, wwhich then shows correct numerical date values, but

  • Wrong URL is picked

    HI Experts, I have a problem, i am posting in this forum too. I am on Ep6.0 SP20. and trying to implement leave request. Necessary workflow templates are activated., in swfvisu, checked the launching of each task. I see the entries for approval task:

  • Copy Objects in OO ABAP.

    Hi, data: o_pricecond type zpricecond_struct. data: o_pricemat type zpricematerial_struct. ..some code for filling objects. I now have 2 different objects . I want to copy all fields from one object to another. The field names are the same... This gi