How to convert batch application to server app?

I have an application that performs some processing task in batch mode: data in, processing, data out. The application can be accessed through a well-documented API but is not thread-safe -- one cannot run the processing function in two threads concurrently.
In order to make that processing accessible to a program written in another language I would like to encapsulate it into some form of server.
I would like to find some minimum overhead solution where the other program sends the data to the server app in some way, waits for the processing to complete and reads back the result. One option would be to use the HTTP protocol with a POST request, another to write the data to a database row and send some command over a socket.
My main problem is: which solution is the easiest to implement and use and the one that allows to serialize the processing with the least effort. The solution should make it easy to prevent deadlocks or similar nuisances.
Are there some standard patterns for doing this or what would you Wizards recommend?

Thanks for the answers!
I must admit that I am still rather clueless in general about the issues involved here.
My immediate need is to send text files to the java application and get back processed text files. At the moment I have to do this from perl, but in the future, other languages (mostly scripting languages) might also need to do this.
So what I am trying to achieve is this: the client should be able to access the Java application/service as if it was some synchronous write/read operation (similar to a HTTP post request waiting for a response). There might be several clients working in that way but the the server should make sure that they get cleanly serialised: only one text file can be processed at any one time because the API is not thread safe.
I also cannot change the API itself -- just wrap into something that will do what I described. The more lightweight,easy to use, and easy to implement the solution the better.
For example, is there some kind of mini HTTP server and some serialization mechanism in Java that would make it possible to run the Java application disguised as a web service? Are there disadvantages to this and other solutions that are more suited?
I have looked at JMS and it does make a bit of a heavyweight impression to me. Also I'd prefer a solution where the clients use some mechanism that is more general, e.g. HTTP or the file system or maybe even a RDBS table (not sure what the possible traps with regards to deadlocks, timeouts etc. are there).

