OSB invoking Database

Use Case
We have a requirement to read .csv using FIle adapter in OSB.
Name,Age,salary
XYZ,31,30000
ABC,34,40000
Once the data is read in OSB, I would like to know how to pass it on to Java Class that invokes Stored procedure.
I have two queries here,
1) How to pass the object from OSB to Java Class using Java Callout ? Do we need to map if so how to do it ?
2) What should be the in parameter type of Stored procedure ?
I don't want to invoke the stored procedure as Web Service as I may have huge rows of data to be updated using this APproach !...
THanks>

Kindly help me as I need it for design document preparation.

Similar Messages

  • OSB Invoking ILOG or External Rules Engine

    Hello,
    Can OSB invoke ILOG or any external Rules engine ?
    Can ALSB do the same ?
    If OSB cannot directly invoke, do we need the support of BPEL which has the decision service and OSB invoke the decision service. Kindly help.
    Thanks

    Yes, both OSB and ALSB can invoke JRules, it's just another web service...

  • [OSB] Invoking OSB HTTP proxy as a part of a global transaction

    Hi,
    my question is, can a OSB HTTP proxy be executed in context of the global transaction?
    I did two tests. One had the following scenario:
    HTTP OSB proxy invokes JMS OSB proxy that invokes an "Insert to database" business services.
    Both of the proxies were transactional - I have set "Transaction Required" and "Same Transaction For Response" to enabled on both of them. Also, I've set QoS to "Exactly Once" in the Routing Option.
    The OSB JMS proxy's flow was executed as a part of the global transaction. I confirmed this with the following test:
    If I throw an exception in the responce pipeline of the HTTP OSB proxy, the database transaction was rolled back. If I throw an exception in the responce pipeline of the HTTP OSB proxy, but have the "Transaction Required" and "Same Transaction For Response disabled, the database transaction is commited and than the exception is thrown.
    The problem is, If I change the protocol of the second proxy to HTTP, then it doesn't seem to be executed in the context of the global transaction. If I throw an error in the response pipeline of the first OSB proxy(and "Transactions Are Required" and "Same Transaction For Response" are enabled for both proxy, and QoS is set to "Exactly once") the database transaction is not rolled back.
    So, can a OSB HTTP proxy be executed in context of the global transaction?
    Edited by: user13604541 on Dec 5, 2011 2:27 AM

    I have read on OSB doc that HTTP proxies do not support transactions... your tests seem to confirm this.

  • OSB: Implementing database locks

    Hi
    Tools: OSB11g, Oracle DB 11g, IntalioBPM
    I have a BS_BankProcessing business service which has "InsertBalance", "RetrieveBalance" and "UpdateBalance" operations. This BS is based on Account_Table in database.
    I created a proxy service - PS_BankProcessing which forwards requests to BS_BankProcessing.
    Then I invoked BPM process set for execution who are exposed to PS_BankProcessing. Around 100 process instances created and all accessed PS_BankProcessing for the same account number. As a result in database I could find several inconsistencies owed to simultaneous updation of DB by more than one BPM instance at the same time.
    That means simultaneous BPM instance requests were processed by OSB.
    How can I implement database locks in OSB or make PS_BankProcessing as a single instance proxy service so that there will be no conflicts in databasae updation?
    T&R
    Swapnil Kharwadkar

    well what I did was a real quick fix. Its not elegant but this is the way I did it.
    1. I created a workmanager in weblogic. Then I set its Max Threads Constraint=1. The same reference I gave in PS_BankProcessing. I am halfway through tests but this should make my PS_BankProcessing as singleton.
    2. Then I created DVM for JNDI name and my sql queries. These I extract at runtime in message flow and execute through xquery. It makes solution somewhat loose-coupled. At later stage I could change queries without changing code.
    But as Mr. Pierluigi said, it would be ideal to implement locks formally. I will try out that subsequently.

  • WSIF Error while invoking database

    i exposed a webservice from jdeveloper to call a function into database . this webservice has both input and output
    so , it is synchronous and i expect to have the result within 2 secs with large data , but sometimes , the result is returned after 10 or 12 secs .
    these last period is not accepted from the customer at all .
    i am using oracle BPEL to call this webservice using asynchronous BPEL process , as i will use - in the future - human tasks . but the result returned after long time
    so , i tried to include in my scope onalarm ( parallel with the scope ) and i gave it 3 secs . so , i thought in the begining that the onalarm will work if the time excceeds the 3 secs
    but ,
    i realized that all my transation is one transaction as there is no any activity till now to divide the whole transaction to two transactions so , if there is any thing wrong in the webservice or it take long time the whole BPEL fail with no instance at all , so this solution fails .
    i tried alot with many properties for the partner link till i used the
    "*nonblockinginvoke*" property that senses the time and made a new transaction to me and it senses the time already , so , if the webservice takes more than 3 secs it passes in my new flow that i will handle this error .
    but if the webservice takes 2 secs the invoke will be done (no onalarm in this case )and returning to me this new ERROR
    i tried to understand it but with no use till now
    please if any one knows this error explains to me what this error means?
    Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "java.lang.NullPointerException
         at com.collaxa.cube.ws.WSIFInvocationHandler.createOperation(WSIFInvocationHandler.java:758)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:260)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:416)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:222)
         at com.collaxa.cube.engine.ejb.impl.InvokerBean.onMessage(InvokerBean.java:113)
         at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at InvokerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Exception: java.lang.NullPointerException
    Handled As: com.collaxa.cube.CubeException
    i am using oracle BPEL 10.1.3.1
    any ideas
    thank you all for this great forum

    thanks for the reply ,
    i put this after the invoke activity of partnerlink
    <bpelx:exec name="Java_Embedding_1" language="java"
    version="1.4">
    <![CDATA[checkpoint();]]>
    </bpelx:exec>
    but same error again ,
    any other advice ,

  • Error Invoking Database Adapter

    I am trying to create a simple bpel process which updates table in Oracle Database, but getting some JCA connection issue below:
    "<bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. Project1:writeDB [ writeDB_ptt::insert(ContactOutputCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element &lt;connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the &lt;connection-factory/> element: location='eis/DB/XE_DB'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '&lt;jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/XE_DB. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element &lt;connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the &lt;connection-factory/> element: location='eis/DB/XE_DB'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '&lt;jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/XE_DB. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server </detail></part><part name="code"><code>12510</code></part></bindingFault></bpelFault>"
    thanks

    Hi
    Checklist
    1) Create DataSource
    2) Connection Pool in the DB Adapter(with jndi eis/DB/XE_DB)
    Edit the default connection pool created and point the xaDataSource or Datasource to jndi of datasource created in step1
    Regards,
    Ajay

  • Issue while invoking database

    Hi All,
    I am try to retrive data from a derby database for which I have created a WSDL from database and passing one value in the request and trying to retrive the record based on the value given in the request. But I am getting the below error while invoking the database.
    <SOAP-ENV:Fault>
    <faultcode xmlns="">SOAP-ENV:Server</faultcode>
    <faultstring xmlns="">BPCOR-6135:A fault was not handled in the process scope; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling}systemFault; Fault Data is &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;jbi:message xmlns:sxeh=&quot;http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling&quot; type=&quot;sxeh:faultMessage&quot; version=&quot;1.0&quot; xmlns:jbi=&quot;http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper&quot;&gt;&lt;jbi:part&gt;Error occured while executing SQL.select FIRSTNAME,ID,EMAIL,LASTNAME from EMPLOYEE&lt;/jbi:part&gt;&lt;/jbi:message&gt;. Sending errors for the pending requests in the process scope before terminating the process instance</faultstring>
    <faultactor xmlns="">sun-bpel-engine</faultactor>
    <detail xmlns="">
    <detailText>BPCOR-6135:A fault was not handled in the process scope; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling}systemFault; Fault Data is &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;jbi:message xmlns:sxeh=&quot;http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling&quot; type=&quot;sxeh:faultMessage&quot; version=&quot;1.0&quot; xmlns:jbi=&quot;http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper&quot;&gt;&lt;jbi:part&gt;Error occured while executing SQL.select FIRSTNAME,ID,EMAIL,LASTNAME from EMPLOYEE&lt;/jbi:part&gt;&lt;/jbi:message&gt;. Sending errors for the pending requests in the process scope before terminating the process instance
    Caused by: BPCOR-6131:An Error status was received while doing an invoke (partnerLink=PartnerLink2, portType={http://j2ee.netbeans.org/wsdl/EmployeeWSDL}jdbcPortType, operation=find)
    BPCOR-6129:Line Number is 28
    BPCOR-6130:Activity Name is Invoke1
    Caused by: Error occured while executing SQL.select FIRSTNAME,ID,EMAIL,LASTNAME from EMPLOYEE
    Caused by: Table/View &apos;EMPLOYEE&apos; does not exist.
    Caused by: Table/View &apos;EMPLOYEE&apos; does not exist.</detailText>
    </detail>
    </SOAP-ENV:Fault>
    Could you plz help me in fixing this issue.
    Thanks,
    Srinivas

    Below is wsdl which I am using.
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="EmployeeWSDL" targetNamespace="http://j2ee.netbeans.org/wsdl/EmployeeWSDL" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://j2ee.netbeans.org/xsd/tableSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://j2ee.netbeans.org/wsdl/EmployeeWSDL" xmlns:plink="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/">
    <types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/">
    <xsd:import namespace="http://j2ee.netbeans.org/xsd/tableSchema" schemaLocation="EMPLOYEE.xsd"/>
    </xsd:schema>
    </types>
    <message name="insertRetMsg">
    <part name="part" type="xsd:int"/>
    </message>
    <message name="inputMsg">
    <part name="part" element="ns:EMPLOYEE"/>
    </message>
    <message name="outputMsg">
    <part name="part" element="ns:EMPLOYEE"/>
    </message>
    <portType name="jdbcPortType">
    <operation name="insert">
    <input name="inputInsert" message="tns:inputMsg"/>
    <output name="outputInsert" message="tns:insertRetMsg"/>
    </operation>
    <operation name="update">
    <input name="inputUpdate" message="tns:inputMsg"/>
    </operation>
    <operation name="delete">
    <input name="inputDelete" message="tns:inputMsg"/>
    </operation>
    <operation name="find">
    <input name="inputFind" message="tns:inputMsg"/>
    <output name="outputFind" message="tns:outputMsg"/>
    </operation>
    <operation name="pollrecords">
    <input name="inputPoll" message="tns:inputMsg"/>
    </operation>
    </portType>
    <binding name="binding" type="tns:jdbcPortType">
    <jdbc:binding xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/"/>
    <operation name="insert">
    <jdbc:operation xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/"/>
    <input name="inputInsert">
    <jdbc:input xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" MarkColumnName="" MarkColumnValue="" MoveRowToTableName="" PKName="ID" PollMilliSeconds="5000" PollingPostProcessing="MoveRow" TableName="EMPLOYEE" Transaction="NOTransaction" numberOfRecords="" operationType="insert" paramOrder="FIRSTNAME,ID,EMAIL,LASTNAME" sql="insert into EMPLOYEE (FIRSTNAME,ID,EMAIL,LASTNAME) values (?,?,?,?)"/>
    </input>
    <output name="outputInsert">
    <jdbc:output xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" returnPartName="part"/>
    </output>
    </operation>
    <operation name="update">
    <jdbc:operation xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/"/>
    <input name="inputUpdate">
    <jdbc:input xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" MarkColumnName="" MarkColumnValue="" MoveRowToTableName="" PKName="ID" PollMilliSeconds="5000" PollingPostProcessing="MoveRow" TableName="EMPLOYEE" Transaction="NOTransaction" numberOfRecords="" operationType="update" paramOrder="FIRSTNAME,ID,EMAIL,LASTNAME" sql="update EMPLOYEE set FIRSTNAME = ?,ID = ?,EMAIL = ?,LASTNAME = ?"/>
    </input>
    </operation>
    <operation name="delete">
    <jdbc:operation xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/"/>
    <input name="inputDelete">
    <jdbc:input xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" MarkColumnName="" MarkColumnValue="" MoveRowToTableName="" PKName="ID" PollMilliSeconds="5000" PollingPostProcessing="MoveRow" TableName="EMPLOYEE" Transaction="NOTransaction" numberOfRecords="" operationType="delete" paramOrder="" sql="delete from EMPLOYEE"/>
    </input>
    </operation>
    <operation name="find">
    <jdbc:operation xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/"/>
    <input name="inputFind">
    <jdbc:input xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" MarkColumnValue="" MoveRowToTableName="" PKName="ID" PollMilliSeconds="5000" PollingPostProcessing="MoveRow" TableName="EMPLOYEE" Transaction="NOTransaction" operationType="find" paramOrder="" sql="select FIRSTNAME,ID,EMAIL,LASTNAME from EMPLOYEE"/>
    </input>
    <output name="outputFind">
    <jdbc:output xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" returnPartName="part"/>
    </output>
    </operation>
    <operation name="pollrecords">
    <jdbc:operation xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/"/>
    <input name="inputPoll">
    <jdbc:input xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" MarkColumnName="" MarkColumnValue="" MoveRowToTableName="" PKName="ID" PollMilliSeconds="5000" PollingPostProcessing="Delete" TableName="EMPLOYEE" Transaction="NOTransaction" numberOfRecords="" operationType="poll" paramOrder="" sql="select FIRSTNAME,ID,EMAIL,LASTNAME from EMPLOYEE"/>
    </input>
    </operation>
    </binding>
    <service name="service">
    <port name="port" binding="tns:binding">
    <jdbc:address xmlns:jdbc="http://schemas.sun.com/jbi/wsdl-extensions/jdbc/" jndiName="VIRJNDI"/>
    </port>
    </service>
    <plink:partnerLinkType xmlns:plink="http://docs.oasis-open.org/wsbpel/2.0/plnktype" name="jdbcpartner">
    <plink:role name="jdbcPortTypeRole" portType="tns:jdbcPortType"/>
    </plink:partnerLinkType>
    </definitions>

  • Null Pointer Exception when invoking Database Adapter

    The error reads as follows
    <2008-06-27 11:34:02,558> <ERROR> <p1.collaxa.cube.ws> <AdapterFramework::Outbound>
    file:/u01/app/oracle/product/10.1.3/as_mid_2/bpel/domains/p1/tmp/.bpel_UpdateA_8.2_8821b67fbd12f5dd2a0d57af136ec99e.tmp/InsertA.wsdl
    [ InsertAHis_ptt::insert(AHisCollection) ] - Could not invoke operation 'insert' against the 'Database Adapter' due to:
    java.lang.NullPointerException
    NB Just about the same process (minor differences in the payload) was launched at just about the same time, but that one did not cause an error.
    The error happened two days after a release. It was the first invocation of the service
    after that release. This may or may not have something to do with this error.
    There was no database shutdown, only a restart of the application server
    We cannot reproduce the error; this means that we don't have an extended log with more information on the error.
    Do you have more information on errors like this one?
    Thanx
    Lebbol

    Hi,
    To use the ServiceControl you need to be in a container that supports controls. This is what will instantiate your control for you, and take care of the some of the services controls require.
    So to use the ServiceControl you'll need to invoke it from another web service, a page flow, or another control.
    If you need to invoke from a standard main program, one option would be to use a standard WLS JAX-RPC client. This can be generated with their <clientgen> ant task.
    Hope this helps.
    -Chris

  • OSB invoking RESTful webservices:issue with relative-URI instead of

    Hi,
    We have a requirement where we need to pass the request content as string in the URL.
    we need to send the request in the URL like:
    http://abc.com/rest/xvf/nas<Employee><name>abc</name><empid>1234</empid>...<Employee>
    we have used a servicecallout action which is invoking a business service which has the base uri value like:
    http://abc.com/rest
    and in the insert action we are trying to appened the remaining uri in the rest command i.e
    <http:relative-URI>/xvf/nas{fn-bea:serialize($xmldata)}</http:relative-URI>
    here $xmldata is <Employee><name>abc</name><empid>1234</empid>...<Employee>
    while trying to invoke the service we are getting the error like:
    BEA-380000: General runtime error: Illegal character in path at index 36: http://abc.com/rest/xvf/nas& lt ; Employee>& lt ; name>abc& lt ; /name>& lt ; empid>1234>...& lt ; Employee>
    before to that we used fn-bea:inlinedXML and fn:bea:serialize functions on the retrieved xml and stored it into the xmldata variable and this variable is displaying the request in the proper xml file, but while appending it to the relative URI method the xml data is changing as like shown above i.e instead of < it is coming as & lt ; and at the end with out invoking the servie it is stoppeing at the OSB with the above error as illegal character, please advice..
    how to append the proper xml to the URL/URI in the relative-URI method in the proxy transport??
    as here it is coming & lt ; (combined with out space) as < i am changing it as like & lt ; for better understanding
    Thanks..
    Edited by: user12679330 on May 13, 2010 9:36 AM
    Edited by: user12679330 on May 13, 2010 9:40 AM
    Edited by: user12679330 on May 13, 2010 9:40 AM

    Not sure what you are trying to do but if I am not wrong, you are trying to use HTTP get with REST. You may refer -
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/httppollertransport/transports.html#wp1083292
    http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html
    http://blogs.oracle.com/jamesbayer/2008/07/using_rest_with_oracle_service.html
    http://blogs.oracle.com/woa/2009/04/restify_your_world_and_put_it.html
    Regards,
    Anuj

  • Database adapter: how to invoke database functions

    Hi there,
    i'm new in this forums. My name is Giulio and i work in Italy.
    I'm trying to invoke a database functions inside a bpel process.
    The function is very simple, this is the source code:
    create or replace function FNC_WriteSailing(PEventCode in varchar2, PXML In sys.xmltype) return number is
    begin
    Insert Into table_with_xml_column (filename, xml_document)
    Values (PEventCode, PXML);
    Commit;
    return(1);
    Exception When Others Then Return (0);
    end FNC_WriteSailing;
    I've tried to invoke functions withe only primitive data type as parameter. But i'm not able to invoke functions with CLOB or XMLTYPE parameter.
    I'm using jdeveloper version 11.1.1.4.0
    Could anyone help me? Thanks in advance.
    Regards,
    Giulio Dottorini

    you're not able to invoke them or you don't see them in the browser of the wizard of the db adapter?
    you should see them in there

  • OSB -- Invoking an asynchronous BPEL process in Oracle Service Bus

    Hi All,
    Can any one let me know how to invoke the Asynchronous BPEL process in OSB.
    Thanks in Advance,
    Feroz Tasha.

    Hey,
    What i was trying to say was that when you export your OSB project to file system, you can edit the business service in a file editor(e.g notepad, editplus etc).
    In that, instead of suppose 127.0.0.1 u can put a token say @@HOST_NAME@@ and for a port say 7001 as @@PORT_NUMBER@@.
    Then an ant script can replace the values of above 2 tokens with apt values, create a jar out of it and deploy it on the server.
    There are numerous ANT scripts and examples available online.
    Hope this helps.

  • OSB: Invoking multiple endpoint URIs or business service at same time

    Hi All,
    I want to route the request to two end point URIs or business services using OSB.
    Say for example, I have a BPEL which is deployed in two servers. Using this solution I have to invoke the deployed service in both servers as soon as I receive input.
    Please help.
    Thanks in Advance

    yes you can.
    1. place URIs in a xml. Save XML as a xquery resource say URICollection.xquery.
    2. assign this URICollection.xquery to a variable say URICollectionVariable.
    3. extract desired URIs using a xquery from URICollectionVariable. Two URIs can be stored inside one parent element, which can be output as result.
    4. replace business service URI with desired URI (from result) using "Routing options".
    To propagate request to two different locations, you need to use "for each" action. Run the "for loop" exactly two times, write logic for above item no.4- inside the for loop action.

  • OSB support database write operation

    Hi,
    I am using OSB 10.3 in weblogic 10.3. I have a scenario like below.
    Using a proxy service to read messages from a JMS queue. After reading the message I want to write the message content to the database table. Is it possible in OSB 10.3. If yes, could you please guide me how to do it.
    Thanks

    Hi,
    Please refer -
    http://biemond.blogspot.com/2009/06/osb-1031-with-database-adapter.html
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/jcatransport/transport.html
    Regards,
    Anuj

  • Error while invoking database stored procedure while mapping to varchar,int

    Hi I am using Oracle SOA 11g 11.1.1.4
    In that i am calling db procedure.The procedure is taking input parameters int and varchar and nillable is true for both cases.Its a sybase data base.
    I am calling this db proc through db adater.Here I am mapping integer and string values to input parametres of db procedure.
    While testing i am getting following exception.Here in the error 9000 is the value i am passing for integer input.
    Exception occured when binding was invoked. Exception occured during invocation
    failed due to: Unimplemented object conversion. Conversion of type
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Procedure1' failed due to: Unimplemented object conversion. Conversion of type 9000 whose JDBC type is OTHER to a Java object is not supported. An attempt was made to convert type 9000 to a Java object using an unsupported JDBC type: OTHER. Use a data type with a supported JDBC type. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>Unimplemented object conversion. Conversion of type 9000 whose JDBC type is OTHER to a Java object is not supported. An attempt was made to convert type 9000 to a Java object using an unsupported JDBC type: OTHER. Use a data type with a supported JDBC type. </detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    <faultType>
    Please help on this.
    Thanks
    <message>0</message>
    </faultType>
    </messages>

    I'm having a similar issue, while trying to invoke a SP from MS SQL Server.
    where the following is the DB adapter
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/RetailDelivery/dbo/BPEL_Proc/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/RetailDelivery/dbo/BPEL_Proc/" elementFormDefault="qualified">
    <element name="InputParameters">
    <complexType>
    <sequence>
    <element name="WorkFlowId" type="int" db:index="1" db:type="INT" minOccurs="0" nillable="true"/>
    <element name="Err" type="int" db:index="2" db:type="INT" minOccurs="0" nillable="true"/>
    <element name="StateID" type="int" db:index="3" db:type="INT" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <element name="OutputParameters">
    <complexType>
    <sequence>
    <element name="WorkFlowId" type="int" db:index="1" db:type="INT" minOccurs="0" nillable="true"/>
    <element name="Err" type="int" db:index="2" db:type="INT" minOccurs="0" nillable="true"/>
    <element name="StateID" type="int" db:index="3" db:type="INT" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    and this is .xsl for data transformations
    <xsl:template match="/">
    <db:InputParameters>
    <db:WorkFlowId>
    <xsl:if test="/ns0:Customer_Object/ns0:input_number/@xsi:nil">
    <xsl:attribute name="xsi:nil">
    <xsl:value-of select="/ns0:Customer_Object/ns0:input_number/@xsi:nil"/>
    </xsl:attribute>
    </xsl:if>
    <xsl:value-of select="/ns0:Customer_Object/ns0:input_number"/>
    </db:WorkFlowId>
    </db:InputParameters>
    </xsl:template>
    </xsl:stylesheet>
    where input_number is defined as Int.
    The problem is
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'PD_Tables_Populate' failed due to: Unimplemented object conversion.
    Conversion of type 6014 whose JDBC type is OTHER to a Java object is not supported.
    An attempt was made to convert type 6014 to a Java object using an unsupported JDBC type: OTHER.
    Use a data type with a supported JDBC type.
    where 6014 is actually the value i am filling in input_number field. The issue is that if i create new application and using the same db adapter it is working, but for some reason it is giving me this error for the current application.
    I'm using the same DB connection for calling other procedures and they are working with the same application.
    Any help will be appreciated! Thanks in advance!
    The problem was in the DB Adapter. After re-deploying it and delete/create data source it is working correctly now.
    Edited by: Huku on Aug 29, 2011 1:04 PM

  • OSB with database adapter using stored procedure

    Hi All,
    We have a following requirement, in OSB while using the DB adapter with stored procedure.
    1) the store procedure has custome datatype as inout parameter
    2) send reference cursor as input to stored procedure
    Can you please let me know how to do this.
    Thanks,
    Vinoth

    Please go through below links -
    Section "9.7 Stored Procedure and Function Support" of Tech Adapter user guide - http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_db.htm#CHDFBBCD
    http://blogs.oracle.com/middleware/2010/05/using_jca_adapter_with_osb_11113.html
    Regards,
    Anuj

Maybe you are looking for

  • Trying to install OSX.4 sys stalls when booting from dvd

    I've read many of the discussions on this topic. Some are close but none are exactly like the problem I am encountering. I have a Power Mac G4 that was running OS9.2 and I've been trying to install OSX.4. I've tried every possible combination of star

  • Modifying existing driver (newbie question?)

    Hi we are trying to modify an existing driver, but we are fairly new to Labview. We have some generic questions, but I will give some specific info about what we are trying to do as well. We downloaded a driver (for the NDI Polaris motion tracker) fr

  • The JVM library could not be found

    Hi there my name is javier and I am having a problem trying to get the PFProColdFusion from Verisign to work on my cold fusion administrator. I follow all the steps and then when I ran the test.cfm file is comming up with the following error message:

  • Error file creation

    Hi All, I am using a simple file to file transfer scenario 'file->XI->file' wherein I want to create a new file(third file) called as 'Error Log' or something which will contain the error report(which may contain the field in the datatype which has e

  • Interactive Report - Chart

    I am using version 3.2 and I cannot get any charts working with interactive reports. I have a report that select all from a personal-details table. I want to display a chart showing a count of people by city. In the label part I select city, in the v