Asynchronous processing options.

On a CF9 system which of the various Asynchronous options would the group-think consider the easiest and best to implement for the following purpose.
I have a file on one server that does some initial processing.  When done sucessfully it posts a received file to another server.  I want it to NOT wait for a response from that server.  Rather I just want the request to finish and return an initial response to the client that contacted the first server.
Here is the code where The file is posted to an internal server.
<cftry>
     <!--- Submit POST request to the internal server with to deliver the XML file --->
     <cfhttp url="http://#application.internalServer#/pur-loader/ws/ppur_int_v0.cfc" method="post" multipart="yes" timeout="0">
          <cfhttpparam name="incomingFile" type="file" file="#cffile.serverDirectory & '/' & cffile.serverFile#">
          <cfhttpparam name="method" type="url" value="receiveData">
     </cfhttp>
     <cfcatch type="any">
          <cflog application="yes" file="PPUR" type="error" text="HTTP Request to the Internal Web service failed.">
          <cfrethrow>
     </cfcatch>
</cftry>
I thought the timeout=0 was a very old method to generate an Asynchronous process.  But, apparently I am wrong or this is no longer true.  As this code does not work.  The <cfhttp...> tag is waiting for a response and is timing out from the request time out not the http timeout, do to the interal process is going to take serverl minutes or more.
Would a <cfthread...> work well here?  My concern in the number of threads that can be spawned.  The initial template may be accessed upwards of 60 times in a relatively short time.  Would creating 60ish long running threads with the <cfthread...> be of concern?
Would a gateway improve that situation in any way?
Are there other Asynchronous options I am overlooking?

your problem could be timeout="0"...i dont think it is a good idea to use zero...and <cfhttpparam is missing some pounds around variables...

