SlideShare a Scribd company logo
1 of 2
Oracle SOA Dynamically set JCA properties for File Move/Delete/Copy
service.
Oracle SOA 11.1.1.5 Dynamically set JCA properties for File Move/Delete/Copy service.
This thread discusses how to dynamically set JCA properties for File Move/Delete/Copy
service. The service can then be used to MOVE, DELETE or COPY a file.
 Create a BPEL process.
 In the right Swim Lane (External References Swim Lane) configure a File Services
Adapter.
 Select Define from operation and schema (specified later), and click Next. The
Operation page is displayed.
 Select Synchronous Read File, enter FileMove in the Operation Name field, and then
click Next. The File Directories page is displayed.
 Alter the properties in the JCA file as follows
 <property name="SourcePhysicalDirectory" value="foo1"/>
 <property name="SourceFileName" value="bar1"/>
 <property name="TargetPhysicalDirectory" value="foo2"/>
 <property name="TargetFileName" value="bar2"/>
<property name="Type" value="MOVE"/>
 In the BPEL processa add the following variables.
<variable name="InvokeMoveOperation_FileMove_InputVariable"
messageType="ns1:Empty_msg"/>
<variable name="InvokeMoveOperation_FileMove_OutputVariable"
messageType="ns1:FileMove_msg"/>
<variable name="sourceDirectory" type="xsd:string"/>
<variable name="sourceFileName" type="xsd:string"/>
<variable name="targetDirectory" type="xsd:string"/>
<variable name="targetFileName" type="xsd:string"/>
 Create an Invoke activity for the JCA adapter.
<bpelx:inputProperty name="jca.file.SourceDirectory"
variable="sourceDirectory"/>
<bpelx:inputProperty name="jca.file.SourceFileName"
variable="sourceFileName"/>
<bpelx:inputProperty name="jca.file.TargetDirectory"
variable="targetDirectory"/>
<bpelx:inputProperty name="jca.file.TargetFileName"
variable="targetFileName"/>
 Create an Assign activity and copy the variables.
<copy>
<from expression="'/tmp/src'"/>
<to variable="sourceDirectory"/>
</copy>
<copy>
<from expression="'input1.txt'"/>
<to variable="sourceFileName"/>
</copy>
<copy>
<from expression="'/tmp/output'"/>
<to variable="targetDirectory"/>
</copy>
<copy>
<from expression="'output.txt'"/>
<to variable="targetFileName"/>
</copy>

More Related Content

Viewers also liked

エコツアー xワールドカフェ2012.07.13-14
エコツアー xワールドカフェ2012.07.13-14エコツアー xワールドカフェ2012.07.13-14
エコツアー xワールドカフェ2012.07.13-14
山崎ジョー吉
 
Xavie Sunny - Sales Executive
Xavie Sunny - Sales ExecutiveXavie Sunny - Sales Executive
Xavie Sunny - Sales Executive
Xavie Sunny
 

Viewers also liked (10)

Plant a Row for the Hungry - Master Gardeners, Fairbanks,Tanana Valley, Alaska
Plant a Row for the Hungry - Master Gardeners, Fairbanks,Tanana Valley, AlaskaPlant a Row for the Hungry - Master Gardeners, Fairbanks,Tanana Valley, Alaska
Plant a Row for the Hungry - Master Gardeners, Fairbanks,Tanana Valley, Alaska
 
X cip participation
X cip participationX cip participation
X cip participation
 
エコツアー xワールドカフェ2012.07.13-14
エコツアー xワールドカフェ2012.07.13-14エコツアー xワールドカフェ2012.07.13-14
エコツアー xワールドカフェ2012.07.13-14
 
XARXES - PAU GARCIA
XARXES - PAU GARCIAXARXES - PAU GARCIA
XARXES - PAU GARCIA
 
Xen Summit Asia2009 Gplhost Dtc Xen Zh
Xen Summit Asia2009 Gplhost Dtc Xen ZhXen Summit Asia2009 Gplhost Dtc Xen Zh
Xen Summit Asia2009 Gplhost Dtc Xen Zh
 
