Invoke a procedure from a MQ adapter

I plan to invoke a procedure (request/reply paradigm) from a MQ adapter. The MQ adapter configured in client mode will receive a message from a remote MQ Queue Manager. On reception of a message, it will invoke the procedure. A DB adapter will implement the procedure (stored procedure). The reply will be resent to MQ Series. In MQ Series (now called Websphere MQ) terminology the MQ Message Correlation ID of the reply message must contain the Message ID of the request (quite logic in all MOM implementations). So far I couldn't find in the Oracle documentation if this is handled by the MQ adapter automatically. I didn't find either a way to retrieve the Message ID from the MQ message nor how to force the Correlation ID.
Did someone already looked at implementing a request/reply with a MQ adapter?
Claude

Claude,
The support for invoke and implement messages, such as Procedure calls, is enabled by the native support for request and reply messages in MQ Series, including its message correlation capability. It is only available when the MQ Series adapter operates in D3L mode.
In order to take advantage of this capability, a few extra steps need to be performed during configuration, including modifying the D3L files and defining correlation fields in iStudio.
Pl check the following link for more details: http://iasdocs.us.oracle.com/iasdl/90402integration/integrate.904/b10411/runtime.htm#1009211
Should you have further questions, pl update this forum thread with more info. Thanks.
- Latha

