<delay-database-insert-until>commit</delay-database-insert-until> - Weblogic

This is a discussion on <delay-database-insert-until>commit</delay-database-insert-until> - Weblogic ; Weblogic 8.1 sp2, Windows XP Pro. &amp; Windows 2003 Server. Using Oracle 8.1.7 and CMP 2.0 using Oracle Thin Driver. I want my CMP Entity to persist to the database immediately after a create. In the weblogic-cmp-rdbms-jar I have set; ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: <delay-database-insert-until>commit</delay-database-insert-until>

  1. <delay-database-insert-until>commit</delay-database-insert-until>


    Weblogic 8.1 sp2, Windows XP Pro. & Windows 2003 Server. Using Oracle 8.1.7 and
    CMP 2.0 using Oracle Thin Driver.

    I want my CMP Entity to persist to the database immediately after a create.

    In the weblogic-cmp-rdbms-jar I have set;

    commit &

    false

    But when I compile I still get;

    [java] WARNING: Warning from ejbc: The 'commit' option for insert-until> is ignored. EJB container will turn on batch operations automatica
    lly if the JDBC driver supports the batch functions. To turn off batch operation
    s, set tag in to 'false'.


    Is this say to get the data persisted to the database immediately after a create

    Thanks.




  2. Help - Re: <delay-database-insert-until>commit</delay-database-insert-until>


    I am getting lots of "Finder Exceptions" when I do a findByPrimary key.

    I thought in WLS 8.1 the default value of was flipped to 'True'
    and a flush always occurs before finder execution.

    At the end of the run the rows in the database are persisted that were causing
    the "Finder Exception". So why doesn't the findByPrimary key fidn them?

    Some pointers would be appreciated. Thanks.


    "Roger Lee" wrote:
    >
    >Weblogic 8.1 sp2, Windows XP Pro. & Windows 2003 Server. Using Oracle
    >8.1.7 and
    >CMP 2.0 using Oracle Thin Driver.
    >
    >I want my CMP Entity to persist to the database immediately after a create.
    >
    >In the weblogic-cmp-rdbms-jar I have set;
    >
    >commit &
    >
    >false
    >
    >But when I compile I still get;
    >
    > [java] WARNING: Warning from ejbc: The 'commit' option for >insert-until> is ignored. EJB container will turn on batch operations
    >automatica
    >lly if the JDBC driver supports the batch functions. To turn off batch
    >operation
    >s, set tag in to 'false'.
    >
    >
    >Is this say to get the data persisted to the database immediately after
    >a create
    >
    >Thanks.
    >
    >
    >



  3. Re: <delay-database-insert-until>commit</delay-database-insert-until>


    Hi Lee,
    I think "commit" option is removed in WLS 8.1. Refer weblogic-rdbms20-persistence-810.dtd
    for more details.

    Thanks.
    Ram.

    "Roger Lee" wrote:
    >
    >Weblogic 8.1 sp2, Windows XP Pro. & Windows 2003 Server. Using Oracle
    >8.1.7 and
    >CMP 2.0 using Oracle Thin Driver.
    >
    >I want my CMP Entity to persist to the database immediately after a create.
    >
    >In the weblogic-cmp-rdbms-jar I have set;
    >
    >commit &
    >
    >false
    >
    >But when I compile I still get;
    >
    > [java] WARNING: Warning from ejbc: The 'commit' option for >insert-until> is ignored. EJB container will turn on batch operations
    >automatica
    >lly if the JDBC driver supports the batch functions. To turn off batch
    >operation
    >s, set tag in to 'false'.
    >
    >
    >Is this say to get the data persisted to the database immediately after
    >a create
    >
    >Thanks.
    >
    >
    >



+ Reply to Thread