Xavie Sunny - Sales Executive
Xavie Sunny - Sales ExecutiveXavie Sunny - Sales Executive
Xavie Sunny - Sales Executive
 
Xarxes socials Grupo Epos
Xarxes socials Grupo Epos Xarxes socials Grupo Epos
Xarxes socials Grupo Epos
 
Xamarin Forms: one technology to rule them all - Matteo Pagani - Codemotion R...
Xamarin Forms: one technology to rule them all - Matteo Pagani - Codemotion R...Xamarin Forms: one technology to rule them all - Matteo Pagani - Codemotion R...
Xamarin Forms: one technology to rule them all - Matteo Pagani - Codemotion R...
 
Xay dung van hoa doanh nghiep
Xay dung van hoa doanh nghiepXay dung van hoa doanh nghiep
Xay dung van hoa doanh nghiep
 
Xbox - An IBP Analysis
Xbox - An IBP AnalysisXbox - An IBP Analysis
Xbox - An IBP Analysis
 

Similar to Xavier file adapter_filemoving

jpa-hibernate-presentation
jpa-hibernate-presentationjpa-hibernate-presentation
jpa-hibernate-presentation
John Slick
 
Datastage coursecontent
Datastage coursecontentDatastage coursecontent
Datastage coursecontent
Amit Sharma
 
Maa wp-10g-racprimaryracphysicalsta-131940
Maa wp-10g-racprimaryracphysicalsta-131940Maa wp-10g-racprimaryracphysicalsta-131940
Maa wp-10g-racprimaryracphysicalsta-131940
gopalchsamanta
 
Oaf development-guide
Oaf development-guideOaf development-guide
Oaf development-guide
俊 朱
 

Similar to Xavier file adapter_filemoving (20)

Liquibase - Open Source version control for your database
Liquibase - Open Source version control for your databaseLiquibase - Open Source version control for your database
Liquibase - Open Source version control for your database
 
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expr...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata  Expr...Oracle Database 12c Release 2 - New Features On Oracle Database Exadata  Expr...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expr...
 
jpa-hibernate-presentation
jpa-hibernate-presentationjpa-hibernate-presentation
jpa-hibernate-presentation
 
resource governor
resource governorresource governor
resource governor
 
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
 
Hibernate
HibernateHibernate
Hibernate
 
Datastage coursecontent
Datastage coursecontentDatastage coursecontent
Datastage coursecontent
 
Ibm data stage implementing etl solution using ibm datastage
Ibm data stage  implementing etl solution using ibm datastageIbm data stage  implementing etl solution using ibm datastage
Ibm data stage implementing etl solution using ibm datastage
 
Maa wp-10g-racprimaryracphysicalsta-131940
Maa wp-10g-racprimaryracphysicalsta-131940Maa wp-10g-racprimaryracphysicalsta-131940
Maa wp-10g-racprimaryracphysicalsta-131940
 
Data stage docx
Data stage docxData stage docx
Data stage docx
 
Datastage coursecontent
Datastage coursecontentDatastage coursecontent
Datastage coursecontent
 
Data stage
Data stageData stage
Data stage
 
XFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in thereXFILES, The APEX 4 version - The truth is in there
XFILES, The APEX 4 version - The truth is in there
 
Translation from csv to xml
Translation from csv to xmlTranslation from csv to xml
Translation from csv to xml
 
Boost Development With Java EE7 On EAP7 (Demitris Andreadis)
Boost Development With Java EE7 On EAP7 (Demitris Andreadis)Boost Development With Java EE7 On EAP7 (Demitris Andreadis)
Boost Development With Java EE7 On EAP7 (Demitris Andreadis)
 
Oaf development-guide
Oaf development-guideOaf development-guide
Oaf development-guide
 
Transformation csvtoxml
Transformation csvtoxmlTransformation csvtoxml
Transformation csvtoxml
 
Transformation csvtoxml
Transformation csvtoxmlTransformation csvtoxml
Transformation csvtoxml
 
Transformation from csv to xml
Transformation  from csv to xmlTransformation  from csv to xml
Transformation from csv to xml
 
Managing Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid ControlManaging Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid Control
 

