Chunk read in FTP adapter

Hi,
I am working on JDev 11.1.1.3. I am using ftp adapter and im trying to use chuck read feature. On invoking the web service im facing the following error.
Is any jars needs to be added for making this functionality to work in ftp adatper.
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.ftp.outbound.ChunkedInteractionSpec due to: Missing class: oracle.tip.adapter.ftp.outbound.ChunkedInteractionSpec Dependent class: oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAInteractionInvoker Loader: sun.misc.Launcher$AppClassLoader@339120262 Code-Source: /home/oracle/Oracle/Middleware/Oracle_SOA1/soa/modules/oracle.soa.adapter_11.1.1/adapter.jar
Thanks,
Arun

Hi,
Below is my .jca file
<adapter-config name="FTP_SRD_OUT_CSV" adapter="Ftp Adapter" wsdlLocation="FTP_SRD_OUT_CSV.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/Ftp/secure_TextFileImport" adapterRef=""/>
<endpoint-interaction portType="GetDataImportCSV_ptt" operation="GetDataImportCSV">
<interaction-spec className="oracle.tip.adapter.ftp.outbound.ChunkedInteractionSpec">
<property name="PhysicalDirectory" value="/DataImport/IN/"/>
<property name="PhysicalArchiveDirectory" value="/DataImport/Archive/"/>
<property name="DeleteFile" value="true"/>
<property name="FileName" value="dummy.txt"/>
<property name="ChunkSize" value="1"/>
</interaction-spec>
</endpoint-interaction>
</adapter-config>
Thanks,

