Maintaining Single Session between 2 partner links in BPEL Process

Hi All,
We have a procedure that inserts data into a Global Temporary table. We have exposed this as a partner link in our BPEL process. We have a procedure that retrieves data from this Global Temporary table and does some processing. We have exposed this procedure also as a partner link in our BPEL process.
But problem is according to our understanding each partner link takes different session. And Global Temporary tables data is session/transaction specific.
Is there any way to make complete BPEL process or a set of BPEL activities run in same session or share same transaction.
Any pointer on this is of great help.
Thanks,
Uma.

1.     BPEL process should be sync (to ensure the process runs in one thread).
2.     On each partner link specify participate=true (as property)
3.     DB adapter's database connection MUST point to a XA-location to participate in the global transaction. I.e. modify oc4j-ra.xml, data-sources.xml as follows:
i. oc4j-ra.xml:
Location: BPEL_HOME\integration\orabpel\system\appserver\oc4j\j2ee\home\application-deployments\default\DbAdapter\oc4j-ra.xml
<connector-factory location="eis/DB/IGSD1R12" connector-name="Database Adapter">
<config-property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<config-property name="connectionString" value="jdbc:oracle:thin:@ap672sdb.us.oracle.com:25502:IGSD1R12"/>
     <config-property name="userName" value="apps"/>
<config-property name="password" value="apps"/>
<config-property name="minConnections" value="1"/>
<config-property name="maxConnections" value="5"/>
<config-property name="minReadConnections" value="1"/>          <config-property name="maxReadConnections" value="5"/>
<config-property name="usesExternalConnectionPooling" value="false"/>
<config-property name="dataSourceName" value=""/>
<config-property name="usesExternalTransactionController" value="false"/>
<config-property name="platformClassName" value="oracle.toplink.internal.databaseaccess.OraclePlatform"/>
<config-property name="usesNativeSequencing" value="true"/>
<config-property name="sequencePreallocationSize" value="50"/>
<config-property name="tableQualifier" value=""/>
<config-property name="defaultNChar" value="false"/>
<config-property name="usesBatchWriting" value="false"/>
</connector-factory>
ii. data-sources.xml
Location: BPEL_HOME\integration\orabpel\system\appserver\oc4j\j2ee\home\config\data-sources.xml
     <data-source class="com.evermind.sql.DriverManagerDataSource"
name="LocalDataSource"
location="loc/LocalDataSource"
xa-location="LocalDataSource"
ejb-location="jdbc/LocalDataSource"
connection-driver="oracle.jdbc.OracleDriver"
username="apps"
password="apps"
max-connections="50"
min-connections="10"
     connection-retry-interval="30"
max-connect-attempts="10"
url="jdbc:oracle:thin:apps/[email protected]:25502:IGSD1R12"/>

