Need  file adapter polling with read operation to be triggered by a BPEL without using synchronous read

The scenario is:-
Web Service Client -->input-->BPEL-->if input valid-->trigger file adapter with read operation--> receive file
i am not able to stop the polling until it is required to trigger the polling.
As soon as i deploy the composite the file adapter starts polling without waiting for input.
Since i am using two receive activities, the second one which is suppose to receive file from file adapter is always showing pending state. (asynchronous callback)

Hi there,
IMHO the traditional read is used only as inbound operation, that means
that it starts polling the input folder as soon as the composite gets
deployed - which is the same you are experiencing.
In your case you need an outbound operation that needs to be invoked at
a certain moment. I don't know what are the reasons not to use sync
read, but this is the only outbound read operation supported by the
adapter. If you can not use the sync read, then you would have to design
some custom solution where you call a web service or EJB for instance
that reads the desired files.
Another option I can think of, though have not use personally is using
the adapters programatically in Java - take a look at this blog post as
it seems related to this topic -
https://technology.amis.nl/2012/01/22/using-the-oracle-weblogic-technology-adapters-with-custom-java-message-driven-bean-mdb-triggered-by-file-adapter-part-of-the-story/.
Hope this helps,
A.

Similar Messages

  • How to configure File Adapter along with OS command option

    Hello,
    I want to configure a scenario using File Adapter with OS command option.
    How to use that option in channel configuration of File Adapter.
    What is the default path where it is actually runs this OS command?
    Thanks,
    Soorya

    >
    surya venkat wrote:
    > Hello,
    > I want to configure a scenario using File Adapter with OS command option.
    > How to use that option in channel configuration of File Adapter.
    There are two ways to use the Os command in the file adapter.
    Lets talk about the sender File Adapter.
    First: Run operative system Before Message Processing
    Whenever any operation needs to be performed uppon the source file Just before XI picks it up.
    e.g. Calculate any hash code, backup the file to a given location, create a log at os level, etc...
    ... After Message Processing
    After Xi has processed the message, you can trigger a new os level command:
    e.g. Trigger a mail, check if the archiving was successful, etc.
    > What is the default path where it is actually runs this OS command?
    >
    Theres no default path, you assign the desired path in the Comm Channel configuration.
    > Thanks,
    > Soorya
    I hope it helps.

  • File Adapter polls all the files from the directory when deployed again

    Hi,
    File Adapter polls all the files from the inbound directory irrespective of the timestamp when deployed again.
    For ex. when the BPEL process with file adapter is deployed, it starts polling the directory based on the timestamp as and when the directory is written with the files. I did not opt for deleting the files after read by the File Adapter.
    But, when BPEL process is modified and deployed again, this time, the file adapter picks up all the files in the inbound directory and doesn't consider the timestamp.
    My guess is that it should not pick all the files but based on timestamp only.
    I guess I can observe the same behavior if I bounce the Application Server also
    Do I have an option to achieve this?
    Thanks,
    Sasi Bhushan.

    try this:
    1- create a File object for the directory. (look at isDirectory() )
    2- create a File[] that represents the files in that directory. (.listFiles())
    3- if (file[x].isDirectory()) {recursive method call;}
    4- else {
    process file;
    If you want more help--do some work on it, and come back with specific questions relating to specific lines in your code and specific error messages you've been receiving.

  • Does acrobat has any option to read pdf content objects(stamps, layers, images etc) without using pl

    Does acrobat has any option to read pdf content objects(stamps, layers, images etc) without using plug-in in c#.net ?
    My requirement is read a pdf file and extract all the page objects(stampls, layers and images) along with its coordinates. Is it possible to get without using plug-ins in c#.net ?
    Please hlep me.

    These are very different things.
    JavaScript has some access to layers (called OCG). Layers are just names and have no coordinates to retrieve.
    Stamps may be annotations; there is some minimal access to these too I think. It may be hard to identify what is, and is not, a stamp even with a plug-in.
    Images are part of the actual page contents, and are only accessible to plug-ins.

  • I just downloaded Autocad to my downloads file, how do I take it from there to my Parallels Desktop without using "Windows Explorer"?

    I just downloaded Autocad to my downloads file, how do I take it from there to my Parallels Desktop without using "Windows Explorer"?

    Did you download it from Adobe or a pop up? If it was a pop up do not open it. Make sure you only get it directly from Adobe here:
    http://get.adobe.com/flashplayer/
    There is some malware that poses as Flash, in pop ups.
    Then do as macbig explained double click on the file,
    After you open and install the .dmg reboot your computer to complete the installation

  • Polling by file adapter (sender) with FIFO functionality

    Hi,
    here are one question:
    What happen if, for example, the sender system generates multiple files with the same timestamp (HH:MM:SS), or the file adapter on XI is stopped for a moment, and then, when activated, in the source directory (polling directory) there are many files? How can XI handle the correct sequence of messages? Is this impossible. How XI poll on a file (sender) - what is the logic? The files should be polled by FIFO.
    Thanks in advance.
    Regards
    Frank

    Hi,
    There is a logic called EOIO. Its exactly once in Order (EOIO). It takes care of all these iisues. Also XI gurantees the delivery of files.
    Refer these links
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Regards
    Aashish Sinha
    PS ; reward points if helpful

  • Problem with file adapter polling on Unix

    Hi everybody,
    I'm trying to run my BPEL process with receive activity of File adapter partner link. Everything is working OK on Windows file system - folder polling is set correctly and when the new file appears and is at least 2 minutes old, the process starts. But when I try to run the process on the UX server with BPEL (folders are changed to the correct values as '/home/myfolder', rights for this folder are set to RWX for everybody and process is deployed successfully to the appropriate domain) nothing is done when the new file appears in the folder.
    I really don't know, where is the problem. Any hint from you?
    Thanks,
    Milan K.

    Hi Suraj,
    From The Note ``
    "lock" option:- This is the option that is almost similar to the above; The key difference being in very rare circumstances, the first option may still allow channels to be run on both server nodes. When this option is set, file adapter acquires a enqueue service lock. Lock is taken on channel object and it is exclusive and non-cumulative such that no second message(even it is from the same channel) can fetch the files from configured FTP/File directories unless and until first message has completed(success/fail) its processing.
    This is exactly my requirement.
    but when I see the end time of the message its they are withing second only as
    14:02:38     14:02:39
    14:02:48     14:02:48
    14:02:58     14:02:58
    14:03:08     14:03:08
    14:03:18     14:03:18
    14:03:28     14:03:28
    14:03:38     14:03:38
    14:03:48     14:03:48
    14:03:58     14:03:58
    14:04:08     14:04:08
    14:04:18     14:04:19
    14:04:28     14:04:29
    14:04:38     14:04:39
    14:04:49     14:04:49
    14:04:59     14:04:59
    14:05:09     14:05:09
    14:05:19     14:05:19
    14:05:29     14:05:29
    14:05:39     14:05:39
    14:05:49     14:05:49
    14:05:59     14:05:59
    14:06:09     14:06:09
    14:06:19     14:06:19
    14:06:29     14:06:31
    14:06:39     14:06:40

  • File adapter polling frequency is not consistent in SOA 10g!

    Friends,
    I have used file adapter for polling files in a service in SOA 10G env. with polling frequency 3600 secs. However, i have noticed file polling is not happening at 60 mins interval, instead some times files getting polled in less than 30 mins but again after sometime its polling correctly in 60 mins interval. I am not sure what could be the reason but i need a solution urgently. Please help!

    Could be the managed servers in the cluster are not in sync.
    I faced DB JCA adapter sync issues because of Oracle soa suite bug.
    You could check whether any sync issues are there with File adapters.

  • Weird problem in File Adapter polling

    Hi Guys,
    My BPEL process is working fine not until today wherein the File Adapter cannot poll for new files in the target directory. I tried restarting the bpel server and still my bpel process was not able to poll for new files. I tried creating a test bpel process and configure the file adapter (see below):
    Operation Type: Read
    Archive processed files: Enable
    Delete files after successfule: Enable
    Include files with pattern: *.csv
    Publish messages in batches of: 1000
    Polling frequency: 5 seconds
    Minimum file age: 0 seconds
    Sample File: test.csv
    12345,12345,12345
    When I tried testing it, the file was deleted but it was not able to archive the file and bpel process did not appear in the instance tab of BPEL console. I have check the domain.log and orabpel.log files and it didn't show any exceptions or error (log level is set to error)
    Any idea how to fix this problem?
    FYI, I'm using the version 10.1.3.1.
    thanks,

    What does your process do other than poll files, does it call any other adapter / service. This is more likely the issue although I have seen issues with the file and ftp adapter in 10.1.3.3 and 10.1.3.1. I never sorted the issue it just seemed to affect that process.
    10.1.3.1 is really out of date and has a number of issues you should look at upgrading to 10.1.3.4 or 10.1.3.5 but I have seen some posts that have issues with 10.1.3.5.
    cheers
    James

  • File Adapter Polling issue(Is there critical value of File size )?

    Hi
    I use File adapter as the Activation to initialize a BPEL process instance .The source data is a kind of Delimited file format.On my PC, when the file size is less than 4M ,everything works fine ,But when the size increased. The BPEL process will not initialize the instance.When the source data is XML data , the "critical value " is about 12M. The error msg is below.
    <2005-08-08 12:48:26,209> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Processing file : D:\Temp\WOSSystemIntegration\InBoundFiles\LOADPLAN_DATA_200508041708.xml
    <2005-08-08 12:48:29,455> <INFO> <default.collaxa.cube.activation> <FileAdapter::Inbound> Sending message to Adapter Framework for posting to BPEL engine: { file=D:\Temp\WOSSystemIntegration\InBoundFiles\LOADPLAN_DATA_200508041708.xml
    <2005-08-08 12:48:40,197> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
    ogError> Error while invoking bean "cube delivery": Delivery callback message se
    rialization failed.
    An attempt to serialize the delivery callback messages for conversation "LocalGU
    ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
    e:10594606738:-7ffb" to binary format has failed. The exception reported is:
    <2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
    ogError> Error while invoking bean "delivery": Delivery callback message seriali
    zation failed.
    An attempt to serialize the delivery callback messages for conversation "LocalGU
    ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
    e:10594606738:-7ffb" to binary format has failed. The exception reported is:
    <2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube.activation> <AdapterFram
    ework::Inbound> [Read_ptt::Read(loadPlanCollection)] - JCA Activation Agent was
    unable to perform delivery of inbound message to BPEL Process 'bpel://localhost/
    default/P2E_WOS_LP~1.0/' due to: Delivery callback message serialization failed.
    An attempt to serialize the delivery callback messages for conversation "LocalGU
    ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
    e:10594606738:-7ffb" to binary format has failed. The exception reported is:
    <2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube.activation> <AdapterFram
    ework::Inbound>
    com.oracle.bpel.client.ServerException: Delivery callback message serialization
    failed.
    An attempt to serialize the delivery callback messages for conversation "LocalGU
    ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
    e:10594606738:-7ffb" to binary format has failed. The exception reported is:
    at com.collaxa.cube.engine.delivery.DeliveryHandler.initialPostAnyType(D
    eliveryHandler.java:328)
    at com.collaxa.cube.engine.delivery.DeliveryHandler.initialPost(Delivery
    Handler.java:219)
    at com.collaxa.cube.engine.delivery.DeliveryHandler.post(DeliveryHandler
    .java:83)
    at com.collaxa.cube.ejb.impl.DeliveryBean.post(DeliveryBean.java:181)
    at IDeliveryBean_StatelessSessionBeanWrapper22.post(IDeliveryBean_Statel
    essSessionBeanWrapper22.java:861)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.
    java:161)
    at oracle.tip.adapter.fw.AdapterFrameworkListenerBase$DeliveryServiceMon
    itor.send(AdapterFrameworkListenerBase.java:2340)
    at oracle.tip.adapter.fw.AdapterFrameworkListenerBase.executeDeliverySer
    viceSend(AdapterFrameworkListenerBase.java:478)
    at oracle.tip.adapter.fw.AdapterFrameworkListenerBase.deliveryServiceSen
    d(AdapterFrameworkListenerBase.java:535)
    at oracle.tip.adapter.fw.jca.AdapterFrameworkListenerImpl.performSingleA
    ctivation(AdapterFrameworkListenerImpl.java:699)
    at oracle.tip.adapter.fw.jca.AdapterFrameworkListenerImpl.onMessage(Adap
    terFrameworkListenerImpl.java:567)
    at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage
    (MessageEndpointImpl.java:121)
    at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWor
    k.java:651)
    at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork
    .java:456)
    at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWo
    rk.java:200)
    at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:139)
    at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
    at java.lang.Thread.run(Thread.java:534)
    <2005-08-08 12:48:40,245> <INFO> <default.collaxa.cube.activation> <File Adapter
    ::Inbound> Failed to send message {D:\Temp\WOSSystemIntegration\InBoundFiles\LOA
    DPLAN_DATA_200508041708.xml} to Adapter Framework.
    <2005-08-08 12:48:40,245> <WARN> <default.collaxa.cube.activation> <AdapterFrame
    work::Inbound> [Read_ptt::Read(loadPlanCollection)] - onReject: Sending invalid
    inbound message to Exception Handler: file://D:/Temp/WOSSystemIntegration/Reject
    edMessages
    <2005-08-08 12:49:44,617> <FATAL> <default.collaxa.cube.activation> <AdapterFram
    ework::Inbound> [Read_ptt::Read(loadPlanCollection)] - Resource Adapter requeste
    d Process shutdown
    <2005-08-08 12:49:48,676> <INFO> <default.collaxa.cube.activation> <AdapterFrame
    work::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactiva
    tion for portType=Read_ptt, operation=Read
    <2005-08-08 12:49:48,676> <INFO> <default.collaxa.cube.activation> <File Adapter
    ::Inbound> Endpoint De-activation called in adapter for endpoint : D:\Temp\WOSSy
    stemIntegration\InBoundFiles
    <2005-08-08 12:49:49,042> <INFO> <default.collaxa.cube.activation> <AdapterFrame
    work::Inbound> JCAActivationAgent::onStateChanged State is changed for process '
    bpel://localhost/default/P2E_WOS_LP~1.0/', state=OFF
    how can i solve this problem?can i predeploy some parameter? Is there some critical value of File size for the processing of File Adapter ?

    Hi,
    There is no specific parameters to specify the maximum file size to be read in. It is just limited by the heap size of the JVM running the BPEL engine.
    If you have enough RAM on your machine you can change the current heap size from 512Mbyte to 1Go by editing the startorabpel.bat file
    and modifying the line :
    set MEM_ARGS=-Xms512m -Xmx512m -Xmn300m -XX:MaxPermSize=80m
    to
    set MEM_ARGS=-Xms512m -Xmx1024m -Xmn300m -XX:MaxPermSize=80m
    But only do it if you have at least 1.5 Gb of RAM on your machine, otherwise ot will keep spawing and you will have very bad performance.
    Speaking about performance, do you really need to have a BPEL payload of 4 to 12 Mb ?
    Will the BPEL process really need to access it ? if so, the best solution would be using batching techniques to cut you file in pieces and process it piece by peice.
    FB.

  • Sender file Adapter, problem with proxy authentication

    HI all,
    i'm having some problems with the following scenario, i need to configure a sender file adapter which connects to a FTP server. To connect this FTP server i need to set a proxy (and so a username and a password), and i don't know how to do.
    From note 821267 seems that the proxy is not supported for an FTP adapter, but the are some workaround like the ones described in the following link
    Re: Proxy server inFTP adapter
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=57137
    They don't work in my case as i need to se two username (the one for proxy and the one for the ftp server) and i cannot force the proxy use for all XI applications.
    Can anyone help me?
    Thanks a lot
    Aldo

    Proxy is necessary to exit the customer local intranet. It's not possible to go outside network without going through the proxy server.
    I cannot set the proxy server in file adapter as it's not supported like described in SAp note,  a possible workarounf is to force the proxy server in the J2ee stack but in this way all PI calls would use that proxy..

  • SOA Suite and File Adapter polling

    Hi All.
    Whenever I have a BPEL process deployed (didn't test whith ESB yet) that uses a file adapter tha polls for files in a directory, my SOA Suite is not able to shutdown properly, and it stops with error when it's time to stop the container that has the BPEL installed.
    This is the error message:
    There are some errors while stopping the following components. Refer to the generated error report for more details.
    ==================================================
    ias-component: default_group
    process-type: oc4j_soa
    process-set: default_group
    Error Message:time out while waiting for a managed process to stop
    ==================================================
    Looking at OPMN log, I see that the managed process was forcefully shutdown.
    Is this an issue, or a normal behavior, or do I have to implement some code in order to stop the BPEL process before shutdown?
    I'm using SOA Suite 10.1.3.1 in a developer environment (Win XP)
    Regards.
    Denis

    I applied patch 5964097 (OPMN PERFORMS ALWAYS A FORCEFUL SHUTDOWN IN 10.1.3.1) and it seems to solve the problem, at least for the BPEL scenario explained.

  • File adapter polling a folder and accepting a single document at a time?

    Hi,
    Is it possible to make file adapter read a single file at a time though it is polling a directory that may contain more than one document?
    In other words is it possible to make file adapter reading documents sequentially?
    Do I need to put a queue to achieve this?
    Queue will read the incoming documents and puts the documents to another directory one by ome so that the file adapter picks up only one file at a time?
    Thanks,
    Sasi Bhushan

    Hi,
    have you read
    http://download-uk.oracle.com/docs/cd/B31017_01/core.1013/b28941/soa.htm#CEGJIDAC
    There is explained what concurrency level you can achieve for adapters...

  • XI file adapter polling faster than poll interval

    Hi,
    We are facing a issue with the file adapter/authorization of the FTPUSER.
    We FTP a server and pick up a file from a particular folder.
    My polling interval is 2 minutes
    My retry interval is space.
    Processing mode : ARCHIVE
    We are archiving it on a Network attached server(NAS) mounted on our XI server.
    When XI polls for the first time it picks up the file but the sender file adapter shows following error in RWB.
    <b>2006-01-20 11:31:08 GMT: Error: Deleting of file 'ARUCSjnewb80.txt' failed - cannot proceed: FTPEx: ARUCSjnewb80.txt: Access is denied.</b>
    The picked up file gets processed but at the same time just within 12-13 seconds of the first poll XI picks up the file second time and then in another 3 seconds for the third time.
    After this the file gets archived thrice in the archive directory and then gets deleted from the source directory.
    We are unable to understand why XI is polling  again  after few seconds of the first poll.(As per my understanding it should have polled after 2 minutes).
    I am able to delete the file manually from the Ftp server.
    Could anyone give a pointer towards what we are missing or what probable reasons could be?
    authorization issue?( XIADM /ftpuser have full authorization)
    Some adapter setting?
    Regards,
    Sulakshana

    Hi,
    Could you let me know how frequent the file gets loaded to the FTP server.
    Is your file size too large to get loaded.. If so try to increase the polling interval. Also make sure that you have provided the polling time in sec and not in minutes...i.e for 2 minutes it should have been specified as 120 sec as polling interval
    Regards,
    Nithiyanandam

  • File Adapter 7.11 - set operating system command line dynamically

    Hi,
    is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute?
    I need to set  a command line exec depending on some XSL mapping values.
    thx
    holger

    hi,
    >>>is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute?
    >>>I need to set a command line exec depending on some XSL mapping values.
    think about this approach:
    you put the XSL values into the filename after the real name of the file
    in the batch script you use those values in order to execute a dynamic exe command
    after processing you just change the name of the file in the script by removing the xsl values
    simple ? I think so
    Regards,
    Michal Krawczyk

Maybe you are looking for

  • Report on blocked invoices?

    report on blocked invoices? regards, padma

  • After Effects Crash

    When starting AE I get this message: After Effects error: Crash in progress.  Last logged message was: <4332> <GPU Manager> <2> Sniffer Result Code: 1 The only time I can get AE to start is if I open it as soon as I turn on the computer.  Any attempt

  • 403 Forbidden error in SXMB_MONI

    Hi guys I get this error in SXMB_MONI, at the Call Adapter stage The termination occurred in system ERQ with error code 403 and for the reason Forbidden Its Quality system. I am able to login to QAS, so while trying to post data into ERQ, I used my u

  • Bloom filter and performance

    I have the following query: SELECT                  obst.obst_id obstructionId                ,oost.comment_clob CommentClob                ,chp1.ptcar_no StartPtcar                ,chp2.ptcar_no EndPtcar                ,oost.track_code Track        

  • Extention cable for Mini DisplayPort

    i have MacPro , i want to extent my Cinema display cable , how can i , where i can get