Database Adapter Configuration Execute Pure SQL

Hii
I have following scenario in my Project.
I have ERRORCODE Details Table in Database which has following columns.
1)ERRORCODE VARCHAR2
2)PRIORITY VARCHAR2
3)QueueName Varchar2
I have one web service which takes errorcode as input parameter of string type in which i have to pass values like 1,2,3.
Web service treated these values as complete one string value but i want it should be treated like seperately.Beacuse i have to pass these values to the query.
I have configured database adapter for the following query using Execute Pure SQL.
SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(#ERRORCODE))
So can anyone please help me what changes i have to make in this query so the sql query treat the errorcode string value as three different value rather than one single value??
Thanks in advance.
Regards,
Priyanka

Change the query like this.
SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(select csv from xmltable(#ERRORCODE)))
In case it is required to treat the individual comma separated values in #ERRORCODE as number use the to_number function.
SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(select to_number(csv) from xmltable(#ERRORCODE)))
In case this helps , please mark the answer as correct/helpful.
Regards.

Similar Messages

  • Using variables in DB Adapter's Execute Pure SQL option

    Hi everyone,
    Typically if i wanted to declare a variable in a SQL query in a DB Adapter I would use the # character, however, I have the need to reference the same variable multiple times in the query but for every parameter found in the query (regardless if it has the same name) a corresponding XML element is created in the resulting XSD. So, for example, if I have three #project_id variables in the query, there will be three project id elements in the XSD when I really only want one. Modifying the XSD to only define one doesn't work either, it will throw a runtime exception because it's looking for the other IN parameters. How can this be done?
    I'm using JDeveloper 11.1.1.7.
    Thanks,
    Bill

    Hi,
    I don't think that is possible (although stand to be corrected). The best is to modify your query using JOINs in such a way that only one parameter is exposed or assign multiple parameters.
    There's query-database function also described here that you may want to follow.
    Regards,
    Neeraj Sehgal

  • How to operate multiple querys using DB Adapter and 'Execute Custom SQL'

    I have a requirment that I need to create database adapter in your BPEL process with 'Execute Custom SQL' to operate multiple query in DB in one atomic
    here are the details:
    inbound request:
    <ns1:Query_bpelProcessRequest>
    <ns1:input>
    <ns1:ItemDetail>
    <ns1:ItemID>1123DDDS</ns1:ItemID>
    </ns1:ItemDetail>
    <ns1:ItemDetail>
    <ns1:ItemID>1126EWWA</ns1:ItemID>
    </ns1:ItemDetail>
    <ns1:ItemDetail>
    <ns1:ItemID>11208FSAA</ns1:ItemID>
    </ns1:ItemDetail>
    </ns1:input>
    </ns1:Query_bpelProcessRequest>
    I use for-each fuction in XSLT to mapping the all ItemID value:
    <xsl:template match="/">
    <xsl:for-each select="/tns:Query_bpelProcessRequest/tns:input/tns:ItemDetail">
    <ns1:QueryFromDB_Input>
    <ns1:ItemID>
    <xsl:value-of select="tns:ItemID"/>
    </ns1:ItemID>
    </ns1:QueryFromDB_Input>
    </xsl:for-each>
    </xsl:template>
    and in DB Adapter I use the 'Execute Custom SQL' to query the CONTENT value according the ItemID value:
    select distinct CONTENT from agile.item where ITEM_NUMBER=’<ItemID>’
    However, in the result, It only query the first item value for <ns1:ItemID>1123DDDS</ns1:ItemID>
    <<QueryFromDB_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="QueryFromDB_Input_msg">
    <QueryFromDB_Input xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/QueryFromDB" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/QueryFromDB">
    <ns1:ItemID>1123DDDS</ns1:ItemID>
    </QueryFromDB_Input>
    </part></QueryFromDB_InputVariable>
    <QueryFromDB_OutputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="QueryFromDB_OutputCollection">
    <QueryFromDB_OutputCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/QueryFromDB">
    <QueryFromDB_Output>
    <ITEM_NUMBER>1123DDDS</ITEM_NUMBER>
    <CONTENT >SJIFESSFFJ</CONTENT >
    </QueryFromDB_Output>
    </QueryFromDB_OutputCollection>
    </part></QueryFromDB_OutputVariable>
    the other two querys are not operated.
    what can I do to operate multiple querys??
    Thanks

    Hi Rod,
    I are using while loop and assign array inputvalue to the inputvarable of DBadapter now, but actually it doesn't work.
    Throw expection
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>XPath query string returns multiple nodes.
    According to BPEL4WS spec 1.1 section 14.3, The assign activity part and query /client:ItemsQuery_bpelProcessRequest/client:input/client:inputDetail/client:ProductID["ItemIndex"] should not return multipe nodes.
    Please check the BPEL source at line number "89" and verify the part and xpath query /client:ItemsQuery_bpelProcessRequest/client:input/client:inputDetail/client:ProductID["ItemIndex"].
    Possible reasons behind this problems are: some xml elements has maxOccurs > 1 or the xml data is invalid according to XML Schema.
    To verify whether XML data received by a process is valid, user can turn on validateXML switch at the domain administration page.
    </summary>
    </part></selectionFailure>
    my inbound XSD:
    <element name="ItemsQuery_bpelProcessRequest">
    <complexType>
    <sequence>
    <element name="input" type="tns:inputType"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="inputType">
    <sequence>
    <element name="inputDetail" minOccurs="0" maxOccurs="unbounded">
    <complexType>
    <sequence>
    <element name="ProductID" type="string" minOccurs="0"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    <element name="ItemsQuery_bpelProcessResponse">
    <complexType>
    <sequence>
    <element name="result" type="tns:outputType"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="outputType">
    <sequence>
    <element name="ItemOutput" minOccurs="0" maxOccurs="unbounded">
    <complexType>
    <sequence>
    <element name="item_id" type="string" minOccurs="0"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    DB Adapter XSD:
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/QueryItem" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/QueryItem" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="QueryItem_Input" type="QueryItem_Input"/>
    <xs:complexType name="QueryFrom_Input">
    <xs:sequence>
    <xs:element name="ProductID" type="xs:string" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="QueryItem_OutputCollection" type="QueryItem_OutputCollection"/>
    <xs:complexType name="QueryItem_OutputCollection">
    <xs:sequence>
    <xs:element name="QueryItem_Output" type="QueryItem_Output" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="QueryItem_Output">
    <xs:sequence>
    <xs:element name="item_id" type="xs:string" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    the bpel assign:
    <assign name="Initial_Index">
    <copy>
    <from expression="0"/>
    <to variable="ItemIndex"/>
    </copy>
    </assign>
    <while name="While_1"
    condition="bpws:getVariableData('ItemIndex')&lt;ora:countNodes('inputVariable','payload','/client:ItemsQuery_bpelProcessRequest/client:input/client:inputDetail/client:ProductID)">
    <sequence name="Sequence_1">
    <assign name="Assign_QueryInput">
    <copy>
    <from variable="inputVariable" part="payload"
    query='/client:ItemsQuery_bpelProcessRequest/client:input/client:inputDetail/client:ProductID{bpws:getVariableData('ItemIndex')}'/>
    <to variable="QueryItem_InputVariable"
    part="QueryItem_nput_msg"
    query="/ns2:QueryItem_Input/ns2:ProductID"/>
    </copy>
    </assign>
    <invoke name="Invoke_QueryDB" partnerLink="QueryItem"
    portType="ns1:QueryItem_ptt"
    operation="QueryItem_PSFT"
    inputVariable="QueryItem_InputVariable"
    outputVariable="QueryItem_OutputVariable"/>
    <assign name="Assign_Output">
    <copy>
    <from variable="QueryItem_OutputVariable"
    part="QueryItem_OutputCollection"
    query="/ns2:QueryItem_OutputCollection/ns2:QueryItem_Output/ns2:item_id"/>
    <to variable="outputVariable" part="payload"
    query='/client:ItemsQuery_bpelProcessResponse/client:result/client:ItemOutput/client:item_id{bpws:getVariableData('ItemIndex')}'/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('ItemIndex')+1"/>
    <to variable="ItemIndex"/>
    </copy>
    </assign>
    </sequence>
    </while>
    I use {} instead of  []  for array,  because [] seams not reveal in this message board
    seems I can't assign array values to the DB inputvalue, Are there any solutions for this ?
    I still haven't found any way for operating multiple querys using DB Adapter.
    Thanks
    Edited by: user1065212 on 07-Jan-2010 19:39
    Edited by: user1065212 on 07-Jan-2010 19:41
    Edited by: user1065212 on 07-Jan-2010 19:44
    Edited by: user1065212 on 07-Jan-2010 19:45

  • Database adapter configuration - how to manage between environments

    Hi,
    I am new to Oracle SOA. I am developing a new service which uses a database adapter to write request data to database.
    Currently I am developing in a development environment and the database adapter is working as expected.
    My question is should I keep changing the server connection details in the db adapter before moving the service to new environment(say from DEV to UAT then UAT to PROD) ?
    Thanks,
    Priya.

    Arik,
    Please let me know how to update the following database adapter JCA file using Configuration Plan.
    <adapter-config name="OFSDEV" adapter="Database Adapter" wsdlLocation="OFSDEV.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/db/OFSDEV1" UIConnectionName="OFSDEV" adapterRef=""/>
      <endpoint-interaction portType="OFSDEV_ptt" operation="insert">
        <interaction-spec className="oracle.tip.adapter.db.DBWriteInteractionSpec">
          <property name="DescriptorName" value="OFSDEV.Test"/>
          <property name="DmlType" value="insert"/>
          <property name="MappingsMetaDataURL" value="OFSDEV-or-mappings.xml"/>
          <property name="DetectOmissions" value="true"/>
          <property name="GetActiveUnitOfWork" value="false"/>
        </interaction-spec>
      </endpoint-interaction>
    </adapter-config>
    I need to update connection-factory to the following so the database adapter point to UAT instance.
    <connection-factory location="eis/db/OFSUAT1" UIConnectionName="OFSUAT" adapterRef=""/>
    I tried using configuration plan updating the reference section, it was not working as expected.
    Here is the code from config file.
    <binding type="jca">
    <attribute name="location">
    <searchReplace>
    <search>eis/db/OFSUAT1</search>
    <replace>eis/db/OFSDEV1</replace>
    </searchReplace>
    </attribute>
    </binding>
    Thanks,
    Priya

  • Database Adapter Configuration Wizard "File already exists" error

    I'm uding JDeveloper 10.1.3.1 on an XP machine running Java 1.5.0_06 and having trouble editing SOAOrderBooking.bpel as part of the tutorial.
    The tutorial calls for me to drag a new Database Adapter onto the diagram, select the "soademo_ssn" database and, on page 3 of the wizard select "Perform an operation on a table" and have only "Select" checked.
    When I click "Perform an operation on a table", the 5 tickboxes enable and are checked but the mouse pointer remains as an hourglass. If I press "Next" without doing anything else, the Wizard title changes to "Select Table" but never draws its controls, aside from the "Back" etc buttons along the bottom and the decorative graphic to the left. If I do try unchecking boxes to have only "Select" selected, every check box state change generates the error "File already exists" and the path of the .mwp file whose name I specified earlier. The file does exist, but it didn't before I entered the wizard.
    I've tried with three different filenames, and with two different database connections- both of which check out fine when I do "Test connection" in their property pages from the Connection Navigator.
    If I delete the file after each check state change, I can stop the errors appearing after I untick each checkbox, but the wizard still hangs on pressing "Next" whether the file is there or not.
    Does anyone have any suggestions?

    I am facing the same issues.
    I want to pick the new files and retain the files after polling.
    Any idea on this would help me to solve this issue.
    Thanks in advance.

  • JDBC Receiver adapter  configuration for MS SQL

    Hi friends,
    I have configured receiver jdbc adapter for MS SQL database which are as follows:
    jdbc driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
    connection: jdbc:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB
    In communcation channel i am getting following error:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB': UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver (Unsupported major.minor version 49.0)
    Kindly tell me what is the root cause of the issue.
    Renu.

    Hi Renu,
    Try foll. 2 steps:
    1) Add the IP address of the server(USLABWDB01) to the host file of your PI server, as you are connecting using Hostname.
    2)Try the following connection strings:
        jdbc driver : com.microsoft.jdbc.sqlserver.SQLServerDriver
        connection: jdbc:microsoft:sqlserver://USLABWDB01:1433;DatabaseName=Central_Lab_BIDB
       Here, 'microsoft' word is added in connection string.
    Try using this, it should work.
    -Tanaya.

  • Database adapter service connecting to SQL server

    I need to connect to our SQL server db and create a db adapter service. I am getting an error message that "connection is busy with results from another command". What do I need to do to resolve this? I tested the jdbc-odbc connection and it connected successfully. Please advise.

    Can someone help me figure out what I need for this error message now? It is from a db adapter to SQL Server.
    <messages><input><invokeICFEES_dbadapterICFEES_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="dbadapterICFEESInput_msg"><dbadapterICFEESInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/dbadapterICFEES">begin</dbadapterICFEESInput>
    </part></invokeICFEES_dbadapterICFEES_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/u01/app/oracle/product/10.1.3.1/OracleAS_soa/bpel/domains/default/tmp/.bpel_SIPAFeeExtract_1.2_03419ae821e14ce186f5e40ee5ff1c24.tmp/dbadapterICFEES.wsdl [ dbadapterICFEES_ptt::dbadapterICFEES(dbadapterICFEESInput_msg,dbadapterICFEESOutputCollection) ] - WSIF JCA Execute of operation 'dbadapterICFEES' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    ; nested exception is:
         ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-4003] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException
    Exception Description: Configuration error. Class [com.microsoft.jdbc.sqlserver.SQLServerDriver] not found..
    </summary>
    </part><part name="detail"><detail>
    Exception Description: Configuration error. Class [com.microsoft.jdbc.sqlserver.SQLServerDriver] not found.</detail>
    </part></bindingFault></fault></messages>

  • How to build dynamic query strings in the query using DB adapter 'Pure SQL'

    Dear Forum,
    I am building an application which will access DB to fetch some result set. The query involves retrieving data from multiple tables(nearly 10 tables). So I have created a DB adapter using 'execute pure sql' option. With this query works fine, but my inputs parameters will vary. So I need to make my query dynamic to append the query strings at runtime depending on the inputs.
    For example I have 3 input variables - input1,input2 and input3 (in my request xsd) which are used in the pure sql query. Now if I get a 4th input parameter input4 in the request, I need to append this to query string as 'AND input4=[some value]' at runtime. Otherwise my query should have only 3 parameters. Please suggest how this can be achieved.
    Regards,
    Satya.

    This is a strange requirement, depending on the columns you have and what are optional in them, one way is to have separate operations and each opeartion will have different inputs and for each operation , a different DB Adapter is called. But this way, it results in more number of operations for the service as well as more number of references in the composite. Even if you pass the column inputs to the SQL procedure, it will result in a large number of if-else cases..
    Thanks,
    N

  • Sql queries in database adapter

    Hi,
    I want to write, say, 2 select statements in the database adapter. How can I accomadate using "execute pure sql"?
    Regards,
    Aasta

    maybe these links will help you :
    Urgent : Fault Policies in 11g
    http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10226/soacompapp_mang.htm
    http://www.it-eye.nl/weblog/2009/12/10/using-fault-management-framework-in-oracle-11g/
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/med_faulthandling.htm#SOASE274

  • Database Adapter and SQL Server procedure issue

    Hello,
    I am using Jdev 11.1.1.7.0 and SQL Server 2005.
    In the Database Adapter configuration wizard, Specify Stored Procedure step, I choose the “GEACupax” schema and got the following error after a click on “Procedure Browse” button:
    com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'GEACUPAX.INFORMATION_SCHEMA.SCHEMATA'.
    The command Database Adapter tried to execute was:
    (from jdev log:) select schema_name from GEACUPAX.INFORMATION_SCHEMA.SCHEMATA order by schema_name;
    Note, the schema name has changed to uppercase. I think that is the problem. If I try this query in SQLDeveloper, it returns the same error. I can fix it changing the schema name to “GEACupax”. The case matters.
    Any ideas?
    Leandro.

    Vijay,
    Thanks for you reply.
    I figure out a related bug:
    Bug 12859472: Cannot browse store procedure in case-sensitive MS SQL Database
    There are two possible workarounds:
    1. Use a database name with capital letters
    2. Do not use stored procedures, but access the tables directly.
    The notes on the Bug ticket describes that the issue would be scheduled to be fixed in PS7 which is 11.1.1.8.
    Cheers!
    Leandro.

  • Database Adapter Custom SQL

    Hi All,
    Is there any way that we can add the variables from BPEL process in custom SQL of database adapter.
    Example:
    I have a variable defined in BPEL process and I have assigned a value to that variable. And in invoke process accessing database adapter is having Custom Sql operation then how can I use the variable in custom sql?
    Any idea, please suggest.
    Regards,
    Sreejit

    Sreejit,
    You can assign/pass a value to your custom sql of DBAdapter like this.
    select from <tablename> where tname = #variablename*+
    ex: select * from emp where empno=#employeenum
    Use an assign/transformation activity and do the mapping from the actual variable to the input variable(shows 'employeenum' as its variable) of invoke activity which invokes the DBAdapter.
    I used this scenario extensively in my projects.
    Thanx,
    Sen

  • 11g Database Adapter: How to make queries using LIKE with % (possible bug?)

    Hi there!
    Sorry if this has been answered before, but the forum search ignores '%' so I could not find anything relevant. I'm completely at a loss here guys so any help will be really appreciated.
    I've got a database adapter that executes a "pure SQL" query:
    select * from supplier t
    WHERE t.idsupplier = #idSupplierParam OR #idSupplierParam2 IS NULL
    AND t.name like '%' || #nameParam || '%' OR #nameParam2 IS NULL
    AND t.address like '%' || #addressParam || '%' OR #addressParam2 IS NULL
    AND t.description like '%' || #descParam || '%' OR #descParam2 IS NULL
    I've got a single record in my DB with name= 'supplier1'
    When I execute my bpel passing 'sup' as nameParam and nameParam2, everything is right and I get my supplier1 in the results.
    BUT if I pass 'asdfghj' as name, I still get my 'supplier1' in the results ¿¿¿???
    ¿Is this a bug? ¿Am I doing something wrong? Thanks in advance!!

    No, but thanks for trying. Iif you had read my post you'd had found that I wrote
    +When I execute my bpel passing 'sup' as nameParam and nameParam2+
    But I double checked against that just in case. I made a test query
    select * from supplier t WHERE t.name like '%' || #nameParam || '%'
    And no matter what I pass as nameParam, I always GET ALL THE RECORDS in my table. ¿Any idea what's going on? It's like param is being ignored and the query that is executed is select * from supplier t WHERE t.name like '%%' which would of course return everything in the DB. :(
    Help plz!!

  • DB Adapter configuration with Informix DB

    Hello everyone,
    I have setup a Informix datasource on Weblogic 10.3.6 by selecting weblogic's informix XA driver. I've a BPEL which invokes DB adapter with a pure SQL query (a little complicated query). But its throwing following exception while testing:
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getDetailsFromDB' failed due to: DBWriteInteractionSpec Execute Failed Exception.
    unknown failed. Descriptor name: [unknown].
    Caused by java.sql.SQLException: Cannot call Connection.commit in distributed transaction.  Transaction Manager will commit the resource manager when the distributed transaction is committed..
    Please see the logs for the full DBAdapter logging output prior to this exception.  This exception is considered retriable, likely due to a communication failure.  To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" to your deployment descriptor (i.e. weblogic-ra.xml).  To auto retry a retriable fault set these composite.xml properties for this invoke".
    I've also made sure to have platformClassName as 'org.eclipse.persistence.platform.database.InformixPlatform' under the settings for javax.resource.cci.ConnectionFactory  in DbAdapter under deployments.
    Can anyone throw some light as to what is going wrong here?
    Thanks
    Jahangir

    Actually, it was my mistake. I created XA data source but i provided the name in non XA data source field in the JNDI.
    Thanks
    Jahangir

  • Null/Empty Strings use in ESB Database Adapter

    Hi
    I'm trying to use a database adapter to execute an update on a table with a composite primary key; one of the primary key columns sometimes contains an empty string, however whenever I try to call the adapter, it always converts this to a null value. Is there an easy way to force the adapter to use an empty string instead of a null?
    Thanks.

    the idea here is to execute the dbms statement, or the setpolicycontext statement in a db session, and being able to execute the next sql statement in the same db session.
    This is possible with consecutive database adapters sharing the same db session.
    and two db adapters sharing the same db session is possible, if you make sure that the bpel is participating in the db transaction which can be made possible via xa db connections.
    Hope this helps,
    Write back in case you need more info.

  • Database adapter not returning error immediately in table space error.

    Hi,
    In my BPEL process I have an invoke activity to call Database adapter for a PL/SQL procedure invocation.
    The adapter received TABLESPACE error. The wiered thing is the error response we got after 3 hours? I am expecting immediately.
    How do I need to configure this?
    Here is more about my process.
    My BPEL process is an asynchronous process. Before and after the database adapter call I have a java embeded activity with checkpoint();
    retryIntervalValue is 60.
    Is there any thing I have to specify? Why it is taking 3 hours? is there a way to reduce this?
    -- Khaleel

    Hi. Is this still a problem or is it solved? As far as I know how BPEL works this can not really take 3 hours before erroring. You are the one that knows the application best so you can check some things. Maybe the time reported is from the database machine on which time is set different from BPEL machine? What database are you using? Is it Oracle? I guess so. What version? I assume the BPEL repository is in different database from DB Adapter? Can you confirm that checkpoint() is really done? What error is exactly thrown from DB Adapter? How does your BPEL process start? Is it adapter-driven and is the process XA-Transacted? In that case the whole process could be in retry for a longer period of time.
    Regards,
    Jos Baan

Maybe you are looking for