Calling commit programmatically [11g]

How do I call for instance commit and execute on at button?
Should I call the methods on the app. module or the binding (#{bindings.Commit.execute})
Rgds, Henrik

Here is my helper method to call commit from a bean:
    public void executeCommit()
        // Speichern
        BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
        OperationBinding op = bc.getOperationBinding("Commit");
        op.execute();
        List<Throwable> lErrorList = op.getErrors();
        if (lErrorList != null && lErrorList.size() > 0)
               // HANDLE ERRORS
    }You get the picture how to call execute :-)
Timo

Similar Messages

  • After call commit sql , data can not flush to disk

    I use berkey db which support sql . It's version is db-5.1.19.
    1, Open a database.
    2. Create a table.
    3. exec "begin;" sql
    4. exec sql which is insert record into table
    5. exec "commit;" sql
    6. copy database file (SourceDB_912_1.db and SourceDB_912_1.db-journal) to Local Disk of D, then use a tool of dbsql to open the database.
    7. use select sql to check data, there is no record in table.
    1
    sqlite3 * m_pDB;
    int nRet = sqlite3_open_v2(strDBName.c_str(), & m_pDB,SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,NULL);
    2
    string strSQL="CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );";
    char * errors;
    nRet = sqlite3_exec(m_pDB, strSQL.c_str(), NULL, NULL, &errors);
    3
    nRet = sqlite3_exec(m_pDB, "begin;", NULL, NULL, &errors);
    4
    nRet = sqlite3_exec(m_pDB, "INSERT INTO TBLClientAccount (ClientId,AccountId) VALUES('dd','ddd'); ", NULL, NULL, &errors);
    5
    nRet = sqlite3_exec(m_pDB, "commit;", NULL, NULL, &errors);
    Edited by: 887973 on Sep 27, 2011 11:15 PM

    Hi,
    Here is a simple test case program I used based on your description:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include "sqlite3.h"
    int error_handler(sqlite3*);
    int main()
         sqlite3 *m_pDB;
         const char *strDBName = "C:/SRs/OTN Core 2290838 - after call commit sql , data can not flush to disk/SourceDB_912_1.db";
         char * errors;
         sqlite3_open_v2(strDBName, &m_pDB, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL);
         error_handler(m_pDB);
         sqlite3_exec(m_pDB, "CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );", NULL, NULL, &errors);
         error_handler(m_pDB);
         sqlite3_exec(m_pDB, "begin;", NULL, NULL, &errors);
         error_handler(m_pDB);
         sqlite3_exec(m_pDB, "INSERT INTO TBLClientAccount (ClientId,AccountId) VALUES('dd','ddd'); ", NULL, NULL, &errors);
         error_handler(m_pDB);
         sqlite3_exec(m_pDB, "commit;", NULL, NULL, &errors);
         error_handler(m_pDB);
         //sqlite3_close(m_pDB);
         //error_handler(m_pDB);
    int error_handler(sqlite3 *db)
         int err_code = sqlite3_errcode(db);
         switch(err_code) {
         case SQLITE_OK:
         case SQLITE_DONE:
         case SQLITE_ROW:
              break;
         default:
              fprintf(stderr, "ERROR: %s. ERRCODE: %d.\n", sqlite3_errmsg(db), err_code);
              exit(err_code);
         return err_code;
    }Than I copied the SourceDB_912_1.db database and the SourceDB_912_1.db-journal directory containing the environment files (region files, log files) to D:\, opened the database using the "dbsql" command line tool, and queried the table; the data is there:
    D:\bdbsql-dir>ls -al
    -rw-rw-rw-   1 acostach 0 32768 2011-10-12 12:51 SourceDB_912_1.db
    drw-rw-rw-   2 acostach 0     0 2011-10-12 12:51 SourceDB_912_1.db-journal
    D:\bdbsql-dir>C:\BerkeleyDB\db-5.1.19\build_windows\Win32\Debug\dbsql SourceDB_912_1.db
    Berkeley DB 11g Release 2, library version 11.2.5.1.19: (August 27, 2010)
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    dbsql> .tables
    TBLClientAccount
    dbsql> .schema TBLClientAccount
    CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );
    dbsql> select * from TBLClientAccount;
    dd|dddI do not see where the issue is. The data can be successfully retrieved, it is present in the database.
    Could you try putting in the sqlite3_close() call and see if you still get the error?
    Did you remove the __db.* files from the SourceDB_912_1.db-journal directory?
    Did you use PRAGMA synchronous, and if so, what is the value you set?
    If this is still an issue for you, please describe in more detail the exact steps needed to get this reproduced and provide a simple stand-alone test case program that reproduces it.
    Regards,
    Andrei

  • Retain the entityState and postState of entities even after calling commit

    Dear all,
    I am using view objects based on programmatic entity objects in my application for which data is populated from an array using populateRow().
    I need to update the newly created/updated/deleted rows in this EO into the database using a stored procedure.
    The stored procedure needs the input as an array of only those records that are created/updated/deleted with indicators of whether each row in the array is inserted/updated/deleted.
    I have exposed a client interface method in the view object Impl class that calls the dbTransaction().commit() first and then calls the stored procedure.
    In the doDML(), I am constructing the array and keeping the values in a page flow scope which is then accessed in the voImpl method.
    In case if an exception occurs in the business logic inside the stored procedure, the data will not get posted in the database and the exception is displayed to the user in the UI.
    After calling the stored procedure, I am clearing the page flow scope irrespective of whether the data has been posted to DB or not.
    Consider the scenario,
    I have updated 2 records. Of these, I've updated one of the records with wrong values. As per my logic, on calling the save method, doDML() will construct the data array for these two records.
    Inside the stored procedure, the wrongly updated row is identified and exception is raised and the data will not get posted in the database.
    Now, on getting the exception, I update the worngly updated record with proper value.
    On calling the save method again, my doDML() is constucting the array with the currently updated record alone. But actually I need all the records (2 records in this case) that were modified.
    My understanding is, since I've called the commit() action, all the records that make my transaction dirty gets updated as status_unmodified subsequently.
    Hence, on calling commit the second time, only one record will be in modified state and that record alone is getting constructed in the array.
    If I am correct,
    1. Is there any way to make all those records with their status as they were before calling the commit.
    2. Should I construct my array in some other method instead of doing it in doDML().
    Thanks in advance.

    You may want to try calling setClearCacheOnRollback(false) and rollback instead when you get the exception from the stored procedure. I still haven't understood where the commit is done...
    You may want to consider using an Application Module variable to store your list if this helps.
    Cheers,
    Nick

  • Exception: Can't call commit when autocommit=true

    Hello,
    I'm trying to use WebLogic 7.0 with MySQL 3.23.49 and MySQL Connector/J JDBC driver
    2.0.14. Everything has been working just fine but now I keep getting exception:
    java.rmi.RemoteException: EJB Exception:; nested exception is:
         javax.ejb.EJBException: EJB Exception: : javax.transaction.HeuristicMixedException:
    (weblogic.jdbc.jts.Connection, HeuristicHazard, (javax.transaction.xa.XAException:
    Can't call commit when autocommit=true))
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:258)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:208)
         at weblogic.ejb20.internal.BaseEJBLocalHome.postHomeInvoke(BaseEJBLocalHome.java:314)
         at weblogic.ejb20.internal.EntityEJBLocalHome.findByPrimaryKey(EntityEJBLocalHome.java:289)
         at com.nokia.m2m.demo.housemanagement.ejb.HouseBean_15mjuo_LocalHomeImpl.findByPrimaryKey(HouseBean_15mjuo_LocalHomeImpl.java:137)
         at com.nokia.m2m.demo.housemanagement.ejb.HouseManagerBean.ejbCreate(HouseManagerBean.java:326)
         at com.nokia.m2m.demo.housemanagement.ejb.HouseManagerBean_wnwfw3_Impl.ejbCreate(HouseManagerBean_wnwfw3_Impl.java:117)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.ejb20.manager.StatefulSessionManager.create(StatefulSessionManager.java:747)
         at weblogic.ejb20.manager.StatefulSessionManager.remoteCreate(StatefulSessionManager.java:799)
         at weblogic.ejb20.internal.StatefulEJBHome.create(StatefulEJBHome.java:159)
         at com.nokia.m2m.demo.housemanagement.ejb.HouseManagerBean_wnwfw3_HomeImpl.create(HouseManagerBean_wnwfw3_HomeImpl.java:77)
         at com.nokia.m2m.demo.housemanagement.ejb.HouseManagerBean_wnwfw3_HomeImpl_WLSkel.invoke(Unknown
    Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:785)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    ; nested exception is: javax.transaction.HeuristicMixedException: (weblogic.jdbc.jts.Connection,
    HeuristicHazard, (javax.transaction.xa.XAException: Can't call commit when autocommit=true))
    Is this because MySQL is non-transactional? Should I change to transactional tables
    with MySQL, tweak driver somehow to be "autocommit=false" or what?
    Any help is greatly appreciated.

    MySQL comes in two flavors - MySQL and MySQL-MAX. The second
    one supports TXs, the first one doesn't. That could be the case, too.
    Slava
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi. It sounds like the DBMS doesn't handle standard transactions, and the
    driver lies. We'll set autoCommit(false) to start an EJB transaction. It
    sounds like the driver accepts the call and blithely ignores it. Later,
    when we prepared to call commit, the driver lets us know that theconnection
    is autoCommit(true) meaning there's nothing to commit.
    "Jari Länsiö" wrote:
    Hello,
    I'm trying to use WebLogic 7.0 with MySQL 3.23.49 and MySQL Connector/J
    JDBC driver
    2.0.14. Everything has been working just fine but now I keep gettingexception:
    >>
    java.rmi.RemoteException: EJB Exception:; nested exception is:
    javax.ejb.EJBException: EJB Exception: :javax.transaction.HeuristicMixedException:
    (weblogic.jdbc.jts.Connection, HeuristicHazard,(javax.transaction.xa.XAException:
    Can't call commit when autocommit=true))
    atweblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTra
    nsactionImpl.java:258)
    atweblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransaction
    Impl.java:208)
    atweblogic.ejb20.internal.BaseEJBLocalHome.postHomeInvoke(BaseEJBLocalHome.jav
    a:314)
    atweblogic.ejb20.internal.EntityEJBLocalHome.findByPrimaryKey(EntityEJBLocalHo
    me.java:289)
    atcom.nokia.m2m.demo.housemanagement.ejb.HouseBean_15mjuo_LocalHomeImpl.findBy
    PrimaryKey(HouseBean_15mjuo_LocalHomeImpl.java:137)
    atcom.nokia.m2m.demo.housemanagement.ejb.HouseManagerBean.ejbCreate(HouseManag
    erBean.java:326)
    atcom.nokia.m2m.demo.housemanagement.ejb.HouseManagerBean_wnwfw3_Impl.ejbCreat
    e(HouseManagerBean_wnwfw3_Impl.java:117)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.ejb20.manager.StatefulSessionManager.create(StatefulSessionManager.
    java:747)
    atweblogic.ejb20.manager.StatefulSessionManager.remoteCreate(StatefulSessionMa
    nager.java:799)
    atweblogic.ejb20.internal.StatefulEJBHome.create(StatefulEJBHome.java:159)
    atcom.nokia.m2m.demo.housemanagement.ejb.HouseManagerBean_wnwfw3_HomeImpl.crea
    te(HouseManagerBean_wnwfw3_HomeImpl.java:77)
    atcom.nokia.m2m.demo.housemanagement.ejb.HouseManagerBean_wnwfw3_HomeImpl_WLSk
    el.invoke(Unknown
    Source)
    atweblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
    atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :114)
    atweblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
    atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:785)
    atweblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
    atweblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
    0)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    ; nested exception is: javax.transaction.HeuristicMixedException:(weblogic.jdbc.jts.Connection,
    HeuristicHazard, (javax.transaction.xa.XAException: Can't call commitwhen autocommit=true))
    >>
    Is this because MySQL is non-transactional? Should I change totransactional tables
    with MySQL, tweak driver somehow to be "autocommit=false" or what?
    Any help is greatly appreciated.

  • MySQL Exception in WL 8.1 - Can't call commit when autocommit=true

    Thanks in advance. Any help would be appreciated as I'm new to Weblogic. I've created a database control and get the following error at run time that I can't seem to get around:
    An unexpected exception occurred while attempting to locate the run-time information for this Web Service. Error: java.sql.SQLException:
    The server trace is as follows:
    ####<Jul 23, 2004 8:54:08 AM CDT> <Error> <WLW> <dts-client1> <cgServer> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <000000> <Exception processing ManageRouteTableJCS.ManageRouteTableTest
    java.sql.SQLException: Can't call commit when autocommit=true
         at com.mysql.jdbc.Connection.commit(Connection.java:1136)
         at weblogic.jdbc.wrapper.PoolConnection_com_mysql_jdbc_Connection.commit(Unknown Source)
         at com.bea.wlw.runtime.core.bean.BMPContainerBean.initTableAccess(BMPContainerBean.java:1650)
         at com.bea.wlw.runtime.core.dispatcher.DispComponentJar.confirmDeployment(DispComponentJar.java:157)
         at com.bea.wlw.runtime.core.dispatcher.DispResources.confirmDeployment(DispResources.java:754)
         at com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:660)
         at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.getDispUnit(HttpServerHelper.java:501)
         at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:541)
         at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6456)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Note that the above error only occurs with the database control. When I use the following straight Java code I can read records from the database just fine:
    <%@page import="javax.naming.*,javax.sql.*,java.sql.*"%>
    <%
    Context ctx = new InitialContext ( );
    DataSource dataSource = (DataSource) ctx.lookup ( "MySQLDataSource" );
    Connection connection = dataSource.getConnection ( );
    Statement statement = connection.createStatement ( );
    ResultSet result = statement.executeQuery ( "select * from myTable1" );
    while ( result.next ( ) ) {
    out.print ( result.getString ( "field1" ) );
    out.print ( "<br>" );
    connection.close ( );
    %>
    I have experimented with disabling autconnect at the datasource with no change to the behavior.
    Environmet specifics:
    - Weblogic 8.1/SP3 (had the issue with SP2)
    - MySQL standard 4.1 (had the issue with 4.0 and MaxDB)
    - mysql-connector-java-3.0.14-production
    I have read many articles on using using MySQL and Weblogic using I/O classes but not an article where a control was created in design view as I have done. Since I am able to read from the database with the executeQuery command I am led to believe that I have the database and driver set up correctly.
    Anyone run into this and have an idea of what I don't have configured properly?
    Thanks,
    David

    Thanks in advance. Any help would be appreciated as I'm new to Weblogic. I've created a database control and get the following error at run time that I can't seem to get around:
    An unexpected exception occurred while attempting to locate the run-time information for this Web Service. Error: java.sql.SQLException:
    The server trace is as follows:
    ####<Jul 23, 2004 8:54:08 AM CDT> <Error> <WLW> <dts-client1> <cgServer> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <000000> <Exception processing ManageRouteTableJCS.ManageRouteTableTest
    java.sql.SQLException: Can't call commit when autocommit=true
         at com.mysql.jdbc.Connection.commit(Connection.java:1136)
         at weblogic.jdbc.wrapper.PoolConnection_com_mysql_jdbc_Connection.commit(Unknown Source)
         at com.bea.wlw.runtime.core.bean.BMPContainerBean.initTableAccess(BMPContainerBean.java:1650)
         at com.bea.wlw.runtime.core.dispatcher.DispComponentJar.confirmDeployment(DispComponentJar.java:157)
         at com.bea.wlw.runtime.core.dispatcher.DispResources.confirmDeployment(DispResources.java:754)
         at com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:660)
         at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.getDispUnit(HttpServerHelper.java:501)
         at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:541)
         at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6456)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Note that the above error only occurs with the database control. When I use the following straight Java code I can read records from the database just fine:
    <%@page import="javax.naming.*,javax.sql.*,java.sql.*"%>
    <%
    Context ctx = new InitialContext ( );
    DataSource dataSource = (DataSource) ctx.lookup ( "MySQLDataSource" );
    Connection connection = dataSource.getConnection ( );
    Statement statement = connection.createStatement ( );
    ResultSet result = statement.executeQuery ( "select * from myTable1" );
    while ( result.next ( ) ) {
    out.print ( result.getString ( "field1" ) );
    out.print ( "<br>" );
    connection.close ( );
    %>
    I have experimented with disabling autconnect at the datasource with no change to the behavior.
    Environmet specifics:
    - Weblogic 8.1/SP3 (had the issue with SP2)
    - MySQL standard 4.1 (had the issue with 4.0 and MaxDB)
    - mysql-connector-java-3.0.14-production
    I have read many articles on using using MySQL and Weblogic using I/O classes but not an article where a control was created in design view as I have done. Since I am able to read from the database with the executeQuery command I am led to believe that I have the database and driver set up correctly.
    Anyone run into this and have an idea of what I don't have configured properly?
    Thanks,
    David

  • Stock Transfer Order, is there any field called "commit to ship"

    Dear Experts,
    While doing Stock Transfer Order, is there any field called "commit to ship"  which means that the qty is confirmed to transfer from Plant A to B.
    Regards

    I am not sure exact field are you reffering in PO there is commited qty in delivery schedule tab this will shows commited qty in po once qty confirmed

  • RPC calls from SOA 11g

    hi,
    What are the ways to make an RPC call from SOA 11g ?
    I wnat make an RPC call to a mainframes system.
    Thanks,
    Jhansi

    Hi Saravana,
    Is there any way i can archive the EDI file while using AS2? My requirement to get the data from EDI file and based on that, it needs to send the Audit Trail Report to Business. No, AS2 does not have any archiving option but you may query details of transactions using B2B Instance Message API -
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e18158/toc.htm
    getWirePayload() method of InstanceMessage class with give you the native EDI file which has been sent to the partner.
    Also do we have any document for enalbing AS1 and AS2 in B2B (Which includes SSL Certificaties, encryption etc)?You may refer B2B user guide to understand how to create AS1 and AS2 channels - (section 5.5 Configuring Channels)
    http://docs.oracle.com/cd/E23943_01/user.1111/e10229/b2b_tps.htm#BABBCDHI
    For understanding how to enable SSL and how to implement message security at Oracle B2B, please refer -
    http://anuj-dwivedi.blogspot.sg/2010/10/enabling-ssl-on-oracle-b2b-11g.html
    http://anuj-dwivedi.blogspot.sg/2011/04/implementing-message-security-in-oracle.html
    Regards,
    Anuj

  • Can Kodo be set to call executeBatch prior to calling commit?

    We have a situation where we need to track a message ID from a JMS
    message. Upon a successful commit, the message ID is stored in a table in
    Oracle.
    If we find a duplicate ID in the database, then we don't want to process
    the message. However, because we are using a managed transaction in
    WebSphere, the batching statements that Kodo is using are not executed
    until the commit.
    We want to be able to find out if we have a duplicate and instruct
    WebSphere to rollback transactions but not throw an exception.
    By placing executeBatch into the commit() method, the failure occurs
    during the commit which is being called by the container, when the failure
    hits then entire transaction is rolled back including the message on the
    queue, which we don't want to be rolled back. We want the message to be
    popped off the queue.
    Is there any way to get Kodo, using batching, to call executeBatch prior
    to commit?
    Scott

    Well I've learned a good bit more, the following code will cause a flush
    of the PersistenceManager:
    kodo.runtime.PersistenceManagerImpl txRuntime =
    (kodo.runtime.PersistenceManagerImpl)tx;
    txRuntime.flush();
    Are there any issues with this or does this work correctly for batching
    and prepared statements? Is there any other way?
    Scott
    Scott Lopez wrote:
    We have a situation where we need to track a message ID from a JMS
    message. Upon a successful commit, the message ID is stored in a table in
    Oracle.
    If we find a duplicate ID in the database, then we don't want to process
    the message. However, because we are using a managed transaction in
    WebSphere, the batching statements that Kodo is using are not executed
    until the commit.
    We want to be able to find out if we have a duplicate and instruct
    WebSphere to rollback transactions but not throw an exception.
    By placing executeBatch into the commit() method, the failure occurs
    during the commit which is being called by the container, when the failure
    hits then entire transaction is rolled back including the message on the
    queue, which we don't want to be rolled back. We want the message to be
    popped off the queue.
    Is there any way to get Kodo, using batching, to call executeBatch prior
    to commit?
    Scott

  • Any OCI call change in 11g ?

    Hi,
    I have one application ( OCI )which is working fine with 8x,9x Oracle client versions. The application crashed when i used 11g oracle client with the below call stack.
    #0 0xb5abb41d in kpedbgevpec () from /opt/oracle/app/oracle/product/11.1.0/client_1/lib/libclntsh.so.10.1
    #1 0xb4515eff in kpuiniPG () from /opt/oracle/app/oracle/product/11.1.0/client_1/lib/libclntsh.so.10.1
    #2 0xb451517d in kpuinit0 () from /opt/oracle/app/oracle/product/11.1.0/client_1/lib/libclntsh.so.10.1
    #3 0xb4513dc2 in kpuenvcr () from /opt/oracle/app/oracle/product/11.1.0/client_1/lib/libclntsh.so.10.1
    #4 0xb44ea0bd in OCIEnvCreate () from /opt/oracle/app/oracle/product/11.1.0/client_1/lib/libclntsh.so.10.1
    #5 0x0067bcb5 in ood_driver_connect (dbc=0xb7a22590) at oracle_functions.c:352
    Anything, i need to change the call follow ,arguments or something?
    Thanks
    Antoni Milton.

    Not sure why you need cast in your statement if at all it is required then you need to do as below
    cast("Dim-Time"."Day"  as date)<= cast(MAX("Dim-Time"."Day") as date)  and cast("Dim-Time"."Day"  as date) >= TIMESTAMPADD(SQL_TSI_MONTH, -1,cast(MAX("Dim-Time"."Day") as date).
    ~ http://cool-bi.com

  • Error while calling SPML web service call in OIM 11g

    Hi,
    While testing the SPML web service call, I am getting the "failure in security check" errors.
    And I have attached the request and responce .
    Request:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header xmlns:ns1="urn:names:spml:ws:header">
    <ns1:ServiceHeader>
    <ns1:serviceId/>
    </ns1:ServiceHeader>
    <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsse:UsernameToken>
    <wsse:Username>xelsysadm</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXXXXXX</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    <soap:Body xmlns:ns2="http://xmlns.oracle.com/idm/identity/spmlv2custom/Username">
    <ns2:validateUsernameRequest xmlns:ns3="urn:oasis:names:tc:SPML:2:0" requestID="12345" executionMode="synchronous" locale="en" policyURI="http://www.sample.com/string/string">
    <ns2:capabilityData mustUnderstand="true" capabilityURI="urn:oasis:names:tc:SPML:2:0:reference"/>
    <ns2:username>TCS1000</ns2:username>
    </ns2:validateUsernameRequest>
    </soap:Body>
    </soap:Envelope
    Response:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault xmlns:ns0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <faultcode>ns0:FailedCheck</faultcode>
    <faultstring>FailedCheck : failure in security check</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    I have attached the log file from OIM
    ####<Apr 26, 2012 10:27:13 AM EDT> <Error> <oracle.wsm.resources.enforcement> <corwloimhd01> <dev-oim_oim_server01> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <214014dca901f288:-460ab67b:136eeab0662:-7ffd-0000000000000838> <1335450433058> <WSM-07501> <Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.service, application=spml-xsd, composite=null, modelObj=SPMLService, policy=oracle/wss11_saml_or_username_token_with_message_protection_service_policy, policyVersion=1, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss11-username-with-certificates.>
    ####<Apr 26, 2012 10:27:13 AM EDT> <Notice> <Stdout> <corwloimhd01> <dev-oim_oim_server01> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <214014dca901f288:-460ab67b:136eeab0662:-7ffd-000000000000083d> <1335450433058> <BEA-000000> <<Apr 26, 2012 10:27:13 AM EDT> <Error> <oracle.wsm.resources.enforcement> <WSM-07501> <Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.service, application=spml-xsd, composite=null, modelObj=SPMLService, policy=oracle/wss11_saml_or_username_token_with_message_protection_service_policy, policyVersion=1, assertionName={http://schemas.oracle.com/ws/2006/01/securitypolicy}wss11-username-with-certificates.>>
    Please help me how to solve this issue.
    Thanks in advance
    Siva

    Your business logic has to be implemented by using OIM APIS. oimclient.jar..
    you can then expose these business functions accordingly using a webservice or rest ...
    for business logic refer:-
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/apis.htm#OMDEV734
    You will basicsally have to deal with UserManager class for managing users.
    java API:
    http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm

  • Error while calling BI Publisher 11g webservice.URGENT

    I am trying to schedule existing report and pass parameter using web service API.
    This is soap envelope I am passing in the web service call:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <pub:scheduleReport xmlns:pub="http://xmlns.oracle.com/oxp/service/PublicReportService">
    <scheduleRequest>
    <deliveryChannels>
    <emailOptions>
    <emailBody>webservice test</emailBody>
    <emailFrom>[email protected]</emailFrom>
    <emailSubject>test report</emailSubject>
    <emailTo>xxx</emailTo>
    </emailOptions>
    </deliveryChannels>
    <reportRequest>
    <attributeFormat>excel2000</attributeFormat>
    <reportAbsolutePath>/~weblogic/List of Requests 3.xdo</reportAbsolutePath>
    <*paramNameValues>*
    *<paramNameValue>*
    *<name>P_REQUEST_ID</name>*
    *<multiValuesAllowed>false</multiValuesAllowed>*
    *<values>*
    *<value>166</value>*
    *</values>*
    *</paramNameValue>*
    *</paramNameValues>*
    </reportRequest>
    <userJobName>test_job</userJobName>
    </scheduleRequest>
    <userID>test</userID>
    <password>test123</password>
    </pub:scheduleReport>
    </soapenv:Body>
    </soapenv:Envelope>
    This is the response I am getting as the result of the call:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXException: Invalid element in oracle.xdo.webservice.v2.ReportRequest - paramNameValues</faultstring>
    <detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">xxx</ns1:hostname></detail></soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    So error message says: org.xml.sax.SAXException: Invalid element in oracle.xdo.webservice.v2.ReportRequest - paramNameValues
    I think there is a problem with the format of ParamNameValues, just don't know what exactly is the problem.
    Any ideas ?
    Thanks
    Mikhail
    Edited by: mike621062 on Nov 30, 2012 12:59 PM
    Edited by: mike621062 on Nov 30, 2012 1:00 PM
    Edited by: mike621062 on Nov 30, 2012 1:00 PM
    Edited by: mike621062 on Nov 30, 2012 4:27 PM
    Edited by: mike621062 on Dec 1, 2012 9:10 AM

    Hi, double check the documentation.
    I have the following elements to pass a parameter value:
         <sch:parameterNameValues>
                        <sch:listOfParamNameValues>
                             <sch:item>
                                  <sch:multiValuesAllowed>false</sch:multiValuesAllowed>
                                  <sch:name>g_SortBy</sch:name>
                                  <sch:refreshParamOnChange>false</sch:refreshParamOnChange>
                                  <sch:selectAll>false</sch:selectAll>
                                  <sch:templateParam>false</sch:templateParam>
                                  <sch:useNullForAll>false</sch:useNullForAll>
                                  <sch:values>
                                       <sch:item>C</sch:item>
                                  </sch:values>
                             </sch:item>
                        </sch:listOfParamNameValues>
         </sch:parameterNameValues>
    paulo.
    p.s. Ignore the XML namespace prefix sch: in my example.
    Edited by: ptravassos on Dec 17, 2012 9:10 AM

  • Dev 6.0: How to call System_editor programmatically ?

    Hi !
    I have a LONG field wich must hold a MSWord documents. In Block
    property I set Editor to SYSTEM_EDITOR. Also I set FORMS60_EDITOR
    to c:\msoffice\winword.exe. But I can't save the document in
    database. Only first chars.
    The other question:
    how to invoke MS Word by pressing some Button ? I tried to call
    execute_trigger('Key-EDIT'), but there is no such one.
    null

    Andrei Kvasyuk (guest) wrote:
    : Hi !
    : I have a LONG field wich must hold a MSWord documents. In Block
    : property I set Editor to SYSTEM_EDITOR. Also I set
    FORMS60_EDITOR
    : to c:\msoffice\winword.exe. But I can't save the document in
    : database. Only first chars.
    : The other question:
    : how to invoke MS Word by pressing some Button ? I tried to call
    : execute_trigger('Key-EDIT'), but there is no such one.
    Use Procedure built-in APP_BEGIN,APP_FOCUS,APP_END
    Find it in online help of form builder
    null

  • Synchronous JDBC Call Commit

    Hi All,
    I have a Synchronous RFC(SAP) to Database(Oracle) scenario, the call to Database is via Stored Procedure in which i am inserting some data in database and returning a status flag back. I have two queries here:
    1. What if the stored procedure is executed successfully, I get a status flag as "Success" from database and just before the response was sent back to SAP there is some comunication failure or any error while connecting XI to SAP. What will happen to the data inserted in table. Will it be still commited or rollback? As it is Synchronous process the data should not be commited untill the requestor system gets back the response. Any clues on this?
    2. I need to pass a table type(basically a dyncamic array) as one of the parameters while invoiking Stored procedure. How it can be done?
    I am connecting to Oracle 10g.
    Looking for some quick answers.
    Thanks
    Amit

    1) You can set Transaction Isolation Level=Serializable
    To avoid data inconsistencies in the database when the isolation level is lowered, ensure that multiple database transactions cannot access the database simultaneously.
    2)
    <StatementName5>
    <storedProcedureName action=u201D EXECUTEu201D>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName > 
      </StatementName5>
    http://help.sap.com/saphelp_nw04s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

  • How to block the incoming and outgoing calls by programmatically

    I want to block incoming and outgoing calls from my application. Is it possible?

    For App Development questions, please post in the Development Forums made available to you as a Developer.  We cannot answer these questions here.
    https://discussions.apple.com/community/developer_forums

  • Is there a method that is Invoked when client calls commit or rollback ?

    Jdev 10.1.3.3 Jclient

    I looked at the JUNavigationBar soltion even though we dont use the navbar we use the same approach as our current work around but its not that great and it still sets the stage for having the same problem if you want to act on other BC exposed actions/ methods in the pageDef.
    It would be great if there was a way to add a lisitener to the pagedef
    exposed method, something like (panelBinding.pageDefMethodListener("Commit") )that would allow us to act on the action without having to hard wire the logic and then pass the action around to every panel that need to respond to it.

Maybe you are looking for

  • Shock wave 11.8.800.94 keeps crashing in Firefox 22.0 with Windows 7 Home Premium

    ''locking this outdated thread - please start your own questions thread here - https://support.mozilla.org/en-US/questions/new'' After several minutes on a webpage that uses Shockwave, the page will crash and the browser will freeze. Then I get an er

  • Nokia Find Friends App

    Are nokia planning on releasing an app that has the same functionality as Apples Find Friends or Googles Latitude? Seeing as they have such good maps you would think they would. I am thinking of buying a Lumia phone but don't want to give up this fea

  • Things to know about Macbook Pro???

    Hey Everyone, Recently I decided to switch from pc and purchased a Macbook Pro 15in. I can say I've enjoyed the experience so far with the MBP but find myself online daily trying to find out what all I should know about maintaining and operating the

  • Where to store images in webapp?

    Hello. I'm designing an web application which main purpose is to store and view images that users has stored. I'm considering that where is the best place to store those images? I have at least two options: relational database or filesystem. Is it ba

  • Network printing vs USB

    I have a Brother HL-1470N printer which does not print using my network cable anymore. This cable is connected to my airport and both cable and airport are working fine. If I connect a USB cable to the same printer, the printer works fine. I updated