Similar Messages

  • Re : what is diffrent Between  Synchronies and   Asynchronies  process

    Hi ,
          what is diffrent between Synchronies and   Asynchronies  process in  session Method and call Transcation method  pls give one Example...
    Thanks
    Arief .S

    Synchronus data processing is that in which the program calling the update task waits for the update work process to finish the update before it continues processing.
    In Asynchronus update the callng program does not wait for update work process to finish the update and continues as normal.
    A BDC done with sessions is always synchronus.
    A BDC with call transaction is by default asynchronus
    unless you define it explicitly as
    call transaction 'XXXX' ...... update 'S'.
    ( If you donot define update option it is defaulted to "A" ).
    The update method is of importance when one transaction locks data which may be required by a subsequent transaction . The subsequent transaction will fail if data is locked from previous one. An example would be you are creating sales order for same material in succession ( with asynchronus update ). Quite likely that some of transactions would fail due to material locked.
    For large volume of data Call Transaction will be faster but you have no restart capability here. Suppose from 1000 transactions 100 fails . You will have to run the BDC program again exclusing the ones which wrere successful. However with session method you have the option to process the error transactions again in SM35 . So if you are sure that errors will not occur use call transaction else use session method.

  • Processing options for EDI vendor Invoices

    I'm trying to get a better understanding of what my options are for processing EDI vendor invoices and would appreciate some help.  I'm using  message type INVOIC02 with process code INVL and in configuration I've set the processing option in table T076S to 4 (tolerence corresponding to online processing).  When an invoice fails either the vendor specific tolerance check or the payment blocking checks the invoice gets parked with error status 3.  This is behaving as I would expect.  The issue I have is the price on the parked invoice is the price from the PO and not the price from the EDI segment.  Is there anyway to change this?  This makes it difficult to analyze the cause of the error without going back to the Idoc segments.  I've tried playing with the other processing options but they also enter the PO price in the parked invoice.  If it's not possible to change this are there any tricks that i'm missing that can help the users analyze the cause of the errors without going back into the idoc?
    thanks,

    If anyone has any expierence with this, I would appreciate any advice you may have.
    thanks,

  • Fault in initializing asynchronous process

    Hi Guys,
    As many posts and articles suggest, asynchronous process is better because of its flexibility. I am very happy with it until I encounter the following problem.
    We do the fault handling on all of our processes, using both the catch and fault policy framework. For asynchronous process, we use a separate invoke to return the fault. Recently, we noticed a problem. For some reasons, every Sunday when the production BPEL server restarts, there are always a few BPEL process turned retired and off. We've already raised a service request for this on metalink. But this causes another very serious issue:
    The calling BPEL instance sends a request to initiate the asynchronous process . As it is turned off and retired by accident, the initialization fails. However, as it's asynchronous, the calling process is not notified, which means there is no fault raised on the calling process. This causes a lot of trouble because we are not notified with the problem. This has never been a problem because we did not have process turned off and retired before.
    This can be easily verified by a simple test case. Create a synchronous process A and an asynchronous process B. Let A invoke B. Then turn off and retire B. A instance can still be executed successfully without saying the problem calling B. If B is a synchronous process, A will always report a fault in such situation.
    Of course, the domain log file records this ORABPEL-02106 problem. but we don't want to check log file all the time and want to be notified when it happens. Is there a way to catch such exception/fault in the calling process?
    Thanks in advance!!!
    Steven
    Edited by: sw12345 on Jul 26, 2010 9:41 AM

    HI Sridhar,
    Thanks for you advice. I think I will do the following:
    1. I will still keep all process as asynchronous with the deliveryPersistPolicy as default.
    2. I will add a cron job to scan the server whenever it restarts to detect any default version of BPEL process with a retire or off status. If there are, I'll correct them.
    3. I will implement the program to re-submit the failed invoke. But I cannot make it an alert program because I cannot get detail fault through IInvokeHandle (Please correct me if I am wrong).
    By the way the defect of the "ClassCastException" is fixed in 10.1.3.5, I guess that can upgrade that too :-)
    Thanks,
    Steven

  • Fault Handling in Asynchronous process

    Hi,
    I want to know how to throw fault from an Asynchronous process to the calling process. In a synchronous process we generally throw faults using fault message in 'process' port type. But Im not sure how to throw a fault from Asynchrnous process to the calling process that can be caught in the catch block of the calling process.
    Can some one update me with the feasibility of this.
    Thanks,

    Hi,
    Look inside the Oracle® BPEL Process Manager Developer's Guide at http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/faults.htm#BABIBAFC
    8.8.2 Returning a Fault in an Asynchronous Interaction
    In an asynchronous interaction, the client does not wait for a reply. The reply activity is not used to return a fault. Instead, the BPEL process returns a fault using a callback operation on the same port type that normally receives the requested information, with an invoke activity.
    Example
        <portType name="BPELFaultHandling">
            <operation name="initiate">
                <input message="client:BPELFaultHandlingRequestMessage"/>
            </operation>
        </portType>
        <portType name="BPELFaultHandlingCallback">
            <operation name="onResult">
                <input message="client:BPELFaultHandlingResponseMessage"/>
            </operation>
            <operation name="onError">
                <input message="client:BPELFaultHandlingErrorMessage"/>
            </operation>
        </portType>On the caller side you have to use one invoke followed by a pick activity waiting for onResult or onError callback.
    Best Regards,
    Harald Reinmueller

  • Parallel Process Option for Optimization in Background.

    Hi,
    I am testing the SNP Optimizer with various settings this week on  demo version from SAP for a client.  I am looking for information that anyone might have on the SNP Parallel Processing Option in the execution of the Optimizer in the background.   The information that I could find is very thin.   I would be interested in any documentation or experience that you have.
    Sincerely,
    Michael M. Stahl
    [email protected]

    Hello,
    While running the transaction /SAPAPO/SNPOP - Supply Network Optimization  in the background, In the variant of it you can enter Parallel Processing profile in the field Paral. Proc. Profile.
    This profile you will require to define in the Customization(SPRO) before use it in the variant.
    Path to maintain it is as below Use transaction SPRO
    Advanced Planning and Optimization --> Supply Chain Planning -->Supply Network Planning (SNP) --> Profiles --> Define Parallel Processing Profile
    Here you will require to define your profile... e.g. as below
    Paral. Proc. Profile SNP_OPT
    Description          SNP OPTIMIZER PP PROFILE
    Appl. (Parallel Pr.) : Optimization
    Parallel Processes   2
    Logical system :
    Server Group :
    Block Size:
    You will require to take Basis team's help to enter value for Server Group and Block size.
    I hope, above information is helpful for you.
    Regards,
    Anjali

  • How to invoke an other BPM asynchronous process from the BPM process

    Do anyone know how to invoke other asynchronous process from the BPM process without using the Web Service URL?

    Try using a Service task implemented as a Process Call. Then you select the process you want to call, set the associations or transformation and deploy it to test.
    I hope it works for you.
    isabelbernely

  • IDOC_ADAPTER.ATTRIBUTE_BE_NOT_SUPP Only asynchronous processing supported

    Hello Expert,
    Error while send IDOC
    " IDOC_ADAPTER.ATTRIBUTE_BE_NOT_SUPP Only asynchronous processing
    supported for IDOC Adapter" is returned.
    Please suggest
    Thulasi

    Hi,
    Make sure that you have mentioned the Recever message interface as Async mode
    Here it is saying that IDOC suports only Async that means some where else u have mentioned as Sync interface
    Regards
    Seshagiri

  • AP - Manager Payment - Process staus is: Rejected by Processing Option

    When run a payment request (process Manager Payment) I get error. The Error reason is follow:
    Document payables was failed because of rejection level setting (failure was triggered by document payables XXXX).
    The process staus is: Rejected by Processing Option
    Status: Failed Document Validation
    I know when the process status is rejected but I don’t Know when I have the process status "Rejected by Processing Option". I don’t understand the error reason because I paid in the past with the same Profile payment.
    Has anyone faced this issue?
    Thank you
    Mauro

    Hi,
    You might have used the Profile previously but Validation failure may occur depending upon options ie. Selection criteria selected while submission of PPR.
    Change the options and try again.
    Regards,
    Sridhar

  • Receiving IDocs in XI from a system with Queue Processing option

    I am trying to use the Queue Processing option that can be set in a partner profile for IDoc sending, so that qRFC is used.
    I have set up the Rule Name as one of the defaults that come with the system, but when I execute the sending of the IDoc, it gets stuck with status 30 (ready for dispatch). I have configured the Output Mode of the IDoc as "Transfer IDoc Immediately".
    SAP Documentation states that:
    "When you send by qRFC, the IDocs are first put in an outbound queue in the sending system, and then in an inbound queue in the recipient system. You can assign IDocs to various queues and specify queue name rules. "
    Is there something I also have to do in the XI system that is receiving the IDoc?
    Kind Regards,
    Tony.

    Hi Anthony,
    Now I have the same problem in between ECC6.0 and PI7.11.
    If you solving  the problem,
    Please let us know how you did.
    Best Regards,

  • Couldn't get Asynchronous process instance

    Hi,
    i am calling one Asynchronouse process from my queue listener process. The listener is calling the asynchronous process.But could see Async process instance in the instanceses tab of BPELConsole.
    can any one please help me in this ...
    when i invoked the Asynch process directly some times got invoked and could see the flow. But some times getting tryAgain link.. while trying again getting the same page again and again.
    what is the reasone where am not correct in asynch process ?
    Regards,
    Bogi.

    Did you set the loglevel to debug and verified the logfile?

  • Handling Faults in asynchronous process SOA11G

    I could implement RuntimeFault.wsdl in synchronous process, but I cannot to do the smae in asynchronous process.
    What is the difference in implementing it.
    I want to handle wsdl (partner link) fault in during invoke activity. But when I add this
    <wsdl:fault name="ImportOrderStatusFault" message="ns1:RuntimeFaultMessage"/>
    in my bpel process wsdl I get error, wsdl not expected.
    Also, when I use bpel:remoteFault, bpel:bindingFault or catchAll ,and use reply activity to client, I get error in reply activity.
    Also, in asynchronous process, i cannot use throw activity. Now, if source system invokes my bpel asynchronous process, and there is WSDL Fault in Partner Link. Would source know that there is an exception ?
    Thanks

    in your async process you have something like
        <portType name="getEmployee">
            <operation name="initiate">
                <input message="client:EmployeeRequestMessage"/>
            </operation>
        </portType>
        <portType name="getEmployeeCallback">
            <operation name="onResult">
                <input message="client:EmployeeResponseMessage"/>
            </operation>
           <operation name="onError">
             <input message="client:yourErrorMessage"/>
           </operation>
        </portType>in your bpel you catch the error and in the catch handler you do the invoke back just like you do the callback in your normal flow, only this time you call onError instead of onResult
    Or if you don't want the use a seperate callback (onError) you could still use the onResult in the catch handler, but before the invoke you need to construct the message you want to reply and assign that to lets say the outputVariable (if this is the one used by the callback in the error catch handler)

  • Return data in Asynchronous Process

    Hi gurus of BMP. I have this requirement:
    In a BPM Asynchronous Process (no BPEL process), I need to return some data and then continue the process. I did that in BPEL and it was just fine, but in BPM I don't know how to do it. I'm using JDeveloper 11.1.1.5, no Feature Pack.
    Please, anybody can tell me if this is possible?? Can provide me any link or docs for this requeriment?
    Regards and thanks in advance.
    PS: This have nothing to do with this post but, can also anybody help me with the thread below? I will appreciate any help:
    Start Event Signal is not getting call

    Hi Daniel, thanks a lot for your quick answer. I'm afraid that I considered and tested it but I see no results after the invocation, I mean, no data is displayed in the EM when I call the service. If you already tried your suggestion please tell me how you did it.
    Thanks again for your answer.

  • Asynchronous Processing of Workflow in Final Step Pro's and Cons?

    Hi,
    I was wondering if anybody has experience with "Asynchronous Processing of Workflow in Final Step".
    in our workflow process we have decided to use Decision type 4:  item based desicion for partial document.
    currently we are working on SRM Server 731 and I cannot find this in customization. I suspect I need to enable business function : SRM_APF_IMPR_1.
    can any body confirm this?
    But does anybody have some experience using this functionality, and provide some experience in the Pro's and Con's.
    on the link i found on SAP website limited information is available: :
    http://help.sap.com/saphelp_srm701/helpdata/en/c9/e6c2d976564cfe83ba850890d6f946/frameset.htm
    Hope anybody can provide some insight.
    thanks Sing

    Hi Sing,
    SAP says, that asynchronous processing should be faster for the large shopping carts (Last approver should not wait to long). But actually I have not determined big difference.
    If you activate this switch - do not fordet to activate following entry in SWE2.
    Regards
    Konstantin

  • Synchronous to Asynchronous Process

    We need some desing help. We need a Synchronous(webService) to Asynchronous(Idoc to SAP) process, but not have the Synchronous thread wait for the Asynchronous process to complete. The Synchronous process needs to hand off the message to a Asynchronous process and immediately response back to the Synchronous client. The Synchronous reply is basically an acknowledgment.
    Appreciate can anyone have design idea?

    Hi,
    if you only want to close the sync step from the webservice call there is a simple idea that could help.
    When receiving the webservice call add a transformation step in the BPM (in the sync-async bridge BPM as second step). In this step add a mapping from the webservice outbound message to the response. Fill in whatever you need, e.g. constants. If I understand right, you only want to close the sync call.
    >With the mapping in the transform step you will fill a container element for the response which you can use in the close s/a bridge step to send the response.
    Regards
    Dirk

Maybe you are looking for

  • How to create wiki pages in portal

    Is there any way available to create wiki pages in portal? All the users logged in portal can be able to create the pages. The users can have the option to search for the wiki's.             How can we achieve this? Help us to drive this.

  • New aluminum keyboard - Remap volume & player keys to F13 - F19?

    (I couldn't see a 'Keyboards' or 'Other Hardware' section of the forum so thought I'd post here). I've just bought the new aluminium keyboard. I'm loving it apart from the placement of the volume keys, iTunes/QuickTime control keys etc. I want to rem

  • Query regarding delayed block cleanout

    Hi, I have a question regarding delayed block clean-out in Oracle. I have read below from meta link note: 40689.1 Consider a transaction that updates a million row table. This obviously visits a large number of database blocks to make the change to t

  • HOW TO A LOAD A BACKUP ON ITUNES? WHEN HOW DO I GET THE OPTION?

    THanks.

  • No Program Monitor

    I am using Pro 2 with Matrox and Windows XP. I haven't used this PC in awhile. I can't get the Program Monitor to come up in a new edit or one that was done a year ago. I have gone to the windows tab and press Program Monitor and nothing comes up. Ev