Similar Messages

  • How to call multiple stored procedure from same DB Adapter

    Hi,
    I want to invoke 3 stored procedures from my message flow in BUS . I created a DB adapter and invoked 1 successfully . Now I don't to configure 2 other DB adapters for calling other 2 stored procedures . I want some how to be able to call the other 2 from the first DB adapter only . Somehow I need the flexibility to have procedure names as the operation names in 1 wsdl and be able to configure this in JDeveloper for this at time of DB adapter configuration . I am using 11G . Is it possible ?

    You can probably create a DB adapter with operation type selected as Execute Pure SQL and write SQL code to invoke the stored procedures depending on the procedure name (which you can get as one of the parameters of DB Adapter).
    However, Even if you were able to do it, the DB Adapter schemas are generated based on stored procedure parameter list and types. If you use Execute Pure SQL type of DB Adapter the schema will be generated based on the parameters which you are using in your custom SQL code within DB Adapter. Which means that if you want to add a new stored procedure as target which has a different name and different parameters then you will need to regenerate the DB adapter and update your custom SQL code. This also means that you will need to do regression testing interfaces to all stored procedures whenever there is any change in this DBAdapter.
    Now, my question is why do you want to invoke multiple stored procedures from same DB adapter?
    This is not a good way to design integration solutions and makes your services resistance to change as it will take more time to change and test.
    If all that you want is to have a web service which can have different operations for different stored procedures then you should create three business services and create a wrapper proxy service which has one operation for each stored procedure, within the proxy transform and call the correct backend service (you can use operational branch). This way you have a modular code where each module (read interface to one stored procedure) can be independently modified and tested.

  • Error while invoking stored procedure from BPEL process

    Hi Folks,
    I am facing the below mentioned issue while invoking a stored procedure in BPEL process :
    I am trying to invoke a stored procedure from a BPEL process. The process runs fine for the first/second time, but gives the below error after that whenever i try to run the process :
    file:/oracle/orasoa/bpel/domains/default/tmp/.bpel_ProvisionOrderASAPReqABCSImpl_1.0_50dd1595129e9bbb00560e31e7c18cef.tmp/DB_CALL_GetPendingSubscriptionProc.wsdl [ DB_CALL_GetPendingSubscriptionProc_ptt::DB_CALL_GetPendingSubscriptionProc(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'DB_CALL_GetPendingSubscriptionProc' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the PROC_GET_PENDING_SUBSCR API. Cause: java.sql.SQLException: Io exception: Connection reset [Caused by: Io exception: Connection reset]
    ; nested exception is:
    ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the PROC_GET_PENDING_SUBSCR API. Cause: java.sql.SQLException: Io exception: Connection reset [Caused by: Io exception: Connection reset]
    Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
    I am not getting how the BPEL is referring to the DB wsdl from the tmp folder. To resolve this issue, we have to stop the SOA server, delete the tmp files, and restart the server.
    Any pointers in this regard will be really helpful.

    First of all does this scenario occur again.
    "Works first/second time. Later gives this error."
    After you restart the SOA server are you able to reproduce this scenario?
    As already pointed out and from the error message, database connection is reset.
    If you find this error again, try this out.
    em -> home / oc4j_soa -> Administration -> JDBC Resources
    Use the "Test Connection" option for the Connection Pool that you are using for your database JNDI.
    It comes back and say "Connection to "XYZCP" established successfully." it is good to use.
    Run the BPEL process again and once you find the error, come back and test the connection.
    If it comes back with Error, diagnose based on the error message received.
    Cheers
    Kalidass Mookkaiah
    http://oraclebpelindepth.blogspot.com/

  • Error while fetching Stored procedure from JDev DB Adapter

    Hello
    I am facing a problem while configuring stored procedures from Jdeveloper using DB Adapter. I am using Sql Server 2005 as my database,Jdeveloper version is 10.1.3.1.Bpel Version is 10.1.3.3. Connection to the Sqlserver 2005 database is fine, but it shows only views and tables. I get the following error message when I try to add the sql stored procedure call
    "An error occured while obtaining the database schemas.Verify that the database connection is valid , and is supported"
    Can someone help me please.
    Thanks,
    Phani
    Edited by: Phani on Oct 28, 2008 11:30 AM

    I think you have two problems here. First, JDeveloper 10.1.3.1 doesn't support SQL Server stored procedures. There is a command-line utility that you can use to generate the required BPEL artifacts (WSDL and XSD). Second, you're using a 10.1.3.1 design-time with a 10.1.3.3 runtime. These are not compatible so you will likely run into namespace issues when you try to run your BPEL processes. You should upgrade your JDeveloper to 10.1.3.3. JDeveloper will support third-party databases in 11.1.1 including SQL Server 2005 (but not 2000), IBM DB2 v8.x and v9.x, DB2 AS/400, and MySQL. JDeveloper will support MySQL v5.2.6 and above because the INFORMATION_SCHEMA.PARAMETERS table was added at that time. The PARAMETERS table does not exist in MySQL versions prior to v5.2.6 so you will have to use the command-line utility.

  • Executing an Oracle Stored Procedure from Sender JDBC adapter

    I could really use some help from someone who had done this before. 
    I've read the help about using the JDBC sender adapter, but it's not helping enough.
    I found this line: "Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.
    The expression must correspond to the SQL variant supported by the relevant JDBC driver. It can also contain table JOINs."
    That's definately what we want to do, but we can't figure out the syntax.
    The procedure in oracle looks like this:
    CREATE OR REPLACE PROCEDURE test_ref_cursor
    ( cur_generic IN OUT result_sets.cur_generic)
    as
    BEGIN
    Open cur_generic for
    select
       proposal_number,
       to_char(sequence_number),
       column_name,
       column_value,
       update_timestamp,
       update_user
       from
       coeus.sap_test;
    END test_ref_cursor;
    And we have tried every kind of statement we can think of, but the file adapter always gives us an "invalid sql statement" error.
    Does anyone know what syntax we need to put in the "Query SQL Statement" in the JDBC sender adapter in order to call this procedure?  Or is there something wrong with the procedure that is causing the error?
    <i>I will absolutely return and give points, but PLEASE read my whole post before answering and do not just link me to or quote the help for configuring a sender JDBC adapter or blogs that are about the JDBC adapter in general but do not deal with the issues I am having. Thank you.</i>

    Hi Vanda,
    Unfortunately, the sender JDBC adapter does not support Oracle's store procedure/function.  Unlike stored procedures from other database vendors, Oracle returns a cursor, not a resultset.  The sender JDBC adapter must send a resultset to XI.
    There are 2 possible ways you can accomplish this:
    1.  Use BPM and call the Oracle stored procedure using a receiver adapter via a asynch-synch bridge.
    2.  Develop a user-module for the adapter, which can be used with a sender adapter.
    Thanks
    Prasad

  • To invoke tax procedure from SRM

    Hi Guru's
    We are using SRM ECS and our backend is connected to TAXWARE. Can you please let me know how to invoke TAX Procedure/Pricing Procedure in backend from SRM. If you can list the BAPI's, FM, RFC's that would be helpful.
    Thanks in advance
    Deepu.

    closed

  • XSQL: how to invoke stored procedure from XSQL

    Any one has example on how to invoke stored procedure within XSQL with associated *.xsl? What the syntax looks like? Thanks.

    If you want to simply invoke a stored procedure, use:
    <xsql:dml>
    begin
    proc(args);
    end;
    </xsql:dml>
    If you want to return XML that your stored procedure "prints" to the OWA page buffer, then use:
    <xsql:include-owa>
    If you want to invoke a stored function that returns a REF CURSOR function, then use <xsql:ref-cursor-function>
    null

  • Invoking a procedure from web

    Hi,
    I am facing a problem to access a plsql procedure from browser.
    I use Apache/1.3.12 (Unix) with Oracle 8i web tool kit.
    Below both urls point to same procedure in a package.
    Works fine :- http://xyz.com/pls/race/ama.moh?v_Title=a
    does not work:- http://xyz.com/pls/race/ama.moh(a)
    I am unable to call a procedure directly by its argument.
    But both the urls work for another server.
    I am confused, whether it is a apche or oracle problem.
    The content of the package is as follows :
    CREATE OR REPLACE PACKAGE ama IS
    PROCEDURE moh (v_Title IN VARCHAR2 DEFAULT NULL);
    END ama;
    CREATE OR REPLACE PACKAGE BODY ama AS
    PROCEDURE moh (v_Title IN VARCHAR2 DEFAULT NULL) IS
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    htp.title('d');
    htp.headClose;
    htp.bodyOpen;
    htp.p ('Amaresh - ' || v_Title);
    htp.bodyClose;
    htp.htmlClose;
    END moh;
    END ama;
    Please help.
    Cheers,
    Amaresh

    There's a published note on MetaLink (Note: 311536.1)
    Subject:      Forbidden To Execute A PL/SQL Procedure With Parentheses
    The use of special characters in URLs is no longer allowed as freely as in the past. The proscription against parentheses is also mentioned in a dads.README file I found, excerpted here:-------------------------- PlsqlExclusionList --------------------------------
    Tips:
      Besides the patterns specified with this parameter, mod_plsql also disallows
      any fully qualified procedure names which contain special characters like
      tabs, newlines, carriage-returns, single-quotes, the reverse-slash,
      the form feed, the open parenthesis, close parenthesis, and spaces. This
      cannot be changed.
      If you wish to add to the existing defaults, please make sure that you
      add the default entries in the configuration.
      In older versions, this parameter was called "exclusion_list"Scott

  • Invoke stored procedure from JDBC Adapter

    Is there a tool that generates interfaces for stored procedure(ORACLE PL/SQL) like RFC or IDOC adapters?

    Hi Denis,
    I dont think there is any such tool.]
    To generate a Stored Procedure of your Oracle DB, all you will have to do in your <b>JDBC adapter configuration</b> is give the name of the Stored Procedure under <Table> and you will have to give "<b>execute</b>" as the value under action attribute.
    Just check this link. Hope it helps,
    http://help.sap.com/saphelp_nw04/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/content.htm
    Just check this blog of Sriram wherein a stored procedure of a MaxDB Database is called.
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    I have implemented a scenario which requires an Oracle stored procedure to be executed and so, if you do need any further info, let me know.
    Hope this info helps,
    Regards,
    Bhavesh

  • Calling Stored Procedure from Oracle DataBase using Sender JDBC (JDBC-JMS)

    Hi All,
    We have requirement to move the data from Database to Queue (Interface Flow: JDBC -> JMS).
    Database is Oracle.
    *Based on Event, data will be triggered into two tables: XX & YY. This event occurs twice daily.
    Take one field: 'aa' in XX and compare it with the field: 'pp' in YY.
    If both are equal, then
         if the field: 'qq' in YY table equals to "Add" then take the data from the view table: 'Add_View'.
         else  if the field: 'qq' in YY table equals to "Modify"  then take the data from the view table: 'Modify_View'.
    Finally, We need to archive the selected data from the respective view table.*
    From each table, data will come differently, means with different field names.
    I thought of call Stored Procedure from Sender JDBC Adapter for the above requirement.
    But I heard that, we cannot call stored procedure in Oracle through Sender JDBC as it returns Cursor instead of ResultSet.
    Is there any way other than Stored Procedure?
    How to handle Data Types as data is coming from two different tables?
    Can we create one data type for two tables?
    Is BPM required for this to collect data from two different tables?
    Can somebody guide me on how to handle this?
    Waiting eagerly for help which will be rewarded.
    Thanks and Regards,
    Jyothirmayi.

    Hi Gopal,
    Thank you for your reply.
    >Is there any way other than Stored Procedure?
    Can you try configuring sender adapter to poll the data in intervals. You can configure Automatic TIme planning (ATP) in the sender jdbc channel.
    I need to select the data from different tables based on some conditions. Let me simplify that.
    Suppose Table1 contains 'n' no of rows. For each row, I need to test two conditions where only one condition will be satisfied. If 1st condition is satisfied, then data needs to be taken from Table2 else data needs to be taken from Table3.
    How can we meet this by configuring sender adapter with ATP?
    ================================================================================================
    >How to handle Data Types as data is coming from two different tables?
    If you use join query in the select statement field of the channel then whatever you need select fields will be returned. This might be fields of two tables. your datatype fields are combination of two diff table.
    we need to take data only from one table at a time. It is not join of two tables.
    ================================================================================================
    Thanks,
    Jyothirmayi.

  • Parameters to stored procedure from sender JDBC

    Hi,
    I am using the JDBC sender adapter to call the Oracle stored procedure. Oracle version is 10.2. hence I m using function call using select.
    My concern is, how to pass the input parameter to Oracle function from JDBC sender.
    Regards,
    Kavita

    Hi Kavita,
    <i>I am using the JDBC sender adapter to call the Oracle stored procedure</i>
    <i>Unfortunately, the sender JDBC adapter does not support Oracle's stored procedure/function. Unlike stored procedures from other database vendors, Oracle returns a cursor, not a resultset. The sender JDBC adapter must send a resultset to XI.</i>
    Executing an Oracle Stored Procedure from Sender JDBC adapter
    [Not sure about latest versions of Oracle]
    <i>can I pass the input parameter to this function? </i>
    In my opinion, No
    <i>If not, I need to change the approach, and need to use receiver JDBC[as need to pass input parameter]. </i>
    This could be possible but havent tried it
    <i>Can JDBC Receiver adapter support stored procedure for Oracle[10.2]</i>
    Yes
    Regards,
    Prateek

  • Siebel analytics(Invoking Stored Procedure)

    Hi all,
    I am using Siebel Analytics(7.8.2) and am a new bee to this.
    I have invoked stored procedure from Siebel Administration but is it possible to do the same from Siebel web analytics?. I have a report where on clicking on a link/button i want to invoke a stored procedure.
    Thanks in advance
    Dhrubo...

    Hi,
    create java impl class of application module by going to java tab
    and refer following code
        public Connection getCurrentConnection() {
            Statement st = null;
            try {
                st = getDBTransaction().createStatement(0);
                return st.getConnection();
            } catch (SQLException s) {
                s.printStackTrace();
                return null;
            } finally {
                if (st != null)
                    try {
                        st.close();
                    } catch (SQLException s2) {
    public void callP(){
    Connection conn = getCurrentConnection();
                 CallableStatement cs = null;
                String stmt = "xx.xx(?,?,?,?,?,?,?)";  // ? depends on number of parametrers of procedure
                try {
                    cs = conn.prepareCall("begin " + stmt + "; end;");
                    cs.setObject("parameterName", "some Value");
                    cs.execute();
                } catch (SQLException e) {
                   throw new JboException(e);
                } finally {
                    if (cs != null) {
                        try {
                            cs.close();
                        } catch (SQLException e) {
    calling oracle stored procedure in java
    Hope this helps
    Edited by: Santosh Vaza on Apr 25, 2012 12:07 PM

  • OBPM 10.3.2 Project Procedures from ScreenFlows

    I have defined a new Procedure called calculateRoute in a folder called Procedures within Processes tree in my project.
    I used the Project - New - Procedure wizard.
    The procedure has input and output arguments.
    I would to know is it possible to invoke the procedure from within a automatic activity within a Screenflow.
    Same question - this time from within a Process.
    Many Thanks for your responses.
    TR

    You could invoke your procedure from a process by adding an Automatic activity in the process and invoking it from there.
    Screenflow is a different story. You could add an Automatic task in the screenflow but cannot invoke a procedure from this.

  • How to limit the response rows while invoking a stored procedure from OSB 10gR3

    Dear Experts,
    I am trying to limit the response while invoking a stored procedure from OSB via DB adapter.
    Here the stored procedure returns cursors as response. I tried using the MaxTransactionSize propertiy (which is used for polling the database option in DB adapter).
    We are investigating the ways to protect the application from response containing huge number of rows.
    Is there any way to restrict the number of rows returned in each and every cursor while invoking the stored procedure via DB adapter?
    Thanks
    Ram

    Hi James ,
    I want to know how to run stored procedure using jca adapter in OSB11g.
    I am new to stored prcoedure,will be great if you could share some example on it as above.
    Req: Single input xml will be posted on queue ,need to perform 3 DB operation (with same input):
    1.Insert operation to insert master table contents.
    2.select the primary key column value from master table for the last inserted record.
    3.Need to insert primary key column value + other fields frm same xml file to child table.
    Pls assist me on how to create a simple stored procedure and to run the same with OSB 11g.I am familiar with creation of DB adapter using Jdeveloper,we have option to perform insert and to call stored procedure here,will it be useful for this scenario?
    Edited by: Anitha R on Nov 21, 2010 9:30 PM

  • Invoking Oracle stored procedures from within a JDBC channel for PI 7.1

    Hi ,
    Can anybody tell me that is it possible to invoke Oracle stored Procedure from within a JDBC  sender channel for PI 7.1.
    Its working in XI3.0 and XI 7.0 for Oracle DBMS versions >= 10.2.x. But I am not sure,whether it will work for PI 7.1 also.
    Thanks & Regards,
    Saru

    HI,
    refer below link,there is no much difference in PI7.1 ,executing stored procedure is same .
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/7b72b2fde93673e10000000a114a6b/content.htm
    Regards,
    Raj

Maybe you are looking for

  • SharePoint List Source - converting person/people

    PART 1 I currently have an SSIS package that gathers a SP (task) list source into a SQL Server table. The "assigned to" column (ie user) comes in as the SharePoint reference (ie 22;#Test User)....but I would like to store it as the user's login name

  • Artwork not showing up in track info

    I upgraded to iTunes 6 yesterday, from iTunes 5. And now my artwork does not show up under the summary tab when I do a "Get Info" on a song. It does not show up under the "Artwork" tab either. However, when I play the song, the artwork is displayed i

  • Applying TAX arte aganist total Invoice amount

    Hello ALL, We are trying to implement Oracle AR module for Taiwan. The lowest dollar amount use can poay in Taiwan is 1 taiwan dollar, there is no cents. But I oracle applications Ar is set up with 2 decimals and AR apply tax aganist each line, not a

  • How To Securely Mount iPad On Glass?

    As a requirement to display an app in an office I am looking for suggestions how I can securely mount an iPad onto an internal glass window. Anybody done this before or have suggestions on how to do it?

  • Send same data to two systems

    I tried several ways but failed. And I'm very confused, Is somebody tell me the correct way? send the same message to two receivers. So there is one Receiver determination, what about interface determination? Shoud I use different message interfaces