Similar Messages

  • Why we use Dynamic Partner Link in BPEL process

    hi,
    What is the purpose of using Dynamic Partner link in BPEL process ?

    Hi Shankari,
    apart of using the the config plan you can change the endpoint uri in runtime if you define the property "endpointURI" in your composite
    <binding.ws port="http://xmlns.oracle.com/bpel/workflow/taskService#wsdl.endpoint(TaskService/TaskServicePortSAML)"
    location="http://localhost:7001/integration/services/TaskService/TaskServicePortSAML?ORAWSDL"
    soapVersion="1.1">
    <property name="weblogic.wsee.wsat.transaction.flowOption"
    type="xs:string" many="false">WSDLDriven</property>
    <property name="endpointURI"
    type="xs:string" >http://localhost:7001/integration/services/TaskService/TaskServicePort</property>
    </binding.ws>
    then right click your composite in the enterprise manager and go to "Service/Reference Properties". There you can change the endpointURI property.
    You can also change the endpointURI inside your BPEL process. Go to the invoke inside the bpel process and go to the "properties" tab. There search for the property "endpointURI" and set a value.
    hope this helps
    cheers Nicolas

  • Error invoking bpel partner link from bpel process

    hello,
    i try to invoke a bpel web service (deployed correctly) from another bpel process.
    I've this error:
    Cannot find resource. Context:
    http://orcldemo.localdomain:9700/orabpel/xmllib/ws-addressing.xsd
    I've tried to add my wsdl to:
    \\orcldemo\orabpel\system\xmllib\
    In this way I can invoke bpel web service (http://orcldemo:9700/orabpel/xmllib/WebServiceName.wsdl)and deploy my bpel process without compilation error, but when I start my bpel process the instance isn't created.
    I've pm server on linux machine with oc4j
    ThankYou
    Andrea

    Resolved!! Edwin, was a name resolution problem, as you say!
    My problem also was that bpel server is on a remote linux machine, so soap server url with localhost (and similar) is not accepted by designer
    The better solution for Bpel server soap is:
    http://MachineIP:9700
    So I can invoke bpel process, and also JDev WS (deployed on oc4j) with endpoint as http://machineName:9700 and http://localhost:9700
    Thank you
    Andrea

  • Modify all partner links of a process

    hello,
    what i am thinking about is to modifiy all partner links used in a process.
    As described in the cookbook you can change the endpoint reference of a parnter link throug an assert statement.
    What i did up to now is to look up the partner links through the api. I have the names of the partner links, etc now in my process workflow stored in a variable. Iterating over the links works fine. Now i want to get and afterwards modifiy the endpoint reference of every partner link in the process. To fetch the information about the endpoint reference of a partner link i tried to use a statement like that:
    <assign name="assign-1">
    <copy>
    <from partnerLink="bpws:getVariableData('link')" endpointReference="..."/>
    <to variable="partnerReference"/>
    </copy>
    </assign>
    the link variable holds the name of a partner link.
    Of course that didn't work :)
    The BPEL4WS spec. 1.1 says that the from-spec has to look like that
    <from partnerLink="ncname" ......
    That would mean that there isn't a possibility to bring any dynamic in that expression
    Any ideas on that?? I mean can i dynamically fill the from and to expression....
    Greets Jens

    There is a whitepaper out that describes dynamic functions for adapter out, I believe the pdf is named bpeltechadp.pdf , search for that on metalink.

  • Dynamic Partner links in BPEL (or ESB

    Can we dynamically define Partner links at runtime and at runtime decide to call these services? If yes, can we also dynamically map the schemas?
    BPEL cook book provides an example to for creating Dynamic Partner but this requires redeploying the WSDL?
    This is not acceptable because redeploying the WSDLwill effect other processes running.

    Just for your information it is recommended when dealing with Batch type processing that the you do not use BPEL variables larger than 5MB.
    Therefore is this is the case it might be worth considering a mechanism (as described above) to de batch the process to provide a flow of data rather than a big hit of data.
    Hope that Helps
    Dave

  • Passing SOAP header while invoking a web service partner link from BPEL

    I followed the steps of adding bpelx.inputheadervariable. Which is supposed to add the soad header. But after running the BPEL process if I see the message in the console, I don't see the SOAP header. Is there any way to see how the SOAP header is passed or did I set it incorrectly?
    This is what the message looks like:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
    <ns0:Context xmlns:ns0="http://www.informatica.com/wsh">
    <SessionId>[string]</SessionId>
    </ns0:Context>
    </soap:Header>
    <soap:Body>
    <ns0:StartWorkflow xmlns:ns0="http://www.informatica.com/wsh">
    <DIServiceInfo>
    <DomainName>[string]</DomainName>
    <ServiceName>[string]</ServiceName>
    </DIServiceInfo>
    <FolderName>[string]</FolderName>
    <WorkflowName>[string]</WorkflowName>
    <WorkflowRunId>[int]</WorkflowRunId>
    <WorkflowRunInstanceName>[string]</WorkflowRunInstanceName>
    <Reason>[string]</Reason>
    <Attribute>
    <Name>[string]</Name>
    <Value>[string]</Value>
    </Attribute>
    <Key>
    <Key>[string]</Key>
    <mustUse>[boolean]</mustUse>
    </Key>
    <ParameterFileName>[string]</ParameterFileName>
    <Parameters>
    <Parameters>
    <Scope>[string]</Scope>
    <Name>[string]</Name>
    <Value>[string]</Value>
    </Parameters>
    </Parameters>
    <RequestMode>[ETaskRunMode]</RequestMode>
    <TaskInstancePath>[string]</TaskInstancePath>
    <IsAbort>[boolean]</IsAbort>
    <OSUser>[string]</OSUser>
    </ns0:StartWorkflow>
    </soap:Body>
    </soap:Envelope>
    I am trying to invoke the 'startworkflow' operation of Informatica web service Dataintegration.wsdl
    Edited by: user611166 on Apr 1, 2010 10:10 AM

    Hi,
    Try using obtunnel with your bepl console.
    Alternatively, if your server is on unix/ linux, try tcpdump to capture packets to a particular server and then open the file in wireshark to analyse the contents.
    Wish SOA suite would allow us to view this by default!
    Regards,
    Sappy

  • How to maintain List Of Values (LOV's) for BPEL Processes

    We are integrating two systems.Source and destination systems store data in different formats. For example State is stored as a string in source and its stored as an number in destination system. In BPEL we are trying to transform this information and send it to destination system so that it understands the incoming data.
    A sample of transformation we need to do is as shown below.
    State in Source     Sate in Destination
    Texas               1
    Nebraska          2
    But we have so many fields that we need to transform as we are doing for State.
    What is the best way of handling these domain mappings in BPEL. I want to know is there any efficient way we can handle this in BPEL as we do in J2EE applications(Maintaining them in Domain tables and making them available for all functionalities).
    We are looking to hold all these domain mappings at one place and use in all the processes we design.Can anyone suggest a better way to handle this for BPEL processes.

    Hi,
    I am using the lookup-xml for maintaining list of values.But dont know whats the problem unable to get the output.
    Example: this is just a sample one which i am testing.
    My xml file is placed in c folder with the name "StateList.xml" which contains the following info.
    <?xml version="1.0"?>
    <Countries>
    <Country><Abbreviation>CO</Abbreviation><FullName>CO</FullName></Country>
    <Country><Abbreviation>CT</Abbreviation><FullName>Connecticut</FullName></Country>
    <Country><Abbreviation>ID</Abbreviation><FullName>Idaho</FullName></Country>
    <Country><Abbreviation>NJ</Abbreviation><FullName>New Jersey</FullName></Country>
    <Country><Abbreviation>AP</Abbreviation><FullName>Andhra Pradesh</FullName></Country>
    </Countries>
    And in BPEL, in the transformation i am taking the input and assigning this lookup value to the output variable as follows :
    <ns1:result>
    <xsl:value-of select="orcl:lookup-xml('file:/c:/StateList.xml','/Countries/Country','Abbreviation','FullName',/ns1:HelloWorldPavanaProcessRequest/ns1:input)"/>
    </ns1:result>
    But unable to get the result.Kindly help me out in this.
    Regards,
    Pavana

  • What is the difference between WORKFLOW API and BPEL PROCESS MANAGER API

    Hi,
    I am using BPEL process manager and would like to know the correct api set.
    I found the workflow api which appears to be part of the oracle workflow.
    is workflow api and oracle BPEL process manager two seperate products? --- Pls confirm/deny.

    Hi me_sun, me_oracle :)
    The bpel api can be found here
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28986/toc.htm
    workflow found here
    http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28985/toc.htm
    when us install BPEL you do get BPELs human workflow component. This is different to the Oracle Oracle workflow which was based on the database and PL/SQL.
    cheers
    James

  • Create Partner Link Error

    Hi I was trying to add partner link to bpel process. but getting error.
    1) Drag the partner link from services to Bpel process services area
    2) WSDL Setting. click the service explorer icon. Then Select Local Bpel Services=>ServerConnection1=>processes=>default=>HelloWorld then select OK
    3) Getting ERROR Loading wsdl file. click here to verify the details
    ERROR Failed to load WSDL file.
    http://localmachine.com:9700/orabpel/default/HelloWorld/HelloWorld?wsdl
    caused by java.net.connectexception connection timed out.
    however when try to load the http://localmachine.com:9700/orabpel/default/HelloWorld/HelloWorld?wsdl this parth in the internet explorer it is working file.
    Appreciate your help on this.
    Thanks
    Vel

    Hi',
    Is your "Use HTTP Proxy Server" unchecked inside Tools>Preferences>Web Browser and Proxy.
    -Yatan

  • Unable to wire BPEL process to external Web Service

    Hi ,
    I am working on calling Web service from BPEL Process(I am trying to invoke currency converter service from BPEL process).I added Curreny Converter webservice component in "External references" Swimlane in SOA(Jdeveloper) composite editor by using WSDL that I got for that service..I also built the BPEL Process (BPEL Currency Process-which has bpelcurrenyprocess_client service in 'Exposed Services' swimlane).Then I wired BPEL Process to "CurrencyConverter" service.When U click on BPEL process,We have to get the that(Currency Converter" service) in right side partner link in BPEL Process( .bpel editor) editor.But I am not getting that in partner link.
    I hope some of you guys are already worked on BPEL process which calls "CurrencyConverter" Service.Can anybody help me in this issue?
    I am giving service details through which u can track about the issue that I am talking about:
    WSDL : CurrencyConvertor.asmx.wsdl
    example application is :bpel-106-CallingWebServices.jpr
    Note : I want to siimulate above application in my application
    Edited by: 899283 on May 14, 2012 4:48 AM

    if you are not getting the partner link even after adding in the composite view, you may just perform the following steps.
    Right click on the right swimlane in your BPEL View, create a partner link, and you would see 4 buttons just above the Text box for WSDL URL. Select the 3rd button there. That is the service wizard. Once you click on that, you would need to repeat the set of steps that you did on the "Composite View" earlier.
    And there, you have it in your BPEL View!
    Hope this helps!

  • Maintain HTTP Session in Webservice

    Hi,
    I configured a Webservice as an External Resource, just for consume it.
    It works OK for a single method invocation in this webservice, but I need to maintain a HTTP session between more than one invocation to this webservice. How I can configure a Webservice External resource to maintain HTTP session between methods invocations?

    The option that you mentioned is just for WebServices that needs HTTP Authentication.
    Is not my case.
    http://twitpic.com/i2f3h
    Image: !http://web7.twitpic.com/img/30345965-80ad8fb7ebd3282957694547d6e3cda0.4ab27651-full.gif!

  • Maintaining different sessions in browser tabs in ADF 11g application

    I have a simple ADF 11g application which uses ADF BC 11g.
    I want to maintain different sessions between the tabs in the same browser.
    Currently it is messing up with session variables. Please reply to me ASAP.
    Thanks,
    Bobby
    Edited by: 866444 on Jun 16, 2011 11:35 AM

    Assuming you are having problems because of the usage of JSF Session scope beans, then the answer is to use pageFlowScope for that set of data - then it is not shared between tabs.

  • Receiving error during partner link invoke

    Hi Guys,
    I am trying to call a partner link using Bpel 10.1.3.3 in a weblogic app server and I am receiving the following error on bpel console:
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: unexpected null</summary>
    Any clue what can be happening ?
    Tks in advance
    Edited by: user11222809 on 17/08/2009 11:21

    Tks for ur reply.
    Is a syncronous process and there is no patch applied in this case.
    We are trying to perform a simple business scenario, is a invoke to a java webservices, no adapter service.
    Follows below the whole message (sorry some of the elements were wrote in portuguese):
    <messages><input><AutenticarUsuarioExternoFSGue_autenticarUsuarioExterno_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="request"><AutenticarUsuarioExternoRequest xmlns="http://www.claro.com.br/EBS/Claro/v1">
    <usuario>
    <usuario-id xmlns:ns2="http://www.claro.com.br/EBO/Claro/v1" xmlns="http://www.claro.com.br/EBO/Claro/v1">1191680138</usuario-id>
    <nome xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <apelido xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <tipo xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <sub-tipo xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <data-efetivacao xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <data-expiracao xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <data-inicio-bloqueio xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <data-termino-bloqueio xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <situacao xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <situacao-senha xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <senha xmlns:ns3="http://www.claro.com.br/EBO/Claro/v1" xmlns="http://www.claro.com.br/EBO/Claro/v1">121382</senha>
    <data-expiracao-senha xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <data-ultima-alteracao-senha xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <dados-cadastrais-pf xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <dados-cadastrais-pj xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <perfis xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <localidades xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <setor-atividade xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <grupo-vendedor xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <cargo xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <estado xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <resumo-acesso xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <historico-autenticacao xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    </usuario>
    <meta-informacao>
    <transacao-id xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <codigo-aplicacao-origem xmlns:ns5="http://www.claro.com.br/EBO/Claro/v1" xmlns="http://www.claro.com.br/EBO/Claro/v1">?</codigo-aplicacao-origem>
    <codigo-operacao-origem xmlns:ns6="http://www.claro.com.br/EBO/Claro/v1" xmlns="http://www.claro.com.br/EBO/Claro/v1">?</codigo-operacao-origem>
    <correlacao-id-origem xmlns:ns7="http://www.claro.com.br/EBO/Claro/v1" xmlns="http://www.claro.com.br/EBO/Claro/v1">?</correlacao-id-origem>
    <endereco-aplicacao-origem xmlns:ns8="http://www.claro.com.br/EBO/Claro/v1" xmlns="http://www.claro.com.br/EBO/Claro/v1">?</endereco-aplicacao-origem>
    <usuario-id-origem xmlns:ns9="http://www.claro.com.br/EBO/Claro/v1" xmlns="http://www.claro.com.br/EBO/Claro/v1">?</usuario-id-origem>
    <data-hora-origem xmlns="http://www.claro.com.br/EBO/Claro/v1"/>
    <canal-id-origem xmlns:ns11="http://www.claro.com.br/EBO/Claro/v1" xmlns="http://www.claro.com.br/EBO/Claro/v1">?</canal-id-origem>
    </meta-informacao>
    </AutenticarUsuarioExternoRequest>
    </part></AutenticarUsuarioExternoFSGue_autenticarUsuarioExterno_InputVariable></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: unexpected null</summary>
    </part></remoteFault></fault></messages>
    Thanks a million !

  • Session between multiple Webservice calls from PI7.0

    Hello XI SDNers,
    I am unable to overcome my Webservice session problem using SOAP (Axis) adapter. My scenario is as follows:
    I am calling a external Webservice deployed in Axis webservice engine from PI7.0, during my first call:  I call synchronous "Login" webservice and I became the response "User is Logged in"
    during my second synchronous call "GetItem", the webservice returns "The user doesn't have valid session". The two synchronous calls are executed from same scenario one after another!
    I lost my session after the "Login". Is there any way in PI 7.0 to maintain the session?
    Note: I tried the same scenario using XML SPY SOAP client, it is working!!!  it is maintaining the session between multiple webservice calls.
    Is there any suggestions to overcome this problem?
    Thanks and regards,
    Satish.

    Hi Satish,
       We are working on the same sort of scenarios, where we have to call more than one webservice in a sequential fashion using the same session id details.
        What we did was we built new xsds adding session details node using the webserive request and response xsds. And we are maintaining a sessions table which contains session id and  status fields in PI. So we send webservice request with the session id details. We wrote an UDF to get the session details from PI and set the status field as busy so that no other request uses the same session details.
       Webserive response again contains the sessions details which can be used for the next webservice request.
      Finally after all the calls set back the status to Active in PI table.
    Webservice Calls From a User Defined Function
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    Hope this helps.
    Thanks,
    Vijaya.

  • Generating dynamic Attachments between bpel process activities

    Dear Experts,
    Please suggest me that how to handle dynamic attachments in BPEL process with JDeveloper.
    The requirement was need to send an attachment between activities in same BPEL process
    and not sending an attachment through mail.
    For Instance consider a scenario "Need to issue an appointment order(Activity3) for the candidate if he successfully completed his assigned task(Activity1) and selected(Activity2)".
    Thanks ,
    Rajesh
    Edited by: Rajesh A on Mar 9, 2009 11:30 AM

    Hi Rajesh,
    That's a nice requirement without using the Notification services to send the attachments.
    However, this can be achieved using the workflow service tasks as mentioned in : http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/workflow.htm#BABCAIEF
    Using this you can assign, play with attachments via tasks. Hope this helps to some extent!
    Regards
    Anirudh Pucha

Maybe you are looking for

  • Can I download a DV tape to Premier Elements without a firewire connection?

    I recently purchased a new HD camcorder as well as Premier Elements 10.  One of the tasks that I'd like to accomplish via Premier Elements is to download my old DV tapes to my hard drive, which the software seems to support.  The instruction manuals

  • Why use Oracle 8.1.5 for Linux?

    Dear, If it is really pain in the ass to install Oracle on Linux, why use it? I have spent more than 4 full days (more than what I excepted) to try to install Oracle on a Linux box. I guess I will go for mySQL since I can just install the RPM package

  • Message Mapping IDoc-segment

    Hello, In my scenario I will do the following mapping with an source structure to an ORDERS05 Idoc: file structure: #E1EDP01|10|33|ST #E1EDP20|33|20050823 inbound message: <?xml version="1.0" encoding="utf-8" ?> <ns:MT_ORDERS_OUT xmlns:ns="http:/ /OR

  • Since Upgrade,Doesn't Save Library, Startup & Sync Probs, Bought Stuff Lost

    After Upgrading to v9(.0.1): http://myitunesproblems.1701.be/ Not only do I have iTunes startup problems, iTunes cannot save it's library anymore. Most of the time iTunes is "missing required files" and when it starts up, it has to do a lot of stuff

  • Need info relevant to marketing / Campaigns SHOW Hierarchy button

    Hi All, When we click the SHOW HIERARCHY BUTTON in Marketing or Campaign in WEB UI, I need the BAPI or CLASS by which we get those displaying values in Hierarchy VIEW... Please help me, thanking you. Regards, VjmHyd