Similar Messages

  • Using ModificationTimeFormat in FTP adapter fails

    Hi all,
    I'm trying to use the minimum age for files read via FTP adapter. Logging into the FTP server and doing a 'ls -l' yields
    150 Opening ASCII mode data connection for /bin/ls.
    -rwxrwxrwx 1 owner group 3799676 Jun 26 15:24 big.xml
    226 Transfer complete.
    ftp: 136 bytes received in 0.02Seconds 8.50Kbytes/sec.
    from which I deduct the format string "46,57,MMM dd HH:mm".
    Now this fails with the following message in log.xml:
    <MSG_TEXT>JCA: ORABPEL-11430
    Error in listing files in the remote directory.
    Unable to list file in remote directory.
    Any ideas on how I can find more details on the cause ?

    Hi Diego,
    Enable FINEST logging on the esb.server.service.impl.inadapter logger.
    This will provide you with the date/time string the adapter is using the run your format string against.
    You will see an entry in there along the lines of
    JCA: MDTM command returned : 213 20080715005008
    Most likely your format string should be "4,18,yyyyMMddHHmmSS"
    Validate that it is infact correct, and modify accodingly.
    Cheers,
    Goran

  • Request/Reply in FTP Adapter

    Hi,
    I have to implement the Req/Reply paradigm with an FTP Adapter and DB Adapter. A file is created which is read by FTP adapter and a synchronous reply is required in the same file e.g the file will contain XML for customer number; in response in requires Customer Name is the same file.
    I am using Procedure in iStudio but how can I direct the reply to the same file with the same name with which it is originally created in the upload directory.
    In a nut shell, what is the best way to model req/reply in File and DB Adapter.
    Thanks
    M jahangir

    Hi All
    The request-reply pattern is working with queues and topics, but not with topic and queue. The issue is with this:
    <adapter-config name="RemoteOSBJMSService" adapter="JMS Adapter"
    wsdlLocation="RemoteOSBJMSService.wsdl"
    xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/JMS/RequestReplyTopic"
    UIJmsProvider="WLSJMS" UiOperationMode="Asynchronous"
    UIConnectionName="chdsez147855d"/>
    <endpoint-activation portType="Reply_ptt" operation="Reply"
    UITransmissionPrimitive="Request-response">
    <activation-spec className="oracle.tip.adapter.jms.inbound.JmsConsumeActivationSpec">
    <property name="PayloadType" value="TextMessage"/>
    <property name="UseMessageListener" value="false"/>
    <property name="DestinationName" value="jms.soa.local.response.q"/>
    </activation-spec>
    </endpoint-activation>
    <endpoint-interaction portType="Request_ptt" operation="Request"
    UITransmissionPrimitive="Request-response">
    <interaction-spec className="oracle.tip.adapter.jms.outbound.JmsProduceInteractionSpec">
    <property name="TimeToLive" value="0"/>
    <property name="PayloadType" value="TextMessage"/>
    <property name="DeliveryMode" value="Persistent"/>
    <property name="DestinationName" value="jms.soa.local.request.topic"/>
    </interaction-spec>
    </endpoint-interaction>
    </adapter-config>
    The connection factory "eis/JMS/RequestReplyTopic" can either hold isTopic as false or true. If i set it to false, it doesnt even let me enqueue and if i set it to true. The reply doesnt arrive.
    Please help!

  • How to read files sequentially from FTP adapter

    Hi,
    My requirement is to read files sequentially based on file name from the FTP server using a ftp adapter in ESB.
    for example the if the file names are
    1001.dat
    1000.dat
    1002.dat
    then it should read the files in in the order 1000.dat , 1001.dat and 1002.dat
    Could you please help me out in this.

    did u fid any possibilities for this i too have a same requirement if you had foud it can you please help me

  • Reading .jpeg files in FILE or FTP adapter

    Hii
    I have to send .jpeg files at regular intervals using BPEL.
    I read about Base64 data type. I tried to create File Adapter and FTP adapter. I specified the folder location and *.jpeg as file pattern. I have made schema to opaque.
    But neither File or FTP adatper are picking up the file from specified directory. As per my plan, once I will get Opaque schema in BPEL, I will use Base64 encoding to get the data as string and to pass it to the endpoints.
    Any idea what I need to do in order to read .jpeg files.
    Any help is highly appreciated.

    Thanks for the help. Actually, I am following the similar process as given in "Tutorial 11 : File DB Integrations – Handling of opaque data types".
    I'm using SOA Suite 10.1.3.3; the .jpeg file is being picked up by the File Adapter, but failing to create BPEL instance with the following log details :
    +"<2009-03-06 17:02:13,053> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": [com.collaxa.cube.engine.delivery.CorrelationResolutionException: Correlation definition not registered.+
    +The correlation set definition for operation "ReadJPEGOp", process "SyncBase64BPELProcess", has not been registered with the process domain.+
    +Please try to redeploy your process to the process domain.+
    +]+
    +ORABPEL-03802+
    +Correlation definition not registered.+
    +The correlation set definition for operation "ReadJPEGOp", process "SyncBase64BPELProcess", has not been registered with the process domain.+
    +Please try to redeploy your process to the process domain."+
    I have deployed the process multiple times on two different SOA Suite Server 10133, but getting the similar logs. The file is being picked up but not generating BPEL instance.
    Any idea ???

  • Problem while reading multiple files through FTP Adapter

    Hi,
    We have a requirement to read the excel files placed in an FTP Location and as there is no Adapter to read Excel file
    we are using FTP Adapter and reading the Header values of the file(name of the
    file) and we are paasing as input to the Java code which will read the data nd insert into the Database.
    If we place above 20 files it was reading only some files and some were left and if we delete the files and place the unread files again some files are read and if we do the same procedure then all the files were read.
    Any help regaring this appreciated.
    Thanks and Regards,
    Nagaraju .D

    Are you doing anything complex for your polling, e.g. Files that must be n time old.
    Can you post the WSDL so I can see the polling configuration. I only need to see the adapter configuration, not the whole file.
    cheers
    James

  • How to read the whole text file lines using FTP adapter

    Hi all,
    How to read the whole text file lines when error occured middle of the text file reading.
    after it is not reading the remaining lines . how to read the whole text file using FTP adapter
    pls can you help me

    Yes there is you need to use the uniqueMessageSeparator property. Have a look at the following link for its implementation.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CIACDAAC
    cheers
    James

  • FTP Adapter  Sync Read in SOA Suite cluster  giving issues

    Hello All ,
    I am trying to use a FTP Adapter in sync read mode in bpel in clustered environment.
    FTP Adapter has to sync read a file from a remote unix server. And during this the error that comes is file not found.
    ORABPEL-11007
    No Data to process.
    File /o31364629.pdf to be processed was not found or not available or has no content
    Whereas FILE IS THERE IN THE DIRECTORY.
    This issue is coming intermittent . I do have some successful BPEL instances coming up.
    But majorly its failing.
    Now turnign the logs in DEBUG mode said its trying to create some temp file which is unable.
    Caused by: ORABPEL-11440
    Error in writing temp file after getting content.
    Error in writing temp file after getting content for file: o31364629.pdf
    Please ensure 1. the local filesystem has write permission 2. local file system is not full.
    Please see below full log.
    <2009-12-16 10:47:30,970> <INFO> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTPInteraction Created
    <2009-12-16 10:47:30,971> <DEBUG> <LiebertServices.collaxa.cube.ws> <AdapterFramework::Outbound> file:/apps/erikap1/aerikap1/erikap1_SoaSuite/bpel/domains/LiebertServices/tmp/.bpel_Test_FTP_1.0_c904a18cefb4038ec3b754d37b34d2d1.tmp/New_FTP_adap.wsdl [ SynchRead_ptt::SynchRead(Empty,opaque) ] - Starting JCA LocalTransaction
    <2009-12-16 10:47:30,971> <DEBUG> <LiebertServices.collaxa.cube.ws> <AdapterFramework::Outbound> file:/apps/erikap1/aerikap1/erikap1_SoaSuite/bpel/domains/LiebertServices/tmp/.bpel_Test_FTP_1.0_c904a18cefb4038ec3b754d37b34d2d1.tmp/New_FTP_adap.wsdl [ SynchRead_ptt::SynchRead(Empty,opaque) ] - Invoking JCA Outbound Interaction
    <2009-12-16 10:47:30,971> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP outbound adapter interaction invoked : oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec@17b7cfb
    <2009-12-16 10:47:30,971> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FileInteraction::PROPS ====>{}
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Considering header for filename, output filename from header: o31364629.pdf
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Not Considering header for directory as it is blank
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Agent Determined
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTPSource::Local Temp Directory is /ftpdata/elshap1/reach/fileftp/temp_ftp/localhost_LiebertServices_Test_FTP~1.0_/outbound
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Host: dianadb.emrsn.com
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Post: 21
    <2009-12-16 10:47:30,973> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Username: elsha_p
    <2009-12-16 10:47:30,973> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Keep Connections: true
    <2009-12-16 10:47:30,973> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP outbound adapter read file interaction invoked.
    <2009-12-16 10:47:30,973> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Outbound File Adapter received request to read file with parameters: { Directory=, FileName=o31364629.pdf, DeleteFile=false}, headers=[_directory=[], _filename=[o31364629.pdf], _props=[{}]]
    <2009-12-16 10:47:30,974> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Creating Temp File iwCmE1Jr7hUYMdXRISl0OA== Local Path: /ftpdata/elshap1/reach/fileftp/temp_ftp/localhost_LiebertServices_Test_FTP~1.0_/outbound Remote Dir:
    <2009-12-16 10:47:30,976> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Calling getContentsAsStream() on FTPAgent: dianadb.emrsn.com: type = FTP, host = dianadb.emrsn.com:21, username = elsha_p
    directory = null, mode = STREAM, fileType = ASCII, maxRetries = 0 Localfile: o31364629.pdf Path: /ftpdata/elshap1/reach/fileftp/temp_ftp/localhost_LiebertServices_Test_FTP~1.0_/outbound/iwCmE1Jr7hUYMdXRISl0OA== Remote Dir:_
    <2009-12-16 10:47:30,982> <ERROR> <LiebertServices.collaxa.cube.ws> <AdapterFramework::Outbound> file:/apps/erikap1/aerikap1/erikap1_SoaSuite/bpel/domains/LiebertServices/tmp/.bpel_Test_FTP_1.0_c904a18cefb4038ec3b754d37b34d2d1.tmp/New_FTP_adap.wsdl [ SynchRead_ptt::SynchRead(Empty,opaque) ] - Could not invoke operation 'SynchRead' against the 'FTP Adapter' due to:
    ORABPEL-11007
    No Data to process.
    File /o31364629.pdf to be processed was not found or not available or has no content
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.adapter.file.outbound.FileReader.readFile(FileReader.java:253)
         at oracle.tip.adapter.file.outbound.FileReader.executeFileRead(FileReader.java:168)
         at oracle.tip.adapter.file.outbound.FileInteraction.executeFileRead(FileInteraction.java:248)
         at oracle.tip.adapter.ftp.outbound.FTPInteraction.execute(FTPInteraction.java:172)
         at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:486)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:479)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:528)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:285)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:829)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:412)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3714)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1657)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:220)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:317)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5787)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1089)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:589)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:421)
         at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:141)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: ORABPEL-11440
    Error in writing temp file after getting content.
    Error in writing temp file after getting content for file: o31364629.pdf
    Please ensure 1. the local filesystem has write permission 2. local file system is not full.
         at oracle.tip.adapter.ftp.inbound.FTPSource.getContents(FTPSource.java:883)
         at oracle.tip.adapter.ftp.inbound.FTPSource.getFileFromSource(FTPSource.java:799)
         at oracle.tip.adapter.file.outbound.FileReader.readFile(FileReader.java:250)
         ... 43 more
    I am using the setting for file adapter to avoid race condition in HA environment.
    Set oracle.tip.adapter.file.controldirpath=/ftpdata/elshap1/reach in pc.properties file
    This is shared folder accesible from both nodes & is given 777 full permission till the folder outbound where the temp fiel is getting created.
    Please let me know if you have any idea on this.
    This is a severe prodcution issue for us.
    thanks in advance.
    --Shivani                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Just want to highlight the below portion in the log listed.
    Caused by: ORABPEL-11440
    Error in writing temp file after getting content.
    Error in writing temp file after getting content for file: o31364629.pdf
    Please ensure 1. the local filesystem has write permission 2. local file system is not full.
         at oracle.tip.adapter.ftp.inbound.FTPSource.getContents(FTPSource.java:883)
         at oracle.tip.adapter.ftp.inbound.FTPSource.getFileFromSource(FTPSource.java:799)
         at oracle.tip.adapter.file.outbound.FileReader.readFile(FileReader.java:250)
         ... 43 more
    Thanks Shivani

  • FTP Adapter Read without Polling

    Hi,
    Can we use FTP Adapter to read the files without polling. My requirement is to read the file from a location only once at a specific time. So I don't want my starting BPEL process to be a Adapter which polls rather I want to internally invoke the Read process without specifying a specfic file name.
    The file name is not fixed and so I think Sync Read will not work.
    Can we achieve this?
    Thanks
    Sanjay

    Hi,
    Can we use FTP Adapter to read the files without polling. My requirement is to read the file from a location only once at a specific time. So I don't want my starting BPEL process to be a Adapter which polls rather I want to internally invoke the Read process without specifying a specfic file name.
    The file name is not fixed and so I think Sync Read will not work.
    Can we achieve this?
    Thanks
    Sanjay

  • FTP Adapter to read 2 files(eg: readme.txt & readme.dummy)

    How do I specify FTP Adapter to only pick readme.txt only if there is a dummy file readme.dummy (0 byte) is in the folder?

    That's not possible.

  • Can Scheduler be used in ORACLE SOA to trigger FTP Adapter read operation

    I need to create an ESB project where scheduler should trigger the File/FTP Adapter read operation.
    Where can I provide the time settings viz. (xx HR: yy MM: zz SS everyday)?
    Is it possible in Oracle SOA?
    Please provide any tutorial where scheduler has been used to invoke the File/FTP Adapter rather than invoking it real time (gets triggered the moment files are placed).
    Thanks

    You should the quartz timer within the SOA Suite to obtain this functionality.
    understanding configuration of Quartz and BPEL
    Marc
    http://orasoa.blogspot.com

  • ** FTP Adapter. Sync Read. setModificationTimeFormat property not defined *

    We are using SOA Suite 10.1.3.3 (BPEL and ESB)
    * Create an FTP adapter to a Windows FTP server
    * Perform a Sync Read operation
    * Do NOT select "Delete after successful retrieval" option so the file still remains on the FTP server after retrieval
    * Set the file modification time format property to "4,18,yyyyMMddHHmmSS".
    We get the following error:
    problem is oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec class complains about the setModificationTimeFormat property is not set.
    file:/u01/app/oracle/product/soadev1013/bpel/domains/default/tmp/.bpel_SecondaryPreAdviceMHEUploadController_1.0_3e65e9822b568772b35778ad17909eee.tmp/SecondaryPreAdviceUploadControlFileRead.wsdl [ SynchRead_ptt::SynchRead(Empty,lastRecord) ] - WSIF JCA Execute of operation 'SynchRead' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec due to: Error while setting JCA WSDL Property.
    Property setModificationTimeFormat is not defined for oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec
    Please verify the spelling of the property.
    ; nested exception is:
    ORABPEL-12532
    Error while setting JCA WSDL Property.
    Property setModificationTimeFormat is not defined for oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec
    Please verify the spelling of the property.
    ; nested exception is:
    org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec due to: Error while setting JCA WSDL Property.
    Property setModificationTimeFormat is not defined for oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec
    Please verify the spelling of the property.
    ; nested exception is:
    ORABPEL-12532
    Error while setting JCA WSDL Property.
    Property setModificationTimeFormat is not defined for oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec
    Please verify the spelling of the property.
    We have de-compiled the above interaction spec and sure enough the setModificationTimeFormat property does not exist within this class.
    It appears the FTP adapter does not support this.
    Is anyone able to provide some insight or confirm whether the FTP adapter supports this?
    Thanks in advance

    Remove
    FileModificationTime="FileSystem"
    ModificationTimeFormat="4,18,yyyyMMddHHmmSS"
    from FTP Adapter WSDL
    Regards
    Anirudh Pucha

  • FTP Adapter -- synchronous read -- native format

    You would think an FTP connection would be simple. While I have done a bunch of "puts" without difficulty; I can't get a sync read to work AT ALL.
    What the heck is wrong with this mess anyway? This should be simple.
    Here is my WSDL .. what is wrong here?
    <wsdl:definitions
         name="getRawFile"
         targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/caseList/caseList/getRawFile"
         xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
         xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/caseList/caseList/getRawFile"
         xmlns:imp1="http://TargetNamespace.com/getRawFile"
         xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
        >
      <plt:partnerLinkType name="SynchRead_plt" >
        <plt:role name="SynchRead_role" >
          <plt:portType name="tns:SynchRead_ptt" />
        </plt:role>
      </plt:partnerLinkType>
        <wsdl:types>
          <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/caseList/caseList/getRawFile"
                  xmlns="http://www.w3.org/2001/XMLSchema" >
            <import namespace="http://TargetNamespace.com/getRawFile" schemaLocation="xsd/F17QBA1_1.xsd" />
          <element name="empty"><complexType/></element>
          </schema>
        </wsdl:types>
        <wsdl:message name="Empty_msg">
            <wsdl:part name="Empty" element="tns:empty"/>
        </wsdl:message>
        <wsdl:message name="SynchRead_msg">
            <wsdl:part name="body" element="imp1:HUDCaseList"/>
        </wsdl:message>
        <wsdl:portType name="SynchRead_ptt">
            <wsdl:operation name="SynchRead">
                <wsdl:input message="tns:Empty_msg"/>
                <wsdl:output message="tns:SynchRead_msg"/>
            </wsdl:operation>
        </wsdl:portType>
    </wsdl:definitions>
    Here is my jca
    <adapter-config name="getRawFile" adapter="FTP Adapter" wsdlLocation="getRawFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
        <connection-factory location="eis/Ftp/FtpAdapterP011"/>
      <endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
        <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec">
          <property name="DeleteFile" value="true"/>
          <property name="PhysicalDirectory" value="/opt/oracle/work/domains/dev_total_vr_domain/TOTAL"/>
          <property name="FileName" value="F17QBA1"/>
          <property name="FileType" value="ascii"/>
        </interaction-spec>
      </endpoint-interaction>
    </adapter-config>

    The answer is -- PhysicalDirectory refers to the directory where you get the file, not where it is stored.

  • Error while reading files through FTP Adapter

    Hi,
    I am using FTP Adpater to read files and archive in local folders.
    But i got the following errors when i deployed the process:
    <2008-12-18 13:48:31,140> <INFO> <default.collaxa.cube.activation> <File Adapter
    ::Inbound> Connection Created
    <2008-12-18 13:48:31,390> <ERROR> <default.collaxa.cube.activation> <File Adapte
    r::Inbound> Unable to get Binary file '/MySharedFolders/abc/AAAA_TT_
    Trrrrplan Bireeee Baaaa? ??ketmmllri Ltd.?ti._4673651.pdf'; FTP command RETR returned unexpe
    cted reply code : 550
    <2008-12-18 13:48:44,156> <INFO> <default.collaxa.cube.activation> <File Adapter
    ::Inbound> Managed Connection Created
    <2008-12-18 13:48:44,156> <INFO> <default.collaxa.cube.activation> <File Adapter
    ::Inbound> Processer thread calling onFatalError with exception Error getting bi
    nary file from FTP Server.
    Unable to get binary file from server.
    Check the error stack and fix the cause of the error. Contact oracle support if
    error is not fixable.
    <2008-12-18 13:48:44,156> <FATAL> <default.collaxa.cube.activation> <AdapterFram
    ework::Inbound> [Get_ptt::Get(opaque)]Resource Adapter requested Process shutdow
    n!
    Please help me out on this issue.
    Thanks,
    Synthia

    Hi James,
    We have upgraded to 10.1.3.4. but still we could not read the file. the problem is, it could not read the file names contains with UTF-8 characters.
    error is below:
    <2009-12-01 15:43:33,109> <INFO> <default.collaxa.cube.activation> <FTP Adapter:
    :Inbound> Managed Connection Created
    <2009-12-01 15:43:33,109> <INFO> <default.collaxa.cube.activation> <FTP Adapter:
    :Inbound> Connection Created
    <2009-12-01 15:43:38,406> <ERROR> <default.collaxa.cube.activation> <FTP Adapter
    ::Inbound> Unable to get Binary file '/MySharedFolders/Invoice History/EMEA_TR_B
    imta?-Bo?aziτi Peysaz ?n?aat Mⁿ?avirlik Teknik Hizmetler A?aτ Sanayi ve Ticaret
    Anonim ?irketi_44596501.pdf'; FTP command RETR returned unexpected reply code :
    *550*
    <2009-12-01 15:43:51,156> <INFO> <default.collaxa.cube.activation> <FTP Adapter:
    :Inbound> Processer thread calling onFatalError with exception Error getting bin
    ary file from FTP Server.
    Unable to get binary file from server.
    Check the error stack and fix the cause of the error. Contact oracle support if
    error is not fixable.
    <2009-12-01 15:43:51,156> <FATAL> <default.collaxa.cube.activation> <AdapterFram
    ework::Inbound> [Get_ptt::Get(opaque)]*Resource Adapter requested Process shutdow*
    n!
    Thanks you.

  • FTP Adapter to read multiple files from a directory. Not through polling.

    Dear Friends,
    I would like to know is it possible to configure the FTP adapter in Oracle BPEL 10.1.3.4 to read multiple files (different names, same structure) from a given directory. I do not want the BPEL to do a polling. Instead when I submit the BPEL process it should read all files from the directory.
    I was looking at the option of Synchronous read but I am not able to specify wild card in the file name field. I do not know the file names at the time of reading.
    Thanks for your help!

    Hi,
    While you read the file, you can configure an adapter property in 'Receive'. This will store the filename, this filename can be used for sync read as the input parameter.
    1. Create a message type variable called 'fileheader'. This should be of type Inboundheader_msg (whatever relevant Receive activity).
    2. This variable will contain three parts - filename, FTPhost, FTPPort
    3. Copy this fileheader to 'Syncheader'.
    4. syncheader can be passed as an adapter proerty during sync read of the file.
    During Receive and Invoke, you need to navigate to 'Adapter' tab to choose the created message type variable.
    Let me know if you have further questions.
    regards,
    Rev

Maybe you are looking for

  • Some questions before purchasing a Time Machine

    I'm thinking about buying a Time Machine as opposed to buying an NAS Hard Drive and continuing with my wireless router (no problems with router, but the less devices the better). Currently I have a two year old 320gb USB hard drive on which I keep my

  • How to Acess a C fuction from Java Program

    Hi I want to write a 'C' PRogram which will recognize the newely connected USB port .Please Suggest me the header files required for the C Program. and Where they are. Then I have to Call the 'C' Function From a java Program. I want the Process for t

  • HELP - How do you install classic without erasing OS 10.4.8

    Please help....I just replaced my PowerBook G4 with a new MacBook and would like to pass the G4 down to my daughter. Most of the games that she uses are in classic from her old Imac. My G4 came with classic but I had to reinstall OSX a while ago and

  • 1st event in report ?

    what is the 1st event  triggered in report ? top-of-page or strat-of selection ?

  • Snow Leopard makes 3 burps-beeps

    My imac 10.6.8 Snow Leopard makes 3 burps-beeps while running (not at  start-up) Nothing goes wrong or happens, just makes the 3 weird noises  while sitting with a web site open. How do I stop this. Only happens  about 2 to 3 times a day when it does