<adapter-config name="readfile" adapter="File Adapter" wsdlLocation="readfile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata"> <connection-factory location="eis/FileAdapter" UIincludeWildcard="*.*"/> <endpoint-activation portType="Read_ptt" operation="Read"> <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec"> <property name="DeleteFile" value="true"/> <property name="MinimumAge" value="0"/> <property name="PhysicalDirectory" value="c:/tmp/in"/> <property name="Recursive" value="true"/> <property name="PollingFrequency" value="60"/> <property name="PhysicalArchiveDirectory" value="c:/tmp/archive"/> <property name="IncludeFiles" value=".*\..*"/> <property name="UseHeaders" value="false"/> </activation-spec> </endpoint-activation> </adapter-config>
and this the associated WSDL
<wsdl:definitions name="readfile" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/file/PVTests/OSBJCATests/readfile" xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/PVTests/OSBJCATests/readfile" xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/" xmlns:pc="http://xmlns.oracle.com/pcbpel/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" > <plt:partnerLinkType name="Read_plt" > <plt:role name="Read_role" > <plt:portType name="tns:Read_ptt" /> </plt:role> </plt:partnerLinkType> <wsdl:types> <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/" xmlns="http://www.w3.org/2001/XMLSchema" > <element name="opaqueElement" type="base64Binary" /> </schema> </wsdl:types> <wsdl:message name="Read_msg"> <wsdl:part name="opaque" element="opaque:opaqueElement"/> </wsdl:message> <wsdl:portType name="Read_ptt"> <wsdl:operation name="Read"> <wsdl:input message="tns:Read_msg"/> </wsdl:operation> </wsdl:portType> </wsdl:definitions>
import in OSB first the WSDL, then the JCA (the JCA depends on the WSDL)
The file adapter uses a javax.resource.cci.ConnectionFactory
The Adapter can be configured to support XA Transactions, Local Transactions or No transactions.
to be continued...
No comments:
Post a Comment