More from XAVIERCONSULTANTS (20)

Bpmedn
BpmednBpmedn
Bpmedn
 
Xavier mds upload
Xavier mds uploadXavier mds upload
Xavier mds upload
 
Day2 xslt x_path_xquery
Day2 xslt x_path_xqueryDay2 xslt x_path_xquery
Day2 xslt x_path_xquery
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
 
Adavanced faulthandling
Adavanced faulthandlingAdavanced faulthandling
Adavanced faulthandling
 
SoaFAQS
SoaFAQSSoaFAQS
SoaFAQS
 
Xpath
Xpath Xpath
Xpath
 
Readme
ReadmeReadme
Readme
 
Bpminto
BpmintoBpminto
Bpminto
 
Bpm
BpmBpm
Bpm
 
Bpmnt-102-edn-integration
Bpmnt-102-edn-integrationBpmnt-102-edn-integration
Bpmnt-102-edn-integration
 
Soaosbcourse_content
Soaosbcourse_contentSoaosbcourse_content
Soaosbcourse_content
 
Oracle soa course_content
Oracle soa course_contentOracle soa course_content
Oracle soa course_content
 
EVENT DELIVERY
EVENT DELIVERY EVENT DELIVERY
EVENT DELIVERY
 
jms-integration
jms-integrationjms-integration
jms-integration
 
Bpelprocess-manager
Bpelprocess-managerBpelprocess-manager
Bpelprocess-manager
 
SOA web services concepts
SOA web services conceptsSOA web services concepts
SOA web services concepts
 
Bpel activities to upload club oracle
Bpel activities to upload club oracleBpel activities to upload club oracle
Bpel activities to upload club oracle
 
FiletodbAdapters
FiletodbAdaptersFiletodbAdapters
FiletodbAdapters
 

Xavier file adapter_filemoving

  • 1. Oracle SOA Dynamically set JCA properties for File Move/Delete/Copy service. Oracle SOA 11.1.1.5 Dynamically set JCA properties for File Move/Delete/Copy service. This thread discusses how to dynamically set JCA properties for File Move/Delete/Copy service. The service can then be used to MOVE, DELETE or COPY a file.  Create a BPEL process.  In the right Swim Lane (External References Swim Lane) configure a File Services Adapter.  Select Define from operation and schema (specified later), and click Next. The Operation page is displayed.  Select Synchronous Read File, enter FileMove in the Operation Name field, and then click Next. The File Directories page is displayed.  Alter the properties in the JCA file as follows  <property name="SourcePhysicalDirectory" value="foo1"/>  <property name="SourceFileName" value="bar1"/>  <property name="TargetPhysicalDirectory" value="foo2"/>  <property name="TargetFileName" value="bar2"/> <property name="Type" value="MOVE"/>  In the BPEL processa add the following variables. <variable name="InvokeMoveOperation_FileMove_InputVariable" messageType="ns1:Empty_msg"/> <variable name="InvokeMoveOperation_FileMove_OutputVariable" messageType="ns1:FileMove_msg"/> <variable name="sourceDirectory" type="xsd:string"/> <variable name="sourceFileName" type="xsd:string"/> <variable name="targetDirectory" type="xsd:string"/> <variable name="targetFileName" type="xsd:string"/>  Create an Invoke activity for the JCA adapter. <bpelx:inputProperty name="jca.file.SourceDirectory" variable="sourceDirectory"/> <bpelx:inputProperty name="jca.file.SourceFileName" variable="sourceFileName"/> <bpelx:inputProperty name="jca.file.TargetDirectory" variable="targetDirectory"/> <bpelx:inputProperty name="jca.file.TargetFileName" variable="targetFileName"/>  Create an Assign activity and copy the variables. <copy>
  • 2. <from expression="'/tmp/src'"/> <to variable="sourceDirectory"/> </copy> <copy> <from expression="'input1.txt'"/> <to variable="sourceFileName"/> </copy> <copy> <from expression="'/tmp/output'"/> <to variable="targetDirectory"/> </copy> <copy> <from expression="'output.txt'"/> <to variable="targetFileName"/> </copy>