Using Coherence adapter in 11g OSB projects

Hi
I have a situation in which I have to get some properties from a file to be used later in the flow.When I am reading the file its a i/o process and consumes CPU cycle and causes delay.So I want to read the properties from the file for the first time and then cache my results in memory to be preserved for transaction that are going to happen at later point of time, so as to reduce delays.
I guess coherence adapter can help me out and can save me from java callout which can give similar caching functionalities.But my project is on 11g not 12c, so my question is can i use coherence adapter in my case, if so how to use it and if not is there any better way to attain this other than java callout.

Use the below approach to set the directory and file names dynamically.
In BPEL source mode, specify the bpelx:inputProperty. Set the values for these variables in bpel. These can also be accessed as bpel preference values.
<invoke>
<bpelx:inputProperty name="jca.ftp.SourceFileName" variable="SourceFileNameVar"/>
<bpelx:inputProperty name="jca.ftp.TargetFileName" variable="TargetFileNameVar"/>
</invoke>

Similar Messages

  • Partial Records insertion using DB Adapter - SOA 11g

    Hi,
    We have a BPEL process in which we are inserting records in a table using DB Adapter. Currently if the input data has any problem of data type miss-match then all the records are rejected. None of the records are inserted in the table. Whole batch is rejected.
    We have a new requirement that when there is problem is any record, then only that problematic record is rejected and rest of the records are inserted in the table. Is it possible to do so?
    Thanks,
    Sanjay

    In that case, its better to move the insert statement into procedure and do the insert and return value, if the insert statement is more then this will increase the performance time.
    How many rows you will insert at very worst case ? like 100 lines ?
    Thanks,
    Vijay

  • RENAME/COPY/DELETE a file using FTP Adapter in 11g using dynamic values

    Hi All
    We have a requirement to do the above for a client. I was able to find a post\blog that tells you to add the below properties in FTP adapter JCA file and it works but,
    <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPIoInteractionSpec">
    <property name="SourcePhysicalDirectory" value="foo1"/>
    <property name="SourceFileName" value="bar1"/>
    <property name="TargetIsRemote" value="false"/>
    <property name="TargetPhysicalDirectory" value="foo2"/>
    <property name="TargetFileName" value="bar2"/>
    <property name="Type" value="COPY"/>
    </interaction-spec>
    The problem is that how to assign these values dynamically (from xpath or bpel variables etc). Can somebody provide me with some pointers? Its very urgent!

    Use the below approach to set the directory and file names dynamically.
    In BPEL source mode, specify the bpelx:inputProperty. Set the values for these variables in bpel. These can also be accessed as bpel preference values.
    <invoke>
    <bpelx:inputProperty name="jca.ftp.SourceFileName" variable="SourceFileNameVar"/>
    <bpelx:inputProperty name="jca.ftp.TargetFileName" variable="TargetFileNameVar"/>
    </invoke>

  • Referencing Classpath's Jars form OSB Projects

    Hi all,
    We have found a behavior we cannot understand in the OSB. As we have assumed in the [Best Practices|http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/pojo.html] , if we are going to use a Jar inside an OSB project, we better use a small jar with the static methods and proxy the logic to the libraries placed in the classpath.
    Assume a project ProjectA with a library proxyLib.jar which references libA.jar and libB.jar placed in the server's lib folder.
    To use libA and libB from the proxyLib we have to first add them into the classpath, thus we assumed it is done editing the "Class Path" field placed in the "Server Start" tab from the WebLogic Server Console, but we wondered why it didn't work because when importing the project, a classnotfound error appeared for the project's library (proxyLib) which references the external libraries.
    We solved it editing manually the setDomainEnv.sh file, but we don't understand why it doesn't worked using the console.
    Our system is composed by one AdminServer and one Cluster with 2 Managed servers. The classpath modified by the console referenced the absolute path /...../domains/mydomain/lib/libA.jar and the setDomainEnv file edited is also placed in the ..mydomain/bin folder.
    Does anyone know the reason?
    Thank you in advance and best regards,
    rromero

    First of all, thanks for your answers.
    Anuj Dwivedi wrote:
    If you want to add a jar in server classpath then place it in directory $Domian_Home/lib and just restart the servers. Open the readme file inside same directory and you will find -
    The jars located in this directory will be picked up and added dynamically to the end of the server classpath at server startup. The jars will be ordered lexically in the classpath. The domain library directory is one mechanism that can be used for adding application libraries to the server classpath.
    It is possible to override the $DOMAIN_DIR/lib directory using the -Dweblogic.ext.dirs system property during startup. This property specifies a list of directories to pick up jars from and dynamically append to the end of the server classpath using java.io.File.pathSeparator as the delimiter between path entries.This is the most preffered way to add a jar in server classpath.
    Regards,
    AnujAs I said, at first instance, the libraries where already in the lib folder and didn't take any effect until I added manually to the setDomainEnv
    atheek1 wrote:
    Server Start" tab from the WebLogic Server Console,Whatever you configure in server start takes effect only if you use node manager to start that server . If you are not using node manager these settings wont have any impact.
    I also beg to differ with Anuj on putting jars in domain/lib, for some reasons i find in certain cases osb doesn't recognize these jars in domain/lib (both for java callouts and when using 3rd party jms providers ), so to be safe its better to put it explicitly in classpath,
    This thread discussed one strange problem with putting jars on domain/lib.
    http://forums.oracle.com/forums/thread.jspa?messageID=9173629&#9173629
    We are using nodemanagers with the managed servers, so that's why I expected the problem to be solved using the "Server Start" tab.
    Regards,
    rromero

  • Using DB Adapter for MS SQL Server 2005  SP in OSB 11g.

    Hi All,
    I have a requirement to create a DB Adapter for MS SQL Server Stored Procedure in JDeveloper and export the Adapter file to OSB 11g. I have Created the Adapter and imported it into OSB 11g successfully. Created the Datasource and Connection pool also in console.
    The problem is while trying to execute the created business Service, I am getting the error as below,
    <Oct 26, 2012 12:20:25 PM IST> <Error> <JCATransport> <BEA-381967> <Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/Test/CheckAppID/WL_Driver/CheckAppId_WL_Driver [ CheckAppId_WL_Driver_ptt::CheckAppId_WL_Driver(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'CheckAppId_WL_Driver' failed due to: Unimplemented string conversion.
    Conversion of JDBC type to String is not supported.
    An attempt was made to convert a Java object to String using an unsupported JDBC type: .
    ; nested exception is:
         BINDING.JCA-11804
    Unimplemented string conversion.
    My XSD is ,
    <element name="InputParameters">
    <complexType>
    <sequence>
    <element name="application_id" type="int" db:index="1" db:type="INT" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <element name="OutputParameters">
    <complexType>
    <sequence>
    <element name="RowSet0" type="db:RowSet0_RowSet" db:type="RowSet0" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    <element name="RowSet1" type="db:RowSet1_RowSet" db:type="RowSet1" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="RowSet1_RowSet">
    <sequence>
    <element name="RowSet1_Row" minOccurs="0" maxOccurs="unbounded">
    <complexType>
    <sequence>
    <element name="cde" type="int" db:type="INT" minOccurs="0" nillable="true"/>
    <element name="msg" db:type="NVARCHAR" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="255"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    <complexType name="RowSet0_RowSet">
    <sequence>
    <element name="RowSet0_Row" minOccurs="0" maxOccurs="unbounded">
    <complexType>
    <sequence>
    <element name="aaa" type="boolean" db:type="BIT" minOccurs="0" nillable="true"/>
    <element name="bbb" db:type="NVARCHAR" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="10"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    I don't know why there is a datatype conversion error.
    Help me in resolving this.
    Regards,
    Nataraj R.

    Hi,
    I believe NVARCHAR is an unsupported type...
    The following document lists the supported data types for SQL Server stored procedures and functions... NVARCHAR is not in the list... :-(
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#CHDEBEEE
    Hope this helps...
    Cheers,
    Vlad

  • How to access/use DVM deployed in EM in MDS from Eclipse for  a OSB project

    Hello all,
    I have already deployed some DVM lookup files in MDS(Meta Data Repository) and used in BPEL projects by providing a link in composite.XML in the Property tags according to this link "http://www.orafmwschool.com/soa-11g-mds/#comment-2373".
    Now i want to apply same concept for OSB projects by accessing those files from Ecclipse.The files will be there in EM MDS schema database.
    Please give me Ideas..Is it feasible??

    Hi,
    Make use of the below post.
    http://guidoschmutz.wordpress.com/2009/12/25/implement-domain-value-maps-dvm-with-oracle-service-bus-osb-10r3/
    Thanks,
    Vijay

  • How to define the OSB Configuration Project that an OSB Project uses?

    Hello,
    I'm using the Workshop bundled with "Oracle Service Bus 10gR1" (Oracle Workshop for WebLogic, Version: 10.3, Build id: 1137967).
    Where does one define the OSB Configuration Project that an OSB Project should use?
    I deleted an OSB Configuration Project. Now, all the OSB projects that were associated with it are in error stating "This project is not associated with an Oracle Service Bus Configuration". I created a new OSB configuration project so that I may re-associate the "orphan" projects with it. However, I can't seem to find a way to do that.

    You can create a new osb configuration project and drag the other osb projects on this projects.
    then i will link them to it. (make sure you use the oracle service bus perspective at the top right of the eclipse ide)

  • Using DB Adapter in obpm 11g

    Hi all,
    I am new to OBPM 11g. I am trying to migrate my 10g project to 11g. However, I am having difficulty in using DB adapters.
    there are few tables, from which I get different details and load the details. In 10g, I use around 4-5 queries to get the details for different attributes.
    I am not sure how to use this in OBPM 11g.
    If I am querying 5 different tables, should I use 5 different DB adapater services? Is this the right way? Is there a way to combine different queries? what is the best practice for such a situation?
    Kindly help
    thanks,
    Alice

    Hi Pavan,
    Thanks for the reply.
    Can you give me an example how I can do that?
    following is my scenario
    1) there are around 6 tables - I need to combine different queries and populate some objects
    1) select table 1 and 2 and get the details
    2) use the details obtained from previous query and get the list of values
    3) get the list of values from the previous step and sort them for specific product
    4) sort the resulted list and get details about the product using tables 5 and 6
    All the 6 tables might not have any relation with each other.
    if you can give me a sample it would be very helpful
    thanks,
    Alice

  • 11G BPEL Process using DB Adapter Polling Wont Create Instance

    I have a BPEL project that uses DB Adapter to Poll the database for changes. This process was developed in 10.1.3.3 and migrated to 11.1.1.2. I have successfully deployed this to the weblogic server, but it will not run. It is showing that is is up and it is in active mode, but it will not run. Any suggestions on this?
    Thanks
    Edited by: user2498952 on Mar 23, 2010 8:46 PM
    Edited by: user2498952 on Mar 23, 2010 8:57 PM

    The problem was on the OS side. The firewall was up after the installation and also it was not recognizing the database name. The OS team made the changes and it begin to run.....What happen to an easy migration....
    Edited by: user2498952 on Mar 24, 2010 5:10 PM

  • Service Accounts used in Different OSB Projects

    Hi,
    In the project I'm working on, we need to have a service account used by different OSB projects. We are using fn-bea:lookupBasicCredentials to lookup the service account. The problem is, the same service account may be under different paths in the different environments we have. Is there a way to use something like a relative path to refer to this service account so we don't have to worry about the environment our code is deployed?
    Thanks in advance

    Please refer -
    How to get ip number in WSDL instead of host name?
    Why do you want to have IP instead of host name?
    Regards,
    Anuj

  • DB adapter polling in OSB

    1. In a clustered environemnt, we need to use "Distributed polling" in DB adapter to make sure the multiple cluster instances are not polling for the database at the sametime. If "Distributed polling" can achieve that, what is the need to have singleton property set for the DB adapter in the composite.xml
    2. For achieving DB adapter polling in osb, we need to create the adapter in bpel and then export them to osb project. In such OSB project, where do we set the singleton property ?

    Thanka Ananth.
    I assume active-passive cluster setup means,
    there will be a cluster with only one osb or bpel managed server (active cluster)
    There wil be another cluster with only one osb or bpel managed server (passive cluster).
    so when there is some data inserted into the database, there will be only one managed server (available on active cluster) will be available to poll for the recored. Passive man server does not poll for this record. I assume this is the default behaviour. If such is the case, then what is the use of setting this singleton property ?

  • File Adapter debatching in OSB

    Hi,
    I have to debatch a large XML file using File Adapter. I imported the JCA service into OSB project and the debatching works well. Now I need to find out if the current batch is the last batch read from the file? Is there some property etc to find this?
    Thanks for your help.
    Regards,
    sagol

    Thanks !
    I am now facing another problem:The flow is like this
    Proxy Service polls the data --->Business Service--->File
    My requirements are:
    1.convert this into csv--> For this I have created a MFL and used XQuery to map from the database xsd to the MFL
    2.Updated the BS to use MFL.(A small doubt:Where do I specify that I file to be written is csv)
    3.Where do I specify the name of the file to be written
    4.In the proxy service I used routing to the BS.But I didnot apply the messaging constructs such as assign,insert etc ..But the csv file is not written by BS(actually I donot know the usage)
    Please let me know if I am missing any step!
    The error message it shows
    <Jun 17, 2009 7:37:19 PM IST> <Error> <JCATransport> <BEA-381951> <JCA inbound r
    equest only invocation failed, exception: java.security.PrivilegedActionExceptio
    n: com.bea.wli.sb.transports.TransportException: General runtime error: Failed t
    o transform MFL content from XML to binary
    java.security.PrivilegedActionException: com.bea.wli.sb.transports.TransportExce
    ption: General runtime error: Failed to transform MFL content from XML to binary
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:373)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.security.Security.runAs(Security.java:61)
    at com.bea.wli.sb.transports.jca.binding.JCAInboundRequestListener.sendM
    essage(JCAInboundRequestListener.java:156)
    at com.bea.wli.sb.transports.jca.binding.JCAInboundRequestListener.post(
    JCAInboundRequestListener.java:71)
    Truncated. see log file for complete stacktrace
    com.bea.wli.sb.transports.TransportException: General runtime error: Failed to t
    ransform MFL content from XML to binary
    at com.bea.wli.sb.transports.TransportException.newInstance(TransportExc
    eption.java:195)
    A lot of thanks!!!
    Regards
    Prabal
    Edited by: user123 on Jun 17, 2009 7:08 AM

  • My first osb project was stuck because version not matched

    Hi,
    I tried to follow the steps in Oracle service bus 11g development cookbook chapter 1.  I have created a very simple osb project and then tried to deploy it to weblogic server.  However, I got the following message:
    <Setting transaction '17' as rollback only. Rollback reason:
    java.lang.IllegalArgumentException: The jar that is being imported is an unsupported version of the product. The version was 11.1.1.7. Supported versions are: 10.3.0.0.dev2, 2.6.0, 3.0.dev2, 2.6.1, 3.0.dev1, 3.0.0, 3.0, 2.6.dev5, 10.3.0.0, 2.6, 2.6.dev4, 2.6.dev3, 2.6.dev2, 2.6.dev1, 11.1.1.2, 11.1.1.3, 11.1.1.6, 11.1.1.4, 11.1.1.5, 10.3.2.0.dev.1, 10.3.2.0.dev.2, 10.3.1.0, 10.3.2.0.dev.3, 3.2.dev1, 3.2.dev2, 11.1.1.2.dev.1, 11.1.1.2.dev.2,
      at com.bea.wli.config.importexport.ConfigJar$SerializedForm.<init>(ConfigJar.java:989)
      at com.bea.wli.config.task.impl.UploadJarTask._execute(UploadJarTask.java:47)
      at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:233)
      at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:217)
      at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:162)
      Truncated. see log file for complete stacktrace
    It seems to me that my project is finally creating a jar file that is incompatible. 
    How to solve it,
    Any idea?
    K.

    [oracle@soabpm-vm dev_soa_osb]$ java weblogic.version
    WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050
    Use 'weblogic.version -verbose' to get subsystem information
    Use 'weblogic.utils.Versions' to get version information for all modules
    Please see you can think of anything,
    K.

  • How to use Database Adapter in BPEL

    I want to use Database Adapter in BPEL to transfer data from one table to other table and the data is still hold in the read table?
    I can find a example from http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_db.htm#BDCIGDCB.
    And the general design of my BPEL is as following:
    1. Add a "status" column to the read table. And alter the value of status column of all data in read table to "unreaded".
    2. Then create a empty BPEL (BPELAdapter) Project.
    3. Add a Database Adapter:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to datain.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose "Poll for New or Changed Records in a Table".
    (4) Then click Import Tables button, and choose the read table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6 and 7.
    (7) In step 8, choose "Update a Field in the [Datain] Table (Logical Delete)".
    (8) In step 9, configure Logical Delete Field to STATUS, configure Read Value to readed and configure Unread Value to unreaded.
    (9) Don’t do anything in step 10 and 11.
    4. Add a receive activity to connect to above database adapter.
    5. Add another Database Adapter. Then configure this database adapter service WSDL:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to dataout.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose Perform an Operation on a Table (and all items under it).
    (4) Then click Import Tables button, and choose the write table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6, 7 and 8.
    6. Add a invoke activity to connect to above database adapter.
    7. Add a assign activity between the receive activity and invoke activity. And configure the assign copy operation.
    But after I deploy this BPEL project to the BPEL server and invoke this project, I get following error. Meanwhile, this BPEL don't take effect.
    The following exception occured while processing this request:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。
    How to resolve?
    Thanks,
    Melody

    Now, I can insert data into the table through Database Adapter.
    But still can't select data from the table through Database Adapter.
    Above error still happen when invoke the read database table with Database Adapter project:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。

  • How to create a new Oracle OSB project automaticaly with script without IDE

    Hello,
    I want to create automatically an "Oracle service bus project" and an "Oracle service bus configuration project" with scripts (ANT or Maven or ...) without using IDE, without using workshop or Eclipse. I want to create automatically (ANT or Maven) just a skeleton of an OSB project witch i can use after in workshop.
    I want to create 1 "Oracle service bus configuration project" with many "Oracle service bus project" automatically (ANT or Maven or scripts) witch i can use after in workshop. How to create a new Oracle OSB project automaticaly with script without IDE ? How can i do this ?
    I'm using Oracle service bus 10.3.1
    Thank you for your help.

    Thank you for your response,
    I do not want to just create the services (proxy services and business services) but I want to create a template for 40 OSB project with the same scripts ANT/Maven.
    Template="Oracle service bus configuration project" + "Oracle service bus project" + services of 40 OSB projects
    The goal is that I have more than 40 projects to create and just the name of the projects that changes (when I say the name of the project ie the name of the OSB project, the name of proxy services and the name of business services ).
    So I want to give my script (ANT/Maven) the name of 40 OSB project and the script must generate the skeleton of the 40 projects at once time and after generation of skeleton of the 40 project, I will import them in the workshop to add manually mapping and routing and other things that differs from one project to another.
    So i want to generate automatically a skeletons of 40 OSB projects using a script (ANT / Maven) and I give to the script juste the names of the 40 projects.
    I want to create a "Oracle service bus configuration project" and "Oracle service bus project" automatically of 40 OSB projects (ANT or Maven or scripts) witch i can use after in workshop.
    I want to create one 'template' of all 40 projects in the same time, with the same directory structure (Transforlation, Business services, proxy services, WSDL .....) and all 40 project have the same transport, just the names of projects and services witch changes and i can give to the script all names of projects and services and i can give also all WSDL.
    Regards,
    Tarik

Maybe you are looking for

  • IPhone to Aperture

    I am sitting here with my iPhone 4s attached to my MacBook Pro, trying to import 8 selected pics from a recent trip into a selected project in Aperture 3.5.1. When I attached the phone it automatically uploaded 49 pics. But I cannot find the in any A

  • Nested Group Problem

    SSRS 2008 R2 I have a reported with 2 nested groups. Top Level - Product Category Second Level - Warehouse When the report runs it should only show the Product Category groups. When the + is clicked next to Product Category it should show the Warehou

  • Windows 2000 connection problems (solved)

    I have a Windows 2000 box that was working fine with DSL and cable but when we moved and got FiOS, it didn't work.  It has a RealTek RTL 8139(a) PCI fast controller built in to the motherboard that is connected to the port of the back of the Westell

  • Elements 12 does not load my raw files from my D610

    Raw files not loaded from my D610 into Elements 12

  • Failing silently when trying to construct org.apache.soap.rpc.SOAPContext

    OK This is really weird. I have an app that runs fine in eclipse. I have deployed to using webstart but when I try to instantiate org.apache.soap.rpc.SOAPContext default constructor it fails. All my jars are signed and I have given all permissions in