adapter config steps

Upload: veeru-mudiraj

Post on 02-Apr-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 Adapter Config Steps

    1/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html

    Oracle

    Select Country/Region

    Select a Country/Region

    BrazilChinaJapanLatin AmericaRussia

    United States

    Select a Country/Region

    Africa OperationArgentinaAustraliasterreichBahrainBangladeshBelgium & LuxembourgBeliceBhutanBoliviaBosna i Hercegovina

    BrasilBruneiCambodiaCanada - EnglishCanada - FranaisChile

    ColombiaCosta RicaHrvatskaesk RepublikaDanmarkEcuador

    EgyptEestiSuomiFranceDeutschlandGuatemalaHonduras

    MagyarorszgIndiaIndonesiaIraqIrelandIsrael

    Italia

    Jordan

    KuwaitLaosLatvijaLebanonLietuvaMalaysiaMaldivesMaltaMxicoMoldova

    http://www.oracle.com/lad/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/lv/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/kr/index.htmlhttp://www.oracle.com/ru/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/it/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/hu/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/de/index.htmlhttp://www.oracle.com/fr/index.htmlhttp://www.oracle.com/ee/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/dk/index.htmlhttp://www.oracle.com/cz/index.htmlhttp://www.oracle.com/cy/index.htmlhttp://www.oracle.com/hr/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/ca-fr/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/bg/index.htmlhttp://www.oracle.com/br/index.htmlhttp://www.oracle.com/ba/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/au/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/technology/global/ru/index.htmlhttp://www.oracle.com/technology/global/lad-es/index.htmlhttp://www.oracle.com/technetwork/cn/index.htmlhttp://www.oracle.com/technology/global/lad-pt/index.htmlhttp://www.oracle.com/ru/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/mt/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/lt/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/lv/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/kr/index.htmlhttp://www.oracle.com/ru/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/jp/index.htmlhttp://www.oracle.com/it/index.htmlhttp://www.oracle.com/il/index.htmlhttp://www.oracle.com/ie/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/in/index.htmlhttp://www.oracle.com/hu/index.htmlhttp://www.oracle.com/hk/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/gr/index.htmlhttp://www.oracle.com/de/index.htmlhttp://www.oracle.com/fr/index.htmlhttp://www.oracle.com/fi/index.htmlhttp://www.oracle.com/ee/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/dk/index.htmlhttp://www.oracle.com/cz/index.htmlhttp://www.oracle.com/cy/index.htmlhttp://www.oracle.com/hr/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/cn/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/ca-fr/index.htmlhttp://www.oracle.com/ca-en/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/bg/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/br/index.htmlhttp://www.oracle.com/ba/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/be/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/at/index.htmlhttp://www.oracle.com/au/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/ao/index.htmlhttp://www.oracle.com/technetwork/index.htmlhttp://www.oracle.com/technology/global/ru/index.htmlhttp://www.oracle.com/technology/global/lad-es/index.htmlhttp://www.oracle.com/technetwork/jp/index.htmlhttp://www.oracle.com/technetwork/cn/index.htmlhttp://www.oracle.com/technology/global/lad-pt/index.htmlhttp://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html#otn-menu-countryselecthttp://www.oracle.com/
  • 7/27/2019 Adapter Config Steps

    2/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 2

    MongoliaNepalNederlandNew ZealandNicaraguaNorgeOmanPakistanPanamParaguayPerPhilippinesPolskaPortugalPuerto RicoQatarRomnia Saudi ArabiaSrbija i Crna GoraSingaporeSlovenskoSlovenijaSouth AfricaEspaaSri LankaSverigeSuiss e - FranaisSchweiz - Deutsch

    ThailandTrkiyeUnited Arab EmiratesUnited KingdomUnited StatesUruguayVenezuelaVietnamYemen

    Communities

    Social Applications

    Oracle BlogsOracle Discussion ForumsOracle WikiOracle on FacebookOracle on Google+Oracle on LinkedInOracle on TwitterOracle on YouTube

    Networks

    Oracle ACEsOracle PartnerNetworkOracle Technology NetworkOracle User Groups

    Support

    My Oracle Support CommunityI am a...

    Java DeveloperDatabase Adminis trator / DeveloperSystem Admin / Developer

    Architect

    C-Level Executive

    Chief Financial Officer

    http://www.oracle.com/us/c-central/cfo-solutions/http://www.oracle.com/technetwork/architect/index.htmlhttp://www.oracle.com/technetwork/systems/index.htmlhttp://www.oracle.com/technetwork/dbadev/index.htmlhttp://www.oracle.com/technetwork/java/index.htmlhttp://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html#menu-iamhttps://communities.oracle.com/portal/server.pt/community/support/219http://www.oracle.com/us/corporate/customers/oracle-users-groups-192206.htmlhttp://www.oracle.com/technetwork/index.htmlhttp://www.oracle.com/partners/index.htmlhttp://www.oracle.com/technetwork/community/oracle-ace/index.htmlhttp://www.youtube.com/oraclehttp://www.oracle.com/us/social-media/twitter/index.htmlhttp://www.oracle.com/us/social-media/linkedin/index.htmlhttps://plus.google.com/115607918987921226255http://www.oracle.com/us/social-media/facebook/index.htmlhttp://wiki.oracle.com/http://forums.oracle.com/forums/index.jspa?cat=1http://www.oracle.com/us/corporate/blogs/index.htmlhttp://www.oracle.com/us/community/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/us/index.htmlhttp://www.oracle.com/uk/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/ru/index.htmlhttp://www.oracle.com/tr/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/tw/index.htmlhttp://www.oracle.com/ch-de/index.htmlhttp://www.oracle.com/ch-fr/index.htmlhttp://www.oracle.com/se/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/es/index.htmlhttp://www.oracle.com/za/index.htmlhttp://www.oracle.com/si/index.htmlhttp://www.oracle.com/sk/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/yu/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/ru/index.htmlhttp://www.oracle.com/ro/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/pt/index.htmlhttp://www.oracle.com/pl/http://www.oracle.com/as/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/me/index.htmlhttp://www.oracle.com/no/index.htmlhttp://www.oracle.com/lad/index.htmlhttp://www.oracle.com/nz/index.htmlhttp://www.oracle.com/nl/index.htmlhttp://www.oracle.com/as/index.htmlhttp://www.oracle.com/mn
  • 7/27/2019 Adapter Config Steps

    3/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 3

    Chief Human Resources OfficerChief Information Officer

    Other Roles

    AnalystInvestorJob SeekerPartnerStudentMidsize Com pany

    I want to...

    Support

    Create or Update Service Reques tSearch Support Knowledge DatabaseDownload Patches

    Education

    Find Oracle University TrainingChoose an Oracle Certification Path

    Partner

    Find a Partner SolutionAccess Software and Technical SupportAttend a Partner-Only EventAttend TrainingDownload LogosManage Solutions Catalog

    Other Tasks

    Find an Event Near MePurchase Oracle Products OnlineBrowse Oracle DocumentationSearch Oracle DocumentationCheck Oracle EarningsCheck Oracle Price ListsDownload Oracle SoftwareFind an Oracle ACEView Oracle Benchmarks

    WelcomeAccountSign OutSign In/Register for AccountHelp

    Search Submit Search

    Products and Services

    Solutions

    Downloads

    Store

    Support

    http://www.oracle.com/us/support/index.htmlhttps://shop.oracle.com/http://www.oracle.com/technetwork/indexes/downloads/index.htmlhttp://www.oracle.com/us/solutions/index.htmlhttp://www.oracle.com/us/products/index.htmlhttp://www.oracle.com/us/corporate/contact/about-your-account-070507.htmlhttp://www.oracle.com/webapps/redirect/signon?nexturl=http://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.htmlhttps://myprofile.oracle.com/EndUser/faces/profile/sso/updateUser.jspx?tid=complete&showRegions=primaryAddress|shippingAddress|communities|newsletters&nextURL=http://www.oracle.com/us/solutions/performance-scalability/index.htmlhttp://apex.oracle.com/pls/otn/f?p=19297:3:2579654746979599http://www.oracle.com/technetwork/indexes/downloads/index.htmlhttp://www.oracle.com/us/corporate/pricing/index.htmlhttp://www.oracle.com/us/corporate/investor-relations/index.htmlhttp://www.oracle.com/pls/db92/db92.federated_searchhttp://www.oracle.com/technetwork/indexes/documentation/index.htmlhttps://shop.oracle.com/http://events.oracle.com/http://solutions.oracle.com/http://www.oracle.com/partners/secure/marketing/download-logos/index.htmlhttp://www.oracle.com/partners/en/most-popular-resources/enablement-028916.htmhttp://opnevents.oracle.com/http://www.oracle.com/partners/secure/development/order-technology-software/index.htmlhttp://solutions.oracle.com/http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=141http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=3https://support.oracle.com/epmos/faces/PatchHomehttps://support.oracle.com/epmos/faces/KmHomehttps://support.oracle.com/epmos/faces/SrHomehttp://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html#menu-iwanthttp://www.oracle.com/us/solutions/midsize/index.htmlhttps://academy.oracle.com/http://www.oracle.com/partners/index.htmlhttp://www.oracle.com/us/corporate/careers/index.htmlhttp://www.oracle.com/us/corporate/investor-relations/index.htmlhttp://www.oracle.com/us/corporate/analystrelations/index.htmlhttp://www.oracle.com/us/c-central/cio-solutions/http://www.oracle.com/us/c-central/chro-solutions/
  • 7/27/2019 Adapter Config Steps

    4/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 4

    EmbeddedBI & Data Warehousing.NETPHPNew to JavaCloud ComputingBig DataMac OS XRuby & Python

    SecurityEnterprise ArchitectureSocial EnterpriseService-Oriented

    ArchitectureVirtualization

    SOA Suite Essentials for WLI Users

    Comparison: WLI File Control and the Oracle File Adapter

    by Daniel Amadei and Heidi Buelow

    This installment of the SOA Suite Essentials for WLI Users series maps WebLogic Integration's file control capabilities to their

    equivalents in Oracle BPEL Process Manager.

    Published May 2009

    Downloads for this article:

    Oracle SOA Suite

    [ Page 1] [ Page 2] [ Page 3] [ Page 4]

    Receiving an XML, transforming to CSV and writing to a file using FTP in BPEL

    In this las t use case, we'll read a file and then write the data in a comm a separated value (csv) format. This time, we will show you how to pollfor the file in the directory (if you prefer, instead you can use the sam e method to read a file as in the first use case to align more closely withthe third WLI use case). We start the process by polling for the file and letting the read service initiate the BPEL process . We then write the fileusing the FTP adapter while als o formatting the data in the csv format.

    You must have an FTP Server configured to use with this project. To setup a local FTP, get the ftpserver-1.0.0-M3.zip file from the sample filesfolder and unzip into /tmp.

    Next, make sure you have the JAVA_HOME environment variable set to your local ins tallation of the Java JDK.

    To start the FTP server from a command prompt in Windows or shel l in Unix, go to the/tmp/ftpserver-1.0.0-M3/bin directory and run thefollowing command

    In Windows

    Training

    Partners

    About

    Oracle Technology Network

    Oracle Technology Network Topics Service-Oriented Architecture

    http://www.oracle.com/us/support/index.htmlhttp://www.oracle.com/technetwork/topics/index.htmlhttp://www.oracle.com/technetwork/index.htmlhttp://www.oracle.com/technetwork/index.htmlhttp://www.oracle.com/us/corporate/index.htmlhttp://www.oracle.com/partners/index.htmlhttp://education.oracle.com/http://www.oracle.com/us/support/index.htmlhttp://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-097148.htmlhttp://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-095512.htmlhttp://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-100684.htmlhttp://www.oracle.com/technetwork/middleware/soasuite/downloads/index.htmlhttp://www.oracle.com/technetwork/articles/soa/index-085039.htmlhttp://www.oracle.com/technetwork/articles/soa/index-085039.htmlhttp://www.oracle.com/technetwork/topics/virtualization/index.htmlhttp://www.oracle.com/technetwork/topics/soa/index.htmlhttp://www.oracle.com/technetwork/topics/ent20/index.htmlhttp://www.oracle.com/technetwork/topics/entarch/index.htmlhttp://www.oracle.com/technetwork/topics/security/index.htmlhttp://www.oracle.com/technetwork/topics/scripting-languages/index.htmlhttp://www.oracle.com/technetwork/topics/macos/index.htmlhttp://www.oracle.com/technetwork/topics/bigdata/index.htmlhttp://www.oracle.com/technetwork/topics/cloud/index.htmlhttp://www.oracle.com/technetwork/topics/newtojava/index.htmlhttp://www.oracle.com/technetwork/topics/php/index.htmlhttp://www.oracle.com/technetwork/topics/dotnet/index.htmlhttp://www.oracle.com/technetwork/topics/bi/index.htmlhttp://www.oracle.com/technetwork/topics/embedded/index.html
  • 7/27/2019 Adapter Config Steps

    5/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 5

    ftpd.bat res/conf/ftpd-typical.xml

    In Linux

    ftpd.sh res/conf/ftpd-typical.xml

    The SOA Suite server is already configured to use an FTP client to access an FTP server. Let's update that configuration for our new FTPserver. The s teps are sim ilar whether you are us ing OC4J or WebLogic s erver to update the connection factory.

    OC4J Server: Open the application server control at http://localhost:8888/em, replacing localhostwith the name of the server where youdeployed your service if it is not your local m achine. Login with the useroc4jadmin and password for your configuration. Select home->applications-> default-> FTP adapter-> Connection Factories-> eis/DB/FTPAdapter to update the properties for this configuration. For

    the host, enter the hostname or IP address of the machine where your FTP server is running (you can use localhos t if the SOA Suiteand your FTP server are on the same machine). Set the password field to admin and then go to page 2 and set the usernam e to admin.Select Apply.

    WebLogic Server: Open the server console at http://localhost:7001/console, replacing localhost:7001 with the name and port of yourWebLogic server if different. On the left navigation bar, select Deployments. Select FTPAdapter -> Configuration -> OutboundConnection Pools. Select the plus sign ( +) to the right ofjavax.resource.cci.ConnectionFactoryto expand it and see thateis/Ftp/FtpAdapteris listed. Select eis/Ftp/FtpAdapterto update the properties. For the host, enter the hostname or IP address of themachine where your FTP server is running (you can use localhostif the SOA Suite and your FTP server are on the same machine). Setthe password field to admin and set the username to admin. Select Save.

    Now let's create the new BPEL project. In JDeveloper, right-click on your application and s elect New Project. Select BPEL Process Projectunder General/Projects for the project type. EnterTransformXmlToRawDataAndWriteToFTPfor the process nam e. Select Empty BPEL Processfor the template type. Select Finish. The project is created.

    Drag a Receive activity to the Drop Activity Here box. The activity is highl ighted in yellow when it is in the right place. Wire the receive activity tothe readPartnerSchema partnerlink by dragging the left arrow to the partnerlink. The receive properties dialog opens . The partnerlink andoperation are filled in automatically. EnterReceive_Stocks for the name and select the Auto-Create Variable button. In the Create Variabledialog change the variable name to stocksXML, select OK. In the Receive dialog, check the Create Instance checkbox, select OK.

    Now create the service for writing the csv file. We are going to write the file using FTP.

    Drag an FTP adapter to the Services pane on the right side of the BPEL design screen. The wizard opens. Select Next to go to step 1. EnterFTPFileControlfor the service name and select Next.

  • 7/27/2019 Adapter Config Steps

    6/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 6

    On this page of the wizard you set the FTP JNDI name. This is the FTP configured in your SOA Suite server administration. Accept the defaultvalue ofeis/FTP/FTPAdapterto use the FTP setup you edited earlier.

    Select ASCII for the file type and Put for the operation type and select Next. Enter the directory to which you will write the file. In this case, it mus tbe a directory within the FTP server structure. Enter a forwared slash ( /) to write the file to the default location for the sample FTP Serverprovided. For the File Naming Convention, enterpartnerStocks%SEQ%.csv_. Leave the remaining values as defaulted and select Next.

  • 7/27/2019 Adapter Config Steps

    7/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 7

    Now let's set the output format. Select the button Define Schema For Native Format to start the native format builder wizard. In step 1, select theCreate new native format and Del imited radio buttons and select Next.

    Use the Browse button to open the sample stocks.csvfile provided in your sample files directory. You'll see the text in the window. Select Next.

    Select File contains m ultiple record instances and select Next.

  • 7/27/2019 Adapter Config Steps

    8/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 8

    Enter the namespace as des ired and enterStocks as the element name for multiple records and Stockfor the single record element nameand select Next.

    Select Next three more times to accept the defaults for the format specification and then select Finish.

  • 7/27/2019 Adapter Config Steps

    9/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 9

  • 7/27/2019 Adapter Config Steps

    10/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 10

    Back in the adapter wizard you see the newly created xsd that defines your string data. Select Next and then select Finish.

    Select OK on the partner link dialog.

  • 7/27/2019 Adapter Config Steps

    11/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 1

    Let's invoke our write service and create the variable needed with the correct message type. Then we'll transform the input data to the outputdata, and we are done.

    Drag an Invoke directly below the Receive. Wire it to the FTPFileControlpartnerlink and the Invoke dialog opens.

    Name the Invoke Invoke_FTPFileControland select the Automatically Create Input Variable button to the right of the Input Variable box.

    Change the variable nam e to stocksCSV. Select OK. Select OK to set the invoke properties.

  • 7/27/2019 Adapter Config Steps

    12/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 12

    Now we need to transform the data read from the file into the format required for input to the FTP service.

    Drag a Transform activity and drop it between the Receive and Invoke activities. Set the source to stocksXML and the target to stocksCSV. Enterthe transform file nam e and select Create

    This time, the field nam es are different and you must m anually wire each field. After wiring the three fields, wire Stocks to Stocks and the for-each XSLT construct is created for you, or add it manual ly so the resul t is as shown in the image below. Select Save All.

  • 7/27/2019 Adapter Config Steps

    13/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 13

    You are finished implem enting this us e case.

    Once you have confirmed that your FTP server is running you can deploy. This process polls for the file and just waits for the file to show up.The output file from the previous us e case,partnerStocks_1.xml, is the input file for this one, or you can use thepartnerStocks.xmlprovided inyour samples directory. Move or copy the file to the input directory for this process. Watch for the file to disappear and then check the FTPdefault output directory, \tmp\ftpserver-1.0.0-M3\res\home, for the new output file. View the contents of that file. You can als o view the audit trailin the BPEL Console.

    This us e case shows how to change the data in a file from one format to another. You can extend your BPEL process to operate on the data inother ways as desired.

    You have completed three use cases that show you various features of the file adapter functionality. As you can see, this functionality is quitesim ple to create using point/click declarative editing. You can read and write a file in various formats and transform the data within the BPELprocess as desired.

    Key Takeaways and Recommendations

    This article focused on synchronous file manipulation and data transformation in WLI and BPEL PM.

    The table below s tates what was demons trated during the article, highlighting how each feature is achieved in WLI and BPEL PM respectively.Both products provide the needed functionality.

    Feature How is it implemented in WLI?How is it implemented in

    BPEL?

    Synchronous File Reading File Control File Adapter

    Synchronous File Writing File Control File Adapter

    Asynchronous File Reading (Polling)Implemented through Event Generation (handled in adifferent article)

    File Adapter

    FTP Support File Control FTP Adapter

    Synchronous File Manipulation: copy, delete andrename

    File Control File Adapter

    XML Support Using XMLBeans native XML

    Formatted Content Support Using MFL File Adapter

    Experienced WLI users will find that all of the functionality they use in WLI for file handling is available in Oracle BPEL PM.

    Oracle BPEL Process Manager's des ign time provides a point-and-click declarative s tyle user interface allowing quick ramp up for new usersbringing them to the Oracle SOA Suite world quickly and easily.

    [Page 1] [ Page 2] [ Page 3] [ Page 4]

    About the Authors

    Daniel Amadei is a Senior Consul tant specializing in SOA and integration technologies. He has been working with SOAfor the last years and with Java technologies since 1999. Among other certifications, he is certified as a BEA CertifiedSOA Architect and Sun Certified Enterpris e Architect (SCEA)

    http://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-097148.htmlhttp://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-095512.htmlhttp://www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-100684.html
  • 7/27/2019 Adapter Config Steps

    14/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 14

    Heidi Buelow Heidi Buelow is a product manager with Oracle focusing on SOA technologies. She has been developing middlewarefor business process m anagement systems for more than ten years.

  • 7/27/2019 Adapter Config Steps

    15/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 15

  • 7/27/2019 Adapter Config Steps

    16/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    www.oracle.com/technetwork/topics/soa/wli-file-control-oracle-file-adapte-084380.html 16

    E-mail this page Printer View

    Oracle Cloud

    Learn About Oracle CloudGet a Free TrialLearn About PaaSLearn About SaaSLearn About IaaS

    Java

    Learn About JavaDownload Java for ConsumersDownload Java for Developers

    Java Res ources for DevelopersJava Cloud ServiceJava Magazine

    Customer and Ev ents

    Explore and Read Customer StoriesAll Oracle EventsOracle OpenWorldJavaOne

    Communities

    BlogsDiscussion Forums

    WikisOracle ACEsUser GroupsSocial Media Channels

    Services and Store

    Log In to My Oracle SupportTraining and CertificationBecome a PartnerFind a Partner SolutionPurchase from the Oracle Store

    Contact and Chat

    https://shop.oracle.com/http://www.oracle.com/us/partnerships/solutions-catalog/specialized-partners/index.htmlhttp://www.oracle.com/partners/en/join-now/index.htmlhttp://education.oracle.com/http://www.oracle.com/us/support/software/premier/my-oracle-support-068523.htmlhttp://www.oracle.com/us/social-media/twitter/index.htmlhttp://www.oracle.com/us/corporate/customers/oracle-users-groups-192206.htmlhttp://www.oracle.com/technetwork/community/oracle-ace/index.htmlhttps://wikis.oracle.com/http://forums.oracle.com/forums/index.jspa?cat=1http://www.oracle.com/us/corporate/blogs/index.htmlhttp://www.oracle.com/javaone/index.htmlhttp://www.oracle.com/openworld/index.htmlhttp://events.oracle.com/search/search?group=Events&keyword=http://www.oracle.com/us/corporate/customers/index.htmlhttp://www.oracle.com/technetwork/java/javamagazine/index.htmlhttps://cloud.oracle.com/mycloud/f?p=service:java:0http://www.oracle.com/technetwork/java/index.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/index.htmlhttp://java.com/downloadhttp://www.oracle.com/us/technologies/java/overview/index.htmlhttp://www.oracle.com/us/solutions/cloud/infrastructure/overview/index.htmlhttp://www.oracle.com/us/technologies/saas/overview/index.htmlhttp://www.oracle.com/us/solutions/cloud/platform/overview/index.htmlhttps://cloud.oracle.com/mycloud/f?p=service:free_trial:0http://www.oracle.com/us/solutions/cloud/overview/index.htmlhttp://mailpage%28%29/http://mailpage%28%29/
  • 7/27/2019 Adapter Config Steps

    17/17

    6/11/13 WLI File Control and the Oracle File Adapter (Page 4)

    Global ContactsOracle SupportPhone: 800-633-0738

    Hardware and Software, Enginee red to Work Together

    SubscribeCareersContact Us

    Site MapsLegal NoticesTerms of UsePrivacyCookie Preferences

    FacebookLinkedInTwitterGoogle+YouTubeOracle RSS Feed

    http://www.oracle.com/us/syndication/feeds/index.htmlhttp://www.youtube.com/oracle/https://plus.google.com/u/0/115607918987921226255http://www.oracle.com/us/social-media/twitter/index.htmlhttp://www.oracle.com/us/social-media/linkedin/index.htmlhttp://www.oracle.com/us/social-media/facebook/index.htmlhttp://www.oracle.com/us/corporate/mobile-application/index.htmlhttp://www.oracle.com/us/legal/privacy/index.htmlhttp://www.oracle.com/us/legal/terms/index.htmlhttp://www.oracle.com/us/legal/index.htmlhttp://www.oracle.com/us/sitemaps/index.htmlhttp://www.oracle.com/us/corporate/contact/index.htmlhttp://www.oracle.com/us/corporate/careers/index.htmlhttp://www.oracle.com/us/syndication/subscribe/index.htmlhttp://www.oracle.com/us/corporate/index.htmlhttp://www.oracle.com/us/support/contact/index.htmlhttp://www.oracle.com/us/corporate/contact/global-070511.html