Non-Persistent Entities

We have a very complicated search which needs to be built similarily to a shopping order using an online cart. We have created an Entity called SearchCart which holds the values of the search being built. When you user starts a search, a new record is created in the entity cache to track that search. I have two questions:
1. Is this method preffered or should I use the session object?
2. When will these records in the entity cache be cleaned up? As I understand it, any abandoned transactions will exist until the application module is recylced. Is this right?
Thanks for your time!

For those who are interested. It worked very well. Although the BC4J component editors complained occasionally (specifically the VOs) about not having a query it worked very effectively. I only tested for one user but I assume it will work concurrently as well.
We have decided to save the data to the DB anyways so it is no longer a transient entity!
If anyone has questions, please ask.

Similar Messages

  • How to mark ALBPM messages as non-persistent?

    Hi,
    When using the WLS JMS Server, persistence for the messages sent through the queue is not required since ALBPM uses the JMS Queue as a dispatching mechanism only. However, since the messages sent to the Queue are marked as “Persistent”, you must mark the Queue as “Store Enable”. This will allow the WLS JMS Server to accept messages that are marked as “Persistent”. Is there any setting by which we can make these messages as non-persistent so that queues don't have to be store enabled?
    Regards,
    Xavier

    The idea behind this is to increase the speed by using non-persistent queue.
    Please help.
    Regards,
    Xavier

  • Persisting Entities in different databases

    Hello! In our compony we need to store information in two different databases. To check if this is possible I've written a simple program, in which part of the entities is stored in one DB, and the other part - in another. And I have an error during deployment whith the following stack trace:
    Deployment Error -- Exception [TOPLINK-0] (Oracle TopLink Essentials - 2006.4 (Build 060412)): oracle.toplink.essentials.exceptions.IntegrityException
    Descriptor Exceptions:
    Exception [TOPLINK-94] (Oracle TopLink Essentials - 2006.4 (Build 060412)): oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: Descriptors must have a table name defined.
    Descriptor: RelationalDescriptor(entity.Specification --> [])
    Exception [TOPLINK-74] (Oracle TopLink Essentials - 2006.4 (Build 060412)): oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: The primary key fields are not set for this descriptor.
    Descriptor: RelationalDescriptor(entity.Specification --> [])
    Exception [TOPLINK-108] (Oracle TopLink Essentials - 2006.4 (Build 060412)): oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: Cannot find value in class indicator mapping in parent descriptor [null].
    Descriptor: RelationalDescriptor(entity.Specification --> [])All I want is to store Specification entity and SalesLineItem entity in different databases, while there's a OneToOne unidirectional relationship between them. Here is part of SalesLineItem entity:
    @Entity
    public class SalesLineItem implements Serializable {
         private int quantity;
         private Specification productSpec;
         private int id;
         private Sale sale;
         @OneToOne
         public Specification getSpecification() {
              return this.productSpec;
         }And here's my persistence.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
      <persistence-unit name="pu1" transaction-type="JTA">
        <jta-data-source>jdbc/__default</jta-data-source>
        <class>entity.Payment</class>
        <class>entity.Sale</class>
        <class>entity.SalesLineItem</class>
        <exclude-unlisted-classes>true</exclude-unlisted-classes>
        <properties>
          <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
          <property name="toplink.platform.class.name" value="oracle.toplink.essentials.platform.database.DerbyPlatform"/>
        </properties>
      </persistence-unit>
      <persistence-unit name="pu2" transaction-type="JTA">
        <jta-data-source>jdbc/__resource</jta-data-source>
        <class>entity.Catalog</class>
        <class>entity.Specification</class>
        <exclude-unlisted-classes>true</exclude-unlisted-classes>
        <properties>
          <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
          <property name="toplink.platform.class.name" value="oracle.toplink.essentials.platform.database.DerbyPlatform"/>
        </properties>
      </persistence-unit>
    </persistence>Then, I suppose, I create two EntityManger is session beans, each associated with one specific persistence unit.
    When I use one database (one pesistence-unit in persistence.xml), everything works fine. I wonder, if it's possible to persist entities in a such way that entities with relationships between them are stored in different databases. Any help is greatly appreciated.

    If I could know, how to perform or some sample code, for the following two steps it would be great.
    Write descriptor ammendment code to bind together that go from (A) to (B) and (B) to (A).
    Be sure to map the ammendment descriptors in the mapping workbench.Or please point me to the right toplink documentation or examples.
    Thanks a lot for your help.

  • Single Persistent instance of a Object, Many non persistant. Same Identity on persist

    I have a persistent bean class with two Strings as member fields. (example
    below)
    I have many other classes that use it a part of they're member fields.
    I need to have only one persistant version of it (One row, to many Rows in
    different tables). But can have many non persistant versions. I can't
    control the creation of the non persistant objects.
    i.e.
    On persist, How can I configuration JDO to detect that it's the same as an
    object already in the database and use that instead?
    example:
    // Example class One
    package foo;
    public class One(){
    public String var1;
    public String var2;
    public String getVar1(){
    return this.var1;
    public void setVar1(String var1Set){
    this.var1 = var1Set
    public String getVar2(){
    return this.var2;
    public void setVar2(String var2Set){
    this.var2 = var2Set
    /// one.jdo
    <?xml version="1.0"?>
    <jdo>
    <package name="foo">
    <class name="One"/>
    </package>
    </jdo>
    ///Example Scenario
    One oneObject = new One();
    oneObject.setVar1("Value1");
    oneObject.setVar2("Value2");
    pm.makePersistent(oneObject); // one row in database
    /// Some time later, in a different thread, or since JVM shutdown and
    restart
    One oneObject = new One();
    oneObject.setVar1("Value1");
    oneObject.setVar2("Value2");
    pm.makePersistent(oneObject); // one row in database, instead of two.

    You cannot. You should either find the object by query or retrieve it
    using application identity.
    Graham Cruickshanks wrote:
    I have a persistent bean class with two Strings as member fields. (example
    below)
    I have many other classes that use it a part of they're member fields.
    I need to have only one persistant version of it (One row, to many Rows in
    different tables). But can have many non persistant versions. I can't
    control the creation of the non persistant objects.
    i.e.
    On persist, How can I configuration JDO to detect that it's the same as an
    object already in the database and use that instead?
    example:
    // Example class One
    package foo;
    public class One(){
    public String var1;
    public String var2;
    public String getVar1(){
    return this.var1;
    public void setVar1(String var1Set){
    this.var1 = var1Set
    public String getVar2(){
    return this.var2;
    public void setVar2(String var2Set){
    this.var2 = var2Set
    /// one.jdo
    <?xml version="1.0"?>
    <jdo>
    <package name="foo">
    <class name="One"/>
    </package>
    </jdo>
    ///Example Scenario
    One oneObject = new One();
    oneObject.setVar1("Value1");
    oneObject.setVar2("Value2");
    pm.makePersistent(oneObject); // one row in database
    /// Some time later, in a different thread, or since JVM shutdown and
    restart
    One oneObject = new One();
    oneObject.setVar1("Value1");
    oneObject.setVar2("Value2");
    pm.makePersistent(oneObject); // one row in database, instead of two.
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Problem creating non-persistent Child Objects

    I have the need to create a non persistable child object in the
    jdoPreStore of a parent object. I then perform some tests on the parent
    to determine if the child object needs to be persisted or not. If I leave
    the child non persistent it still writes to the database.
    I was performing the follwoing piece of code
    Class Parent {
    // The relationship is a 0 to many
    public Child createChild() {
    Child child = .....//create non persistent object
    child.setParent(this);
    getChild().add(child);
    It appears that if I remove the getChild().add(child). It does not
    persist (as desired).
    Is this correct behaviour?? I dont think that it should be, but if it is
    then I have a further problem.
    If that child object inherits from another object and you remove the
    getChild().add(child) kodo outputs an invalid object to the database. It
    doesnt insert a row to the child table. But it inserts a row to the
    childs inherited object table. This is now an invalid object and will
    fail upon loading.
    Any help on this would be appreciated.
    Thanks
    Luke.

    JDO has something called persistence by reachability. This means that
    objects do not have to explicitly be marked as to be persistent as JDO
    will traverse the object graph to ensure that all nodes are persistent.
    I think you are seeing this behavior combined with another side
    behavior: Kodo requires that both sides of a relation be set.
    Basically, keep your objects in synch (set both sides of the relation).
    And if you want to hold onto a reference to non-persistent object
    before you decide what to do with it, add a transient field or a field
    marked "persistence-modifier="none"" in your metadata and then process
    those transient fields in jdoPreStore ().
    i.e.
    if (//businessLogic is true)
    persistentField = transientField;
    Luke wrote:
    I have the need to create a non persistable child object in the
    jdoPreStore of a parent object. I then perform some tests on the parent
    to determine if the child object needs to be persisted or not. If I leave
    the child non persistent it still writes to the database.
    I was performing the follwoing piece of code
    Class Parent {
    // The relationship is a 0 to many
    public Child createChild() {
    Child child = .....//create non persistent object
    child.setParent(this);
    getChild().add(child);
    It appears that if I remove the getChild().add(child). It does not
    persist (as desired).
    Is this correct behaviour?? I dont think that it should be, but if it is
    then I have a further problem.
    If that child object inherits from another object and you remove the
    getChild().add(child) kodo outputs an invalid object to the database. It
    doesnt insert a row to the child table. But it inserts a row to the
    childs inherited object table. This is now an invalid object and will
    fail upon loading.
    Any help on this would be appreciated.
    Thanks
    Luke.
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Weird exception: Cannot instantiate non-persistent class: java.util.Map

    java.lang.UnsupportedOperationException: Cannot instantiate non-persistent class: java.util.Map
         at com.sleepycat.persist.impl.NonPersistentFormat.newInstance(NonPersistentFormat.java:45)
         at com.sleepycat.persist.impl.PersistEntityBinding.readEntity(PersistEntityBinding.java:89)
         at com.sleepycat.persist.impl.PersistEntityBinding.entryToObject(PersistEntityBinding.java:61)
         at com.sleepycat.persist.PrimaryIndex.put(PrimaryIndex.java:338)
         at com.sleepycat.persist.PrimaryIndex.put(PrimaryIndex.java:299)
         at com.xx.support.dbd.IdentityDataAccessor.insert(IdentityDataAccessor.java:33)
         at com.xx.support.dbd.BerkeleyDBAccountStorage.saveUser(BerkeleyDBAccountStorage.java:95)
         at com.xx.support.bdb.BerkeleyDBAccountStorageTests.initBerkeleyDBData(BerkeleyDBAccountStorageTests.java:38)
         at com.xx.support.bdb.BerkeleyDBAccountStorageTests.setUp(BerkeleyDBAccountStorageTests.java:28)
         at junit.framework.TestCase.runBare(TestCase.java:125)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
    What's the root cause of this exception?

    I wrote a small test using the classes you included
    in your message and I am able to retrieve the user by
    key, as in the code above. So I'm not sure what
    you're doing that is causing the problem. Please
    send a small test that reproduces the problem.Oops, I forgot to include the source for the test I wrote. Here it is.
    import java.io.File;
    import java.util.HashMap;
    import java.util.Map;
    import com.sleepycat.je.DatabaseException;
    import com.sleepycat.je.Environment;
    import com.sleepycat.je.EnvironmentConfig;
    import com.sleepycat.persist.EntityStore;
    import com.sleepycat.persist.PrimaryIndex;
    import com.sleepycat.persist.StoreConfig;
    import com.sleepycat.persist.model.Entity;
    import com.sleepycat.persist.model.Persistent;
    import com.sleepycat.persist.model.PrimaryKey;
    public class Test {
        @Persistent
        public static class SimplePrincipal {
            protected String name;
            public SimplePrincipal(String username) {
                this.name = name;
            public SimplePrincipal() {}
        @Entity
        public static class SimpleUser extends SimplePrincipal {
            @PrimaryKey
            private String key;
            private Map properties;
            public SimpleUser() {
                super();
                this.properties = new HashMap();
            public SimpleUser(String username) {
                super(username);
                this.properties = new HashMap();
            public void setKey(String key){
                this.key = key;
            public void addPropertity(String name, String value) {
                this.properties.put(name, value);
            @Override
            public String toString() {
                return "[SimpleUser key: " + key + " name: " + name + ']';
        private Environment env;
        private EntityStore store;
        private PrimaryIndex<String, SimpleUser> primaryIndex;
        private void open()
            throws DatabaseException {
            EnvironmentConfig envConfig = new EnvironmentConfig();
            envConfig.setAllowCreate(true);
            envConfig.setTransactional(true);
            env = new Environment(new File("./data"), envConfig);
            StoreConfig storeConfig = new StoreConfig();
            storeConfig.setAllowCreate(true);
            storeConfig.setTransactional(true);
            store = new EntityStore(env, "test", storeConfig);
            primaryIndex = store.getPrimaryIndex(String.class, SimpleUser.class);
        private void close()
            throws DatabaseException {
            store.close();
            env.close();
        private void execute()
            throws DatabaseException {
            SimpleUser user = new SimpleUser("test");
            user.setKey("testkey");
            primaryIndex.put(user);
            user = primaryIndex.get("testkey");
            System.out.println(user);
        public static void main(String[] args)
            throws DatabaseException {
            Test test = new Test();
            test.open();
            test.execute();
            test.close();
    }Mark

  • Collection of non-persistent objects

    Greetings
    Is it possible to persist a Collection of non-persistent objects through the
    kodo externalization feature? The non-persistent objects themselves are
    externalizable, but I don't know how I would go about persisting a
    Collection of them.
    ..droo.

    If you store them in some sort of externalized form in a single column it is
    easy - just use externalization framework to ext and de-ext them to anf from
    string. Couple of caveats you need to be aware of If your collection objects
    are mutable:
    1. You need to durty your collection field so it get prsisted on commit
    2. on rollback Kodo will restore you collection content but not collection
    member content. If they are mutable you will have to make their class
    persistent with mapping "none" so they participate in transaction
    "Drew Lethbridge" <[email protected]> wrote in message
    news:BD0B44BF.544%[email protected]..
    Greetings
    Is it possible to persist a Collection of non-persistent objects throughthe
    kodo externalization feature? The non-persistent objects themselves are
    externalizable, but I don't know how I would go about persisting a
    Collection of them.
    .droo.

  • Non-Persistent VDI's stuck in Remediation Status pending in SCEP

    Currently have 2 VDI's stuck in a remediation state - pending. The action required states Endpoint Protection Pending Reboot.
    Since these are non-persistent devices the virus has been removed after a restart as they are back to a clean image however SCCM/SCEP does not seem to recognise the restart state. 
    How can I clear this so that the clients report back as re mediated? Note I have run a full scan and restarted the devices.
    Cheers
    Paul | sccmentor.wordpress.com

    Hi,
    Please examine ExternalEventAgent.log on the client to see whether the state messages have been forwarded successfully.
    And check EPCtrlMgr.log on the site system server that records details about the synchronization of malware threat information from the Endpoint Protection role server into the Configuration Manager database.
    Best Regards,
    Joyce Li
    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.

  • The concept of http persistent and non-persistent

    pls somebody explain me the concept of "keepalive type http".
    when and where configure the persistent and non-persistent? not clear from the doc that HTTP-head, HTTP-get, classA and classB.
    Thanks in advance.

    Persistent will use HTTP version 1.1 while non-persistent will use version 1.0.
    Use non-persistent only if your server does not support http version 1.1.
    HTTP method HEAD or GET is selected with the command 'keepalive method'.
    A head does not require the server to send us the content of the requested file, but simply an acknowledgement that the file is available.
    The GET will request the complete file from the server and the CSS will verify that the content did not change compare to first GET request.
    Again, I would recommend the default - head, unless you believe somebody could corrupt the content of your website.
    Regards,
    Gilles.

  • Can't use non persistent domains im Bc4j

    I tryed to create a new domain with the persistent option off (in my example it was String type).
    Then I selected one of my Entity Objects to add a new non-persistent property. When I select my created domain, it raises an nullpointer Excpetion.
    I'm using Jdev 3.1 under NT. It happens with any entity in any project that I create. Even if I close my project and reopen, it still happens.
    Only persistent domains are working in this realease ?
    Alexandre Torres

    At least, it looks like just an JDev bug. I writed by hand the new attribute in the XML file, and it works fine. But I can't use the edit option of the menu anymore to this Entity...
    this is the Xml definition
    <Attribute
    Name="ConteudoXml"
    IsQueriable="false"
    <!-- this sets as non persistent -->
    IsPersistent="false"
    <!-- the domain line and the type looks like redundant... --> Domain="com.dixtal.central.negocio.XmlDomain"
    Type="com.dixtal.central.negocio.XmlDomain"
    ColumnName="$none$"
    ColumnType="$none$" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="0" />
    </DesignTime>
    </Attribute>
    Expect this bug to be corrected in next version of the product

  • How to activate Acrobat Pro XI on a non persistant VDI desktop?

    Hi,
    I installed Acrobat Pro XI on a Citrix XenDesktop non persistant environment. I used the customization wizard and all seems to work without any questions for activation, but... When I logon to the desktop I start Acrobat Pro XI and I don't have the "PRO" options enabled (like for example  PDF Portfolio). When I close the program and open it again I do have the PRO options so it looks like the program is activating online at the first startup of the program.
    I don't think my users like to start a program then have to close it and start again to use the full options and it shouldn't be working like that.
    Does somebody know how to fix this?
    Kind regards,
    Freek van Ekkendonk

    When the user is logging on he gets a random desktop from the pool, al the virtual desktops have the same image. The registration has been done once on the master image. It could be that when the computer name changes to a random name in the pool the license gets expired because of the changed computername and then tries to activate again online.
    I don't think I have a volume serial number and I don't use the off-line exception because I couldn't get it to work. Below is the error log.
    2014-07-30 08:10:13 [6208]  Adobe PRTK: *** Adobe PRTK tool START ***
    2014-07-30 08:10:13 [6208]  Adobe PRTK: Adobe PRTK tool VolumeSerialize invoked
    2014-07-30 08:10:13 [6208]  Adobe PRTK: C:\Users\F8B95~1.VAN\AppData\Local\Temp\Cus47EB1100
    2014-07-30 08:10:13 [6208]  Adobe PRTK: creating  C:\Users\F8B95~1.VAN\AppData\Local\Temp\Cus47EB1100\prov.xml
    2014-07-30 08:10:13 [6208]  OOBELib: __OOBELIB_LOG_FILE__
    2014-07-30 08:10:13 [6208]  OOBELib: *************OOBELib Session Starts*************
    2014-07-30 08:10:13 [6208]  OOBELib: Version 6.2.0.42,6.2
    2014-07-30 08:10:13 [6208]  PCDService: PCD Service in non-threaded mode
    2014-07-30 08:10:13 [6208]  OPMWrapper: Failed in getting value for key in OPMGetValueForKey
    2014-07-30 08:10:13 [6208]  OOBELib: Failed to get Proxy username in OPM DB
    2014-07-30 08:10:13 [6208]  AXFBLicensing: Failed to load axlib.dll, trying again
    2014-07-30 08:10:13 [6208]  AXFBLicensing: Failed to load axlib.dll, trying again with axlib in ACF
    2014-07-30 08:10:14 [6208]  AXFBLicensing: All function pointers successfully retrieved
    2014-07-30 08:10:14 [6208]  OOBELib: Received Params for Online Validation : Driver : V6{}AcrobatPro-AS2-Win-GM, Caller : 3
    2014-07-30 08:10:14 [6208]  OOBELib: received LEID : V6{}AcrobatPro-AS2-Win-GM
    2014-07-30 08:10:14 [6208]  OOBELib: Supported Locales : ALL
    2014-07-30 08:10:14 [6208]  OOBELib: OOBELib ValidateSerialOnline
    2014-07-30 08:10:14 [6208]  OOBELib: Validate using Driver LEID : V6{}AcrobatPro-AS2-Win-GM, App LEID : <blank>, SN : XXXXXXXXXXXXXXXXXXXXXXX
    2014-07-30 08:10:14 [6208]  OOBELib: Failed to get system default proxy in setProxyCredentialsForIALSession
    2014-07-30 08:10:14 [6208]  OOBELib: Failed to set proxy credentials for IAL session while validating serial number
    2014-07-30 08:10:14 [6208]  OOBELib: HTTPCommunicationAgent::processMessage is https://lm.licenses.adobe.com/aes/aes/v1/serialInfo (extURL=)
    2014-07-30 08:10:15 [6208]  OOBELib: HTTP Request Status code 200.
    2014-07-30 08:10:15 [6208]  OOBELib: HTTPCommunicationAgent- Return Code:[0] response size-[3068] time taken-[1038.97]ms.
    2014-07-30 08:10:15 [6208]  OOBELib: Validate Serial status-[0] took-[1060.15]ms.
    2014-07-30 08:10:15 [6208]  OOBELib: checking LEID V6{}AcrobatPro-AS2-Win-GM
    2014-07-30 08:10:15 [6208]  OOBELib: LEID : V6{}AcrobatPro-AS2-Win-GM qualifies for install
    2014-07-30 08:10:15 [6208]  OOBELib: Cannot accept a Retail SN in the AAMEE workflow
    2014-07-30 08:10:15 [6208]  OOBELib: Using Driver/ALL combination for offline/invalid SNs scenario
    2014-07-30 08:10:15 [6208]  OOBELib: SN validated for AAMEE mode
    2014-07-30 08:10:15 [6208]  OOBELib: OOBELib stat = 27
    2014-07-30 08:10:16 [6208]  Adobe PRTK: Failed to validate the serial number
    2014-07-30 08:10:16 [6208]  Adobe PRTK: Return code 14
    2014-07-30 08:10:16 [6208]  Adobe PRTK: *** Adobe PRTK tool END ***

  • Non-persistent fields

    Hi,
    I would like to use toplink with objects that contains both persistent and non-persistent fields (unmapped). When I insert such an object to the database using unit-of-work, and then try to query toplink for that same object elsewhere in my program I only get the persistent fields. I've tried using checkCacheThanDatabase() which resolved the problem but this method is only available for ReadObjectQuery not for ReadAllQuery (the javadoc is not consistent with the code).
    My questions:
    1. For ReadObjectQuery, can I trust the cache to always have my object, or is there a risk that the cache will drop it?
    2. What to do with ReadAllQuery?
    3. Any other approach that can work?

    You can make non-persistent attributes remain with the object in a unit of work through using a clone policy and using the postMerge event.
    Your class needs to implement Cloneable and in the descriptor use clone-copy-policy. This will ensure that when a cached object is registered into the unit of work the non-persistent attributes will be maintained.
    When the unit of work merges a transactional object into the session cache you need to make sure you copy the non-persistent attributes from the clone to the cached object. You can do this through a DescriptorEventListener and the postMerge event.
    Example:
    postMerge(DescriptorEvent event) {
    String tempProperty = ((MyClass) event.getObject()).getProperty();
    ((MyClass) event.getOringalObject()).setProperty(tempProperty);
    Note that since the attribute is non-persistent it will not be guaranteed to persist indefinitely. The non-persistent attributes duration will be dependant on your caching policy, if it gets dropped from the cache, a new instance will be built from the database the next time it is accessed.
    The checkCacheThanDatabase checkCacheOnly properties should not have any effect on what you get from the cache. Reads that access the database will still maintain object identity with the cache, and you should get back the correct object.

  • Updating non-persistent fields in an Entity Object

    Hi,
    I wanted to add a non-persistent field to an Entity Object to use as a temporary aggregate field for a detail entity. It appears that storing data in the field makes it look like the master entity has been updated even though the value cannot be saved in the data base. Is this the way it is supposed to work?
    I was trying to avoid putting invisible controls in the UI or creating "global" variables.
    Thanks,
    Peter

    This can be done with programmatic VOs: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#sm0341
    Sample: http://blogs.oracle.com/smuenchadf/examples/#132
    You can also opt to do this with a simple Java class and a data control based on it.
    For example: http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html

  • How maintaining the connection table for sticky/persistent/non-persistent?

    Question about how to maintain the connection table for the source(client) and destination(server) in the CSM(or CSS).
    I know the sticky has the table and max size such as 128K(css11501)as per CCO but not clear how works the persistant and non-persistant case.
    Q1) persistant. does it maintain the conntion table to tracking the session? then, any information the table size?
    Q2) non-persistant. is this also have connection table? then, how it works?
    why I'm asking is want to understand how the session keep tracking. for example, the router based on the routing table(stateless) versus PIX firewall has stateful table. As analogue, is the non-persistnet stateless and statefull for the persistent and sticky?
    Thnaks in advance,

    The CSS uses FCB to maintain information about active connections.
    Each connections requires 2 FCB - one for client to vip and one for server to client.
    When you boot the CSS it will immediately reserver a good amount of memory to create a list of FCB.
    Each connection will then take 2 FCB from the list.
    You can do a 'flow stat' from llama mode to verify how much free/used FCB you have.
    When running low on FCB, the CSS will try to allocate more memory.
    Gilles.

  • Need to cache non-persistent field value

    Is it possible to have a non-persistent field in PC class which value will be updated by app, stored in DataCache and then can be used when PC instance will be taken from DataCache next time?
    I tried to map my field as persistence-modifier="transactional" or "none". I do see in my log that the object is taken from cache, but that transient field value is always null after object retreival.
    Thanks, Denis.

    Thanks for the hint, Abe.
    I got what I need via custom filed mapping. If anyone interested:
    public class CacheFieldMapping extends ColumnFieldMapping {
    public CacheFieldMapping(FieldMetaData meta) {
    super(meta);
    public String getMappingType() {
    return getClass().getName();
    protected int getJDBCType() {
    return Types.OTHER;
    public boolean map() {
    return true;
    public void fromMappingInfo(MappingInfo info, boolean adapt) {
    // do nothing...
    public void toMappingInfo(MappingInfo info) {
    // do nothing...
    public void refSchemaComponents() {
    // do nothing...
    public int select(Select sel, KodoStateManager sm, JDBCStoreManager store,
    JDBCFetchConfiguration fetch, int eagerMode) {
    return -1;
    public void load(KodoStateManager sm, JDBCStoreManager store,
    JDBCFetchConfiguration fetch, Result res) throws SQLException {
    // do nothing...
    public void load(KodoStateManager sm, JDBCStoreManager store,
    JDBCFetchConfiguration fetch) throws SQLException {
    sm.storeObject(getIndex(), null);
    public Object loadProjection(JDBCStoreManager store,
    JDBCFetchConfiguration fetch, Result res, Joins joins) throws SQLException
    return null;
    public Boolean isCustomInsert(KodoStateManager sm) {
    return Boolean.TRUE;
    public Boolean isCustomUpdate(KodoStateManager sm) {
    return Boolean.TRUE;
    protected void update(KodoStateManager sm, Row row) throws SQLException {
    // do nothing...
    "Abe White" <[email protected]> wrote in message
    news:[email protected]..
    No, this is not possible. The data cache acts exactly like the
    database, only storing persistent values.

Maybe you are looking for

  • How can I tell if my iPad 3 is using up the battery too quickly?

    I have only used my iPad a few times so far, and the battery isn't down to zero, but I still worry that that battery isn't holding its charge because it seems that every time I look up @ the battery indicator it has gone down a point or two, somethin

  • .rmt file missing from firmware download

    The readme file included with the firmware download zip file states to look for a .rmt file. There are only .txt files and a .bin file in the zip file. Are the instruction wrong/obsolete or should there be a .rmt file in the .zip file or is the .bin

  • Can copy but cannot PASTE from an AW 6 DB

    I have a DB I've used for years. Originally created, I think, in Clarisworks 2. It isn't too large: 500 items, and maybe 12 fields. Recently, I have developed this problem which occurs on my G3 (sys 9) and my G5 (sys 10.4)....I've tried the same DB o

  • No 4G connectivity option using Wind GR

    Hello to all! I am a happy owner of a BlackBerry Z30 smartphone. Few days now Wind mobile operator here in Greece provides 4G connectivity but unfortunately i can't have that on my Z30.. Below you will find few details that might be important: - Mode

  • How can I restore events/tasks from a system backup using prefs.fs and local.sqlite?

    I accidentally deleted a calendar holding all my thunderbird tasks. I was now able to restore the calendar from my backup. I restored the following files: * profile-folder/calendar-data/local.sqlite * profile-folder/prefs.js (here: I did a diff and a