Similar Messages

  • How to upload the application to the App store to test my application

    Hi
    Im very New to Iphone Development, Can any one tell me how to upload the application to the App store to test my application,i paid and got the id from the apple people.i need to know how to upload & download my application to test and even for the production basics,
    Kindly help me in step by step references,so that it will be easy to finish my work in time.
    Thanks
    Sivasankar.p

    You'll probably have better luck going to the Developers forum that you have access to since you signed up for the program.

  • How to deploy ADF applications in Oracle apps

    Hi,
    I just gone thru demos on ADF rich client applications using jdeveloper 11g.My doubt is how to deploy and use these from oracle apps.Is ADF supported in R12.If yes then could anybody provide me steps to deploy code at unix file system and how to create form functions for accessing jspx pages?
    I know that in OAF, we can deploy server components at $OA_java and PG.xml files using xml importer and we can create form functions for PG.xml files.Similarly what are the steps to deploy and access ADF applications thru oracle apps.
    Thanks,
    ashok

    ADF Rich Client Components need a newer server than the one that comes with Apps R12.
    So what you'll need to do is have a separate WebLogic 10.3 server where you deploy the ADF Rich Client Applications.
    You can call them from your Apps by customizing your current apps and adding a button or link that just calls the URL where your ADF apps are.

  • How to convert WAR application to be able to deploy it with JSPM and SDM?

    We have to be able to deploy an application packaged in WAR file usign the JSPM and SDM GUI tools.
    Using the Deploy tool there are no problems to build EAR file from the WAR and deploy it successfully to tha Application Server.
    How should we convert our WAR application, or the EAR file created with the DeployTool in order to be able to use these 2 tools?
    Using that EAR file with the JSPM and SDM GUI tools doesn't work:
    JSPM
    The ear file is copied in the inbox directory, but there is the following message:
    No applicable support package stack(s) found for deployment in inbox directory
    server\sapmnt\trans\EPS\in
    SDM GUI:
    When providing the EAR file created with the DeployTool, the SDM GUI fails to add it:
    com.sap.sdm.util.sduread.IllFormattedSduFileException: The information about the development component found in the manifest is either missing or incomplete!
    Manifest attributes are missing or have badly formatted value:
    attribute keylocation is missing
    attribute keyname is missing
    attribute keyvendor is missing
    attribute keycounter is missing
    After adding these attributes, we couldn't manage to provide valid manifest header.
    How can we modify/create valid manifest in order to be able to use the SDM GUI tool?
    Please, give us directions how to convert our WAR package in order to use these tools?

    Hi Sam
    Check out the below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/1b/92e4e701b242c2833a7adde6ecad09/frameset.htm
    If you have an already built war file then most probably the easiest way to assemble it and deploy it will be to use the deploy tool (http://help.sap.com/saphelp_nw04/helpdata/en/35/e3ee3da7138e5be10000000a114084/frameset.htm) Usually we use the NetWeaver Developer Studio to build and deploy J2EE Applications (http://help.sap.com/saphelp_nw04/helpdata/en/fe/a3996fa314f94f8a0c3475b08636d0/frameset.htm).
    OR
    As i understand you the source files arent available so rebuilding is out of question.
    0. Add web-j2ee-engine.xml in the same path as web.xml
    <web-j2ee-engine>
    <login-module-configuration/>
    </web-j2ee-engine>
    1. Create a Dummy EAR file.
    2. Add the WAR file to the base directory (path should be blank if you view the EAR in WinZip).
    3. Open the application.xml and add the entry for the WAR file
    <application id="Application_ID">
    <display-name>EAR_Name</display-name>
    <module id="WebModule_1127381405488">
    <web>
    <web-uri><WAR NAME>.war</web-uri>
    <context-root>sampleContextRoot</context-root>
    </web>
    </module>
    </application>
    Note: The number in module id has some significance, for the time being you have any random number.
    Deploy the EAR.
    Reward points if usefull

  • How to convert an Application Service into a Web Service

    Hi,
    I am working on SAP Netweaver CE 7.1. I have created an Application Service which returns an output as a List with each elemnt of the list conatining some attributes and a List.
    now I want to convert this AS into a Web Service. how I can do that as teh Developer Studio doesn't allow me to select the method which returns the List.
    Also how should I deploy the Web Service and test the same.
    Please reply ASAP.
    Manish

    To convert your Application Service into a Web Service ,
    1) go to General Tab of your Application Service
    2) check the option Remote Enabled Service , Save Metadata
    3) Right click Application Service and select  WebService New , give name for your Webservice and select Default Configuration type : Simple SOAP or select Basic Auth SOAP if u want your webservice to be password protected , just click next and finally finish
    4) Genearte your project code , build and deploy your application
    5) Then goto webService navigator to test your Web service
    Hope this helps
    Thanks
    Asif

  • How to ipdate the application from the app atore

    Ahm ser, man i have 1 question i hope you help me how to update the application from app store i have apple id and ok if seach from app store but if i update the application from app store the apple id is change and if i enter the password, say wrong password or id, please help me my unit is iphone 5

    This makes little sense, but if you are trying to delete one of the built-in Apple apps this can not be done.

  • How to convert existing webistes to iPhone Apps.

    I have two price comparison website; I have them for nearly a year now. All though this website makes me some profits, I think I am missing out on the new mobile based Apps for my website.
    So what I want to find out is how easily I can convert both my price comparison website to an iPhone price comparison Apps.
    Both my website are as following:
    http://www.pricelooker.co.uk
    http://www.payasyougomobilephones.mobi
    I look forward to receiving interesting responses.

    It's as simple or hard as repackaging your web-site content into a new "skin" to create a WebApp.
    Without knowing how your websites have been put together, it's impossible to say how easy this may be, but there are pre-built iPhone-style web UI's which do some of the work for you.
    This is one of the best: http://www.jqtouch.com/
    And here's another: http://code.google.com/p/iui/
    To convert to a dedicated iPhone App you download from the AppStore is a completely different kettle of fish...

  • I dont see how to gift an application from the app store on my iPad

    I am trying to gift an app to a friend and i cant find how to do it inside the new app store.
    I ended up going to the itunes store on my laptop but it was nice to be able to do it from the store

    You need to delete all the applications which were downloaded from that account.
    (85767)

  • How does one unistall OS X Server.App ???

    I have a Apple Mac Pro "Quad Core" 3.2 (Server 2012), with Lion Server installed. I want to upgrade to Mountain Lion but want to unistall all server software, I just want the "normal" Mountain Lion installed. Any help highly appreciated.

    Dragging the server app to the trash will appear to work - but when you go to empty the trash - you will see the following message below - and the trash will not empty.  A subsequent attempt at emptying the trash will allow the trash to be emptied.  Most of the components of the server are still in-fact installed - and will be reinstated when the server app is reinstalled.
    When you do in-fact return the server app to the applications folder - opening it will result in having to go through the setup process again - under the assumption that some or all of your previous settings will be retained as well as any service related data.  I can only assume that the original poster "tsblackard" is looking to completely remove the Server App and all of it's related services and data - and to the best of my knowledge the only way to do this is to restore the Mac from a backup prior to having set up the server.  I suspect it can be removed manually - but not without a lot of hacking - that may or may not prove to be successful.
    ~Scott

  • How to add USB storage to Server.app

    I've recently moved to OSX for my development platform. I've installed the Server.app from the app store and need to start creating my development sites. The problem I'm having is that my 1TB USB 3.0 drive is not being seen by the Server.app's storage tab, thus not able to create website storage there. Can anybody please point me in the correct direction?!

    Hurray! We have success! So the answer is that only drives formatted in the MacOS Extended format work within the Server.app. Props to Mark23 for his indirectly direct answer to adding USB drives to OSX server!

  • How to convert .txt (from applicaiton server) to internal table

    hi all
    i want to convert .txt (from applicaiton server) to internal table , im getting the contents in the itab, but im not able to remove '#',
    can anybaody help me?
    Thanks.

    The # is a representation of the tab, so you need to do something like this.
    report zrich_0001.
    data: str type string.
    data: begin of itab occurs 0,
          fld1(10) type c,
          fld2(10) type c,
          fld3(10) type c,
          end   of itab.
    data:
          dsn(100) value '/usr/sap/TST/sys/test.txt'.
    constants:
        con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    clear itab.  refresh itab.
    * Read the data.
    open dataset dsn for input in binary mode.
    do.
      read dataset dsn into str.
      if sy-subrc = 0.
       split str at con_Tab into itab-fld1 itab-fld2 itab-fld3.
        append itab.
      else.
        exit.
      endif.
    enddo.
    close dataset dsn.
    Loop at itab.
      write:/ itab-fld1, itab-fld2, itab-fld3.
    endloop.
    Regards,
    RIch Heilman

  • How to convert WebDynpro Application into Webservoce

    HI Experts,
    I have one WebDynpro Application which has the functionality of search Using KM Index Management API's.
    This performs the search in portal using TREX.
    My requirement is to use this functionality in sharepoint portal(Microsoft Product).
    From this sharepoint portal they want to use this search application to search in portal.
    Now my choice is to convert this WebDynpro application into webservice so that , share point server guys can call webservice to use that search application.
    How can I Convert my webdynpro application into webservice?
    Any other ideas?
    Thanks in advance
    Regards
    Bala
    which needs to be converted into

    Hi Bala,
             I think there is no possibility as for your query. You will be allowed to create a webservice which is a piece of code that can be applicable to required application. Gothrough the following link to know clear details about webservice.  
    http://help.sap.com/saphelp_nw04/helpdata/en/84/54953fc405330ee10000000a114084/content.htm
    download.microsoft.com/download/f/3/7/f371bbba-2341-41bf-822d-2c7dd4174756/UI_CreateWebServices_5min.ppt
    Regards,
    Harish

  • How to convert from a Dedicated Server to Shared Server

    I have an oracle database 9.0.7.0 running on a Solaris box. The way it was setup initially was to used a dedicated connection.
    I want to convert that to a shared connection
    Can any body suggest how to go about it

    Thx for the Post now I am running into diffrent problem
    look at my TNSNAMES.ora
    GDAT1.ILABSGROUP.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.213.27)(PORT = 1521))
    (CONNECT_DATA =
    #(SERVER = SHARED)
    (SERVICE_NAME =GDAT1)
    if i uncomment ( Add the line) SERVER = SHARED i get a
    ORA-12523: TNS:listener could not find instance appropriate for the client
    connection
    Please assit

  • How to recover an application from Server - Very Urgent!

    Hello,
    I have accidently deleted an important DynPro application I've created from the Netweaver Developer studio.
    When I search it's name at the server I see many many ear (and wda) files with the name temp<MyApp_Name> from different dates, I guess each deployment is creating such file. How can I recover my application back to the Netweaver Developer Studio from these ear files?

    Hi Roy,
    If it is the application which you have deleted then reimport without saving the project or create a new application for the project.
    Hope you have not deleted the proect from work space.
    I believe you cannot retreive your project from the ear file.
    Kindly close all the queries that has been solved.
    Do get back for further clarifications.
    Regards,
    Noufal

  • TS1702 How to restore my applications from the App Store after changing my country?

    I had changed my country inside my Apple ID and I couldn't retrieve my purchased applications after that
    Anyone have solution for such a case

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

Maybe you are looking for

  • Change posted reversed FI document (G/L) posting date

    Hi All, my finance staff wrongly enter the posting date when she reverse a FI document. She wanted to know the way to change the poster reversed FI document, if possible. Or can she undo the reverse process back to before reverse so that she can redo

  • AS Extensions for AIR / native C

    Hello! As someone else mentioned on this thread (http://forums.adobe.com/thread/790040?tstart=0). The "Developing ACTIONSCRIPT Extensions for ADOBE AIR" Guide (http://www.adobe.com/content/dam/Adobe/en/devnet/devices/pdfs/DevelopingActionScriptExtens

  • When will Java SE 7 Programmer II be available?

    Dear all, Does anybody has information about the date? I successfully took the Programmer I exam this week and I fell ready to take the second exam now. What about beta exams? Do they have the same "value" as a released exam? Any pro or cons? Best re

  • Forwarding Traffic

    Currently our Cisco Router handles our DSL traffic.  The DSL traffic goes directly to the cisco router and then out to the rest of the world, the traffic never hits our switch.  I would like to use a bandwidth management device (BCU) to throttle cust

  • Help with NullPointerException error.

    Hey Im trying to learn java and im doing by creating a simpel text game, but im stock at this NullPointerException error. What i want to do is to set the currentRoom a player is in. The room objects i create in my game class and then i want to set ou