Parallel Processing on the Server

I am creating a Java web application that demands some intense and time-consuming server-side processing. Therefore, once the user makes his request (which involves submitting a file), I want to do 2 things: 1) redirect the user to a confirmation page and 2)perform the processing and send an E-mail of the results to the user. Of course, these should be done in parallel.
I am not exactly sure how to go about doing this sort of thing given the request/response model in servlets/JSPs. I've considered bouncing the reqest around various servlets to get this done, but I am not sure exactly how that would work. I've also considered spawning a thread, but I am not sure if I want to do that inside the web container.
Any suggestions are greatly appreciated. Thanks.

I have never worked with MDBs either. But I don't see why the servlet couldn't send the file (as an array of bytes representing the actual data, or as a string that holds only the name of a temporary file where the servlet stored the data) to an MDB which would do that.
Here's a link to an MDB tutorial, since you've worked with EJBs I expect the terminology should not be a problem:
http://www.theserverside.com/articles/article.tss?l=Pramati-MDB

Similar Messages

  • Dynamic parallel processing of the same object using asynchronous method

    Hi,
    Please can anyone help me?
    I have to send the same DMS document to several agents for parallel processing. The number of agents is not known until runtime. Each of them should process the document and at least change the status of it. In next step I check if he has changed it.
    I use dynamic parallel processing of subworkflows. Key task of this subworkflow uses standard method of object DRAW - DOCUMENT.EDIT  (standard transaction CV02N) which is asynchronous. The task is finished by event DOCUMENT.CHANGED. 
    During the parallel processing the appropriate number of workitems is generated. However, when the agent who processes the document as first completes his workitem the event DOCUMENT.CHANGED is generated and all parallel workitems are completed, even those of other agents that were not processed yet.
    Any help would be appreciated.
    Thanks.
    Eva Vahalova

    Hi all,
    The process is used to approve incoming invoices. Each scanned invoice is attached to a DMS document and than sent to one or several agents in parallel. People from several departments can approve the same invoice for instance energy or mobile phone costs. We have no HR module fully implemented. Each agent may write some remarks and has to sets the document status to either approved or rejected. This status is temporary therefore the others see the original status for approving.
    The process of incoming invoices was implemented by SAP consultants in 2003 on 4.6B and now runs on our 4.7 system.  Now new company was established running on a new SAP system ECC 6.0 and our accountant department and some agents will deal with invoices in both systems. Therefore, the process should appear the same or at least very similar. The majority of the old process was realized by programming while I would like to use workflow features that are available now and reduce the programming part.
    As I see, I will have to choose one of the solutions that Arghadip suggested.
    I wonder if there is a possibility to use asynchronous method and control the end of each work item by means of u201CComplete Work Itemu201D or u201CComplete executionu201D Conditions. I have never used them and I do not know how they work and what condition to use. Maybe program exit might be used as well. While controlling the agents I think I will have to do some programming anyway because the work item can be finished by a substitute too.
    Thanks for your help.
    Eva

  • This message is used to carry data between the BlackBerry handheld and an associated server. Please do not delete, move or respond to this message - it will be processed by the server.

    I have a client with a BlackBerry Pearl 8110. It was (is) configured to receive email from a Microsoft Exchange Server via his Outlook account.  I have uninstalled the Desktop Manager and re-installed ensuring the computer transmits his email via the Re-Director. All settings in the Desktop Manager are correct. The phone was working fine for over 5 years. Now he is getting emails both on his phone and in Outlook saying:
    This message is used to carry data between the BlackBerry handheld and an associated server. Please do not delete, move or respond to this message - it will be processed by the server.
    I have verified that his phone is not attempting to perform the Enterprise Activation process by checking :
    Options > Advanced Options > Enterprise Activation.
    He does however have a Service Book entitled "CMIME"
    How can I resolve this issue?

    Is the user needing the Redirector service?
    Step 1: If you're not using Redirector or Enterprise, you should uninstall Desktop Manager and then reinstall it using the BlackBerry Internet Service option.
    Step 2: On your device, go to: Options > Advanced > Service Book, and delete all service books for [Desktop]
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • The client could not be authenticated because the Extensible Authentication Protocol (EAP) Type cannot be processed by the server

    wireless authentication not working 
    I found the following in the radius
    Log Name:      Security
    Source:        Microsoft-Windows-Security-Auditing
    Date:          1/15/2014 2:07:57 AM
    Event ID:      6273
    Task Category: Network Policy Server
    Level:         Information
    Keywords:      Audit Failure
    User:          N/A
    Computer:     NAP01.test.local
    Description:
    Network Policy Server denied access to a user.
    Contact the Network Policy Server administrator for more information.
    User:
     Security ID:   doamin \user.a
     Account Name:   user.a
    Client Machine:
     Security ID:   NULL SID
     Account Name:   -
     Fully Qualified Account Name: -
     OS-Version:   -
     Called Station Identifier:  00-0F-7D-C4-45-20:staff
     Calling Station Identifier:  0C-74-C2-EF-Dd-0B
    NAS:
     NAS IPv4 Address:  192.168.9.10
     NAS IPv6 Address:  -
     NAS Identifier:   -
     NAS Port-Type:   Wireless - IEEE 802.11
     NAS Port:   497
    RADIUS Client:
     Client Friendly Name:  wcont1
     Client IP Address:   192.168.9.10
    Authentication Details:
     Connection Request Policy Name: Wireless
     Network Policy Name:  wism
     Authentication Provider:  Windows
     Authentication Server:  NAP01.test.local
     Authentication Type:  EAP
     EAP Type:   -
     Account Session Identifier:  -
     Logging Results:   Accounting information was written to the local log file.
     Reason Code:   22
     Reason:    The client could not be authenticated  because the Extensible Authentication Protocol (EAP) Type cannot be processed by the server.
    Please help

    Hi,
    Anything updates?
    In addition, this issue may also because your client didn't have CA certificate of your domain. Please make sure that your client has CA certificate.
    Besides, the error "The client could not be authenticated because the Extensible Authentication Protocol (EAP) Type cannot be processed by the server" may be due to that the default maximum transmission unit that NPS uses for EAP payloads is 1500
    bytes. You can lower the maximum size that NPS uses for EAP payloads by adjusting the Framed-MTU attribute in a network policy to a value no greater than 1344:
    Configure the EAP Payload Size
    Best regards,
    Susie

  • PROCESSES OF THE SERVER

    Hi!!!
    Someone know a transaction were i can see the processes of the server?
    thanks & Regards

    SM50
    Regards,
    Rich Heilman

  • Parallel processing in the same work center

    Dear Guys,
    There is a routing sequence in which some 2-3 operations will occur parallely & those operations will belong to a same work center,How to map those operations in the routing,do i need to maintain parallel processing ,if so then how to go about

    Parallel Sequence
    Definition
    A linear sequence of operations that is parallel to a sequence of operations in the standard sequence.
    Use
    A parallel sequence enables you to process several operations at the same time. A parallel sequence is carried out at the same time as the corresponding section in the standard sequence. It is a special form of overlapping operations.
    Integration
    You can create parallel sequences in routings and rate routings. You cannot create them in reference operation sets or reference rate routings.             Creating a Parallel Sequence
    Call up the sequence overview.
    Choose Edit ® New entries.
    The Choose Sequence Category dialog box appears.
    Select Parallel sequence and press Continue.
    The Sequence Details screen is displayed.
    Enter the necessary data.
    Select Operation overview to create operations for the parallel sequence.
    so particularly in your case
    WORK CENTRE OF 10, 20, 30 ,40, 50  ASSUME TO THERE
    OPERATION OF THE SEQU : 1,2,3,4,5
    SUPPOSE 3,4 ARE PARALLEL SEQUN AND THE WORK CENTRE 30,40 ARE SAME TYPRE TO OPR SAME
    YOU MAY DESIGN AS
                                                           WC-30
                                                            (OPN3)
                     W.C 10          WC 20                                WC50
                      (OPN1)          (OPN2)                               (OPN5)     
                                                           WC 40
                                                           (OPN4)
    OR
                                                           WC-30
                                                            (OPN4)
                     W.C 10          WC 20                                WC50
                      (OPN1)          (OPN2)                               (OPN5)     
                                                           WC 40
                                                           (OPN3)

  • Parallel Processing at the time of confirmation

    Hi Gurus,
    During confirmation of production orders / collective orders (T.Code u2013 CO11 / CO12 / COHV) or through REM Backflush done in Repetitive Manufacturing (T.Code - MFBF), material components get locked, for processing when multiple users are transacting either confirmation of above orders or MM-IM transactions in parallel.
    Eg. Goods Receipt for components in stores cannot be made during confirmation by planning production scheduler and vice versa.
    As a result, transaction of Goods Receipt making cannot be executed getting error message u201CUser lockedu201D.
    Please suggest us how parallel processing can be carried out on same materials simultaneously like working on CO11, CO12, CO1P and MIGO for the same material. System should allow processing parallel with minimum execution time.
    Any SAP notes available for this?
    Any one faced such issue and resolved this, please share.
    Thanks in advance,
    Regards,
    Srini

    Hi Srini,
    Normally this should not be a big problem, since it takes just a short time to process automatic goods movements related to production order confirmation (backflush GI, and GR).
    But if in your reality it is, then SAP offers a decoupling concept, which results in posponing those movements, and perform them en-mass at a more convenient time when it less disturbs (like after normal office hours). Look in the link for full details:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/b1/c04d42439a11d189410000e829fbbd/content.htm
    Regards,
    Mario

  • AIR vs. Flex: image generator as a background process on the server

    I am running into problems with an image generator running on
    a headless server.
    When I start up the server, it launches my java app. It reads
    a list of report definitions from the data base. For each report,
    it spawns a thread. Each thread launches my Flex application in a
    browser window.
    Flex draws the data in charts. Each time data is pushed to
    the flex application from the java server side, Flex calls a remote
    java method to save it's image to a file. This file sits in a
    directory where it can be viewed in a regular old html page.
    The problem is really the automated aspect. I want to have
    this chart generated every few minutes as a .png file. It works
    perfectly fine on my localhost machine, but the server deployment
    is so far not working, I think because it is headless. We have
    firefox installed on the server. Is there no way to launch it as a
    background process to draw these images? Should I turn this into an
    AIR app (I've never done anything with AIR up to this point) to
    make it run more easily in the background?
    Java programmers all seem to think that running an image
    generating process in a web browser window on the server is "bad
    practice". So I think I am thinking maybe I should turn it into an
    AIR app. I'm not sure though how to deploy AIR apps though. Can
    they go in a .war file?
    If someone has any ideas about this or if going AIR is the
    wrong approach here please let me know. Thanks!

    Not explicitly, as far as I know.
    But you could always run it and then hide its window using Cmd+H, or the menu command "iCal" -> "Hide iCal". Click its dock icon to make it visible again.

  • Parallel processing of the IDOCs through the program RBDAPP01

    Hello All,
    We are prcoessing the inbound IDOCS using the program RBDAPP01 by scheduling but this processing is taking lot of time to process the IDOCs.
    Please let me know how do we improove the performance of this program RBDAPP01 by making use of
    parallel processing of IDOCS?I read some documentation in this forum but not understand clearly.
    Please give some info regarding this who have already done this requirement earlier.
    Regards
    Mahesh

    Hi,
    Thanks a lot for your quick reply just by giving the package size it will initiate parallel processing?
    in our partner profiles we have setting to trigger through back ground only.
    How to use parallel processing tab in the selection screen of the program RBDAPP01?
    Regards
    Mahesh

  • RAC 9.2.0.8 The LSMn process exhaust the server memory

    A two nodes RAC 9.2.0.8
    from the top command.
    top - 15:49:15 up 4 days, 10:36, 6 users, load average: 0.70, 1.23, 1.51
    Tasks: 470 total, 1 running, 469 sleeping, 0 stopped, 0 zombie
    Cpu(s): 1.6% us, 0.1% sy, 0.0% ni, 98.2% id, 0.1% wa, 0.0% hi, 0.0% si
    Mem: 16434664k total, 16309804k used, 124860k free, 45756k buffers
    Swap: 32764556k total, 178600k used, 32585956k free, 14321772k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    27077 oracle 16 0 10.1g 806m 805m S 18.9 5.0 38:19.59 oracle
    1565 oracle 15 0 10.1g 588m 587m S 3.3 3.7 15:12.69 oracle
    14224 oracle 15 0 10.1g 7.7g 7.6g S 0.7 48.8 19:26.11 oracle
    1563 oracle 15 0 10.1g 652m 651m S 0.3 4.1 0:13.10 oracle
    13955 oracle 15 0 10.1g 1.5g 1.5g S 0.3 9.8 1:10.97 oracle
    *14222 oracle 15 0 10.1g 7.7g 7.7g S 0.3 48.9 19:53.65 oracle*
    *14226 oracle 15 0 10.1g 7.7g 7.7g S 0.3 49.0 19:53.29 oracle*
    14232 oracle 15 0 10.1g 19m 16m S 0.3 0.1 24:38.95 oracle
    16906 oracle 15 0 10.1g 74m 71m S 0.3 0.5 0:00.92 oracle
    22763 oracle 15 0 10.1g 626m 623m S 0.3 3.9 0:21.27 oracle
    28942 root 16 0 5576 1392 816 R 0.3 0.0 0:00.04 top
    32638 oracle 15 0 10.1g 985m 983m S 0.3 6.1 0:37.81 oracle
    1 root 16 0 4772 564 468 S 0.0 0.0 0:05.50 init
    select * from v$projcess where spid=14222
    I got the info that the blod process is lsm1 and lsm2.
    although the PGA usage is fine the these process. but it used most of the physical memory.
    How to tuning the LSMn. Is it due to some misconfig of laod balance? the server memory is going to exhaust.
    Thanks.

    Oracle uses shared memory and most UNIX utilities do not properly report Oracle process memory usage due to double counting of shared memory. Are you getting errors? If not, I suspect the figures reported by TOP are not correct.
    What platform are you on?
    Any errors in alert.log or in the lsn background dump destination trace files?
    How is overall system performance?
    HTH -- Mark D Powell --

  • Question on parallel processing using the STARTING NEW TASK keyword

    I have the following code in a program on my development system:
    call function 'FUNCTION_NAME'
        starting new task ld_taskname
        performing collect_output on end of task
          exporting
            pd_param1       = ld_param1
          tables
            pt_packet       = lt_packet.
    You'll notice in the code above I left out the following part of the function call:
    DESTINATION IN GROUP group
    In my one-server development system the topmost code executes fine, but I'm getting a 'REMOTE FUNCTION CALL ERROR' when I execute this in a multi-server Q&A system. 
    My question: Is the missing 'DESTINATION' keyword required in order for this technique to work in a multi-server environment or is it optional keyword?  I made the assumption that since it worked in my development environment that without the 'DESTINATION' addition the system simply used the current logged on system to start the new processes.
    Any input appreciated.
    Thanks,
    Lee

    Hi Lee,
    Just take F1 help on CALL FUNCTION key word and go to the variant
    CALL FUNCTION func STARTING NEW TASK task
                  [DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]
                  parameter_list
                  [{PERFORMING subr}|{CALLING meth} ON END OF TASK].
    This gives you very clear information about this Key word.
    No one would give you better information better than this, i hope
    Cheers
    Ram

  • Deployment process in the server using Jdeveloper?

    Hi All,
    I am new to the SOA .. need some help to deploy the service in the application server?
    Before deploying the service what are the properties files need to be changed like .xml files?
    Please provide the suggestion to deploy the service ?
    Srinivas Bhoosarapu..
    Message was edited by:
    user650317

    Modified the required files as per the specifiacation in both xml and properties files .
    Deployed the service successfully.
    But problem is it's not picking the file from the source server.
    Please guide me how to test the service...in the bpel after deploying the service...
    how the check the service log ?

  • The parallel process for mrp.

    hi exports
    we plan to do the scope of planning for the total planning as a background job.
    while doing that system ask for the parallal processing for mrp
    what is customize step and procedure to do the parallel process for mrp.

    Dear Raj,
    With the help of parallel processing procedures, you can significantly improve the runtime of the total planning run.
    To process in parallel, you can either select various sessions on the application server or various servers.
    Parallel processing runs according to packages using the low-level code logic:
    The work package, with a fixed number of materials that are internally defined in the program, is distributed over the individual servers/sessions. Once a server/session has finished processing a package, it starts processing the next package.
    If a low-level code is being planned, the servers/sessions that have finished must wait until the last server/session has finished its package to avoid inconsistencies. Then the next low-level code is processed per packages.
    The parallel processing procedure is switched on in the initial screen of total planning.
    Activities
    Define the application server with the number of sessions that can be used:
    If you want to define various servers for parallel processing, enter the server with the number of sessions.
    If you only want to use one server, but several sessions, enter the application server and the appropriate number of sessions.
    Further notes
    Parallel processing shortens the time required for calculation, however, it cannot shorten the database time as the system still only operates using one database.
    The Customizing Transaction is   OMIQ
    Regards
    PSV

  • How can I implement parallel processing feature in Oracle 9i?

    I need to load (and transform) millions of data from Table1 to Table2. How can I speed the process using parallel processing. The server has 4 processors (running on Win2k Advanced server).
    Can anyone guide me what are the exact steps required to enable parallel loading. I've already partitioned Table1 into 4 parts.

    insert /*+ PARALLEL(8) */ into table A select * from table B ;
    or alter table A parallel 8 ;
    or alter session enable parallel dml ;
    Look for PARALLEL on http://tahiti.oracle.com for more infos.
    Fred

  • Parallel processing issue withing same server

    hi,
    i need to perform parallel processing withing same server using work processes available in same server.
    suggest if this can be accomplished and explain the design if possible.

    Hello Venkata,
    You can achieve parallel processing by using CALL FUNCTION .... STARTING NEW TASK <task name>.
    In this case function module runs in asynchronous mode without stopping calling program.
    For more details you can refer following link:
    https://wiki.sdn.sap.com/wiki/display/Snippets/Easilyimplementparallelprocessinginonlineandbatchprocessing
    Thanks,
    Augustin.

Maybe you are looking for

  • Help setting up Open DNS with new airport extreme

    I cant seem to get Open DNS to work with a new airport extreme. The status says I am not using Open DNS and its not filtering anything. I have followed the exact steps for set up listed on their website, checked the dns settings, cleared both caches

  • Linux drivers for SUN Quad PCI card

    Hi everyone. I have a question regarding drivers for a Sun QUAD network card. I belive it is a X1034A card. The card is also marked with a label saying: *5015406063174* and a barcode. On another label it says: P04280713 Is there any chance that this

  • HELP re text messages

    I had some very important work text messages on my iphone 4  Ive just upgraded to the iphone 5 and my messages arent on there  How am i able to get them back???

  • SAP BW quick sizing

    Hi all, I am currently at a client location. I have collected all the information related to sizing and i have all the infocubes with their dimensions and keyfigures and all the ods related information. The customer wanted quick sizing output. When i

  • Css shows in live view, not in design view

    Hi all- I'm new to dreamweaver and was trying to move a site I have already coded into dreamweaver, hopefully to be able to find errors but mostly to be able to update more quickly in the future. I've noticed one pecularity (at least to me!) - I have