Is Multiple Http handlers are re-commended

Dear All,
We have created an Http handler service using sicf and this will be used by the mobile application for online queries. Now i would like to know what is the best method of implementation. Please adress the following queries.
1. Is it better to implement one http handler for one query or same http handler with different methods in it (one for each query)?
2. If single http handler is implemented, what will happen if the number of concurrent requets are increased in the future?
3. Do we have any other points to be concidered while implementing http handlers?
Can you please sugget me, best method of implementation, so that it will be a great help.
Thanks and Regards,
Kiran.

Hi
Having single handler for all or one for each query is basically implentation decision wrt to ease in handling future changes,  code brevity etc.
As far as runtime handling is considered it may not make much of a difference: as the web server will try to find out the suitable handler each time HTTP request is made and execute the request with that handler on the available work process. So if you are expecting large number of concurrent request, you need to have provision for corresponding work process requirements.
pradeep

Similar Messages

  • How best to make a transaction span multiple HTTP requests?

    Hi, all. What is the best way to implement a transaction that spans multiple
    HTTP requests? Many J2EE applications must solve this problem, but I can't
    any guidelines for an implementation.
    Consider an application that implements a multi-step wizard. Each step
    gathers data from the user; step one gets the user's name, and step two gets
    his dog's name. When the user completes the wizard, the application saves
    the user & dog in two entity beans. Conceptually, the application treats
    this wizard like a single, long-running transaction. The transaction begins
    when the user launches the wizard. Submitting the JSP for step one adds the
    Boy bean to the transaction, and submitting step two adds the Dog bean.
    Finishing the wizard commits the transaction. Exiting the wizard or timing
    out causes the transaction to rollback.
    Although the wizard looks like a transaction, the entire sequence of user
    interactions can't be captured in a single JTA UserTransaction. A
    UserTransaction must be associated with a single thread, but each wizard
    step is handled asynchronously by its own execution thread. It's impossible
    to funnel the conversation through one thread that can demarcate the
    transaction. (This would be a pretty dumb solution for other reasons, but I
    don't want to get lost in details.)
    I think the standard way to solve this problem is to store conversation
    state in a stateful session bean (or the http session) and create / update
    both entity beans in a transactional EJB method after the wizard completes.
    Unfortunately, this solution prevents me from leveraging a lot of great
    transaction management features provided by the app server. For example, I
    can't use optimistic concurrency to make sure that the dog object hasn't
    changed in the database between the start and end of the wizard. Also, I'm
    forced to keep track of changes to the dog object in the conversation state,
    then replicate these changes to an entity bean at the end of the wizard.
    Keeping track of state in a stateful bean is pretty straightforward, but it
    seems like there must be an existing solution that leverages the appserver's
    concurrency and state management features. Am I missing something? Is there
    code, a pattern, or an article that describes the best way to implement a
    multi-step process that looks transactional? I suppose WLI does what I want,
    but that feels like killing a roach with a SCUD missle. Thanks for any
    advice.
    Dave

    Dave Smith wrote:
    Without a transaction, will the app server manage the version column
    automatically, assuming of course that <concurrency-strategy> is
    "Optimistic" and <verify-columns> is set to "Version"? Of course, I'll have
    to expose the version as a cmp-field, which is fine with me.Yes
    >
    Do you know offhand, so that I don't have to get off my lazy ass and write a
    test, whether the CMP service will create the version column when it
    generates db tables? (I realize it's not good to let WLS generate the tables
    in a production system.)No, I don't think it does.
    >
    I assume from your answer that I'm on my own for implementing stuff like and
    transaction inheritance and tracking object modifications? Well, we'll give you a bit of help on the object modifications. The
    usual pattern is when you're pushing the JavaBean back to the CMP you
    call all the setXXX methods on the CMP bean. Our CMP container will
    check if the value you are setting is the same as read from the db. If
    so, it will not update that column.
    -- Rob
    If so, no big
    deal. I was just hoping somebody would say, "Oh, you want the Jakarta
    SuperBeans project" or something.
    Thanks,
    Dave
    "Rob Woollen" <[email protected]> wrote in message
    news:[email protected]...
    I'd recommend that you include a separate version or timestamp column in
    your db schema.
    Then do something like this:
    Client Server
    1) First HTTP Request
    2) Read current Dog and Boy Entity Beans
    (if any) and copy their values into a JavaBean.
    You want to include the version
    column(s) in the JavaBean(s) along with the data values.
    You probably also want to store the JavaBeans in
    your HTTP Session.
    3) Client proceeds through wizard interacting with JavaBeans
    4) Finish with Wizard, copy JavaBean values (including
    version columns) to CMP 2.0 Entity Beans.
    The version column will give you the optimistic concurrency protection
    that you desire without opening a JTA transaction to span user input.
    -- Rob
    Dave Smith wrote:
    Hi, all. What is the best way to implement a transaction that spans
    multiple
    HTTP requests? Many J2EE applications must solve this problem, but Ican't
    any guidelines for an implementation.
    Consider an application that implements a multi-step wizard. Each step
    gathers data from the user; step one gets the user's name, and step twogets
    his dog's name. When the user completes the wizard, the applicationsaves
    the user & dog in two entity beans. Conceptually, the application treats
    this wizard like a single, long-running transaction. The transactionbegins
    when the user launches the wizard. Submitting the JSP for step one addsthe
    Boy bean to the transaction, and submitting step two adds the Dog bean.
    Finishing the wizard commits the transaction. Exiting the wizard ortiming
    out causes the transaction to rollback.
    Although the wizard looks like a transaction, the entire sequence ofuser
    interactions can't be captured in a single JTA UserTransaction. A
    UserTransaction must be associated with a single thread, but each wizard
    step is handled asynchronously by its own execution thread. It'simpossible
    to funnel the conversation through one thread that can demarcate the
    transaction. (This would be a pretty dumb solution for other reasons,but I
    don't want to get lost in details.)
    I think the standard way to solve this problem is to store conversation
    state in a stateful session bean (or the http session) and create /update
    both entity beans in a transactional EJB method after the wizardcompletes.
    Unfortunately, this solution prevents me from leveraging a lot of great
    transaction management features provided by the app server. For example,I
    can't use optimistic concurrency to make sure that the dog object hasn't
    changed in the database between the start and end of the wizard. Also,I'm
    forced to keep track of changes to the dog object in the conversationstate,
    then replicate these changes to an entity bean at the end of the wizard.
    Keeping track of state in a stateful bean is pretty straightforward, butit
    seems like there must be an existing solution that leverages theappserver's
    concurrency and state management features. Am I missing something? Isthere
    code, a pattern, or an article that describes the best way to implementa
    multi-step process that looks transactional? I suppose WLI does what Iwant,
    but that feels like killing a roach with a SCUD missle. Thanks for any
    advice.
    Dave

  • Creating multiple http servers on one machine

    I created multiple http servers on one machine.
    I did this in the following way:
    Created a http service as nt service with the following command:
    apache -i -n Testservice -f d:\oracle\isuites\apache\apache\conf\httpd2.conf.
    When I start the service, I always get an error:
    Didn't return an error. Cannot start service.
    Can someone help me.
    I need two httpd services as nt service. Because, I want to use oracle fail safe. So I need a service.
    Alternative : I can create batch files. But I want to start these batch files as nt service. Is there a possibility on
    Windows nt to do this, or an available tool.
    Thanks in advance,
    Iloon

              "Jason Rosenberg" <[email protected]> wrote:
              >Hello,
              >
              >I am wondering about having multiple servers on one machine.
              >I take it, each server will require a unique ip address, which can
              >be done either by using multiple NIC's or using multi-homing.
              If you want to have multiplie servers in the same machine and you want to cluster them then you need ip for each instance.
              If you want multiple instances without clustering, then you can have them run on the same ip but each one should have a different port.
              >
              >I am asking because I am wondering whether it will always be valid
              >for me in servlet code to identify my current server instance by
              >ip address (InetAddress). Or is there a better way to do this?
              If you are accessing the ejb/services on the same server using a servlet. You can get the context, simply using the default getInitialContext(). This should return the context to the local machine. This shoudnt require any ip information.
              >
              >Jason
              >
              >
              

  • IOS AIR3.6  runtime error 3747 Multiple application domains are not supported on this operating syst

    3747
    Multiple application domains are not supported on this operating system.
    I'm getting this error from an IOS app compiled with air 3.6.
    No code has changed  from Air 3.5 which is error free. Web app / android versions of the same codebase do not error.
    See the stackTrace below ( well done Adobe for providing this since air 3.5 !! )
    I use swfloaders for loading embedded swf vector art graphics. This has not caused any issue until now. Should I load all art into the main app's application domain ?
    The error does not crash the app and I could suppress it easily but is could the tip of the iceberg because application domains are scary stuff.
    Error: Error #3747
            at flash.display::Loader/loadBytes()
            at mx.core::MovieClipLoaderAsset()
            at mx.controls::SWFLoader/loadContent()
            at mx.controls::SWFLoader/load()
            at mx.controls::SWFLoader/initializeHandler()
            at flash.events::EventDispatcher/dispatchEvent()
            at mx.core::UIComponent/dispatchEvent()
            at mx.core::UIComponent/set processedDescriptors()
            at mx.core::UIComponent/initialize()
            at com.komodomath.app::ImageSWFloader/initialize()
            at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
            at mx.core::UIComponent/addChildAt()
            at spark.components::Group/addDisplayObjectToDisplayList()
            at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()
            at spark.components::Group/setMXMLContent()
            at spark.components::Group/set mxmlContent()
            at spark.components::SkinnableContainer/set mxmlContent()
            at spark.components::SkinnableContainer/createDeferredContent()
            at spark.components::SkinnableContainer/createContentIfNeeded()
            at spark.components::SkinnableContainer/createChildren()
            at mx.core::UIComponent/initialize()
            at com.komodomath.lesson::SaveStatusCheck/initialize()
            at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
            at mx.core::UIComponent/addChildAt()
            at spark.components::Group/addDisplayObjectToDisplayList()
            at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()
            at spark.components::Group/addElementAt()
            at mx.states::AddItems/addItemsToContentHolder()
            at mx.states::AddItems/apply()
            at mx.core::UIComponent/applyState()
            at mx.core::UIComponent/commitCurrentState()
            at mx.core::UIComponent/setCurrentState()
            at mx.core::UIComponent/set currentState()
            at com.komodomath.maingroups::LessonGroup/handleNewLessonClick()
            at com.komodomath.maingroups::LessonGroup/___LessonGroup_KButton1_click_lessonOver()

    same issue as http://forums.adobe.com/message/4736711

  • How do I delete multiple photos that are stored on my IPAD imported folder? I have a first generation IPad

    How do I delete multiple photos that are stored on my IPAD imported folder? I have a first generation IPad

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • Macbook not waking unless multiple thunderbolt displays are disconnected and reconnected

    My macbook not waking unless multiple thunderbolt displays are disconnected and reconnected

    Hello, mimmosan. 
    Thank you for visiting Apple Support Communities.
    Here are a couple troubleshooting steps that I would recommend.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    About NVRAM and PRAM
    http://support.apple.com/kb/HT1379
    Cheers,
    Jason H..

  • How do you select and move more than one bookmark at a time? Shift+Click does not select multiple items that are next to one another in a list because the item

    How do you select and move more than one bookmark at a time?
    Shift+Click does not select multiple items that are next to one another in a list because the items open in firefox before this happens.

    Use the bookmarks library. You may use Shift +Click, and Ctrl + Click to create groupings of selected bookmarks to drag and drop.
    * one method of opening the bookmarks library is keyboard shortcut <br /> Ctrl+Shift+B (Windows)
    *see also [[How to use bookmarks to save and organize your favorite websites]]
    *and [[Use bookmark folders to organize your bookmarks]]

  • How to avoid purchasing multiple things that are the same but different titles

    How can I avoid purchasing multiple things that are the same but have multiple names but is the same purchase for the same use?

    "Things"?  What things?  Apps for keeping track of when to change cat litter?  30 different versions of "twinkle, twinkle little star" played by everything from punk rockers to Gregorian chant?  Videos on the best way to make Christmas cake?

  • How to post multiple http requests using a single http connection in java

    I am using the httpurlconnection class and it allows only to post one request on a connection. I require to post multiple http requests by opening a single connection. Code examples please. Thanx in advance.

    Hi
    I found this article through Google. I hope it helps a little
    http://www.developer.com/tech/article.php/761521
    D

  • How do I get files from multiple DVDs that are using thesame file names?

    How do I get files from multiple DVDs that are using thesame file names? Message says "file already exists in catalog"
    Message was edited by: marcr56

    marcr56
    I am viewing your question from different perspective, that is, the issue that you face when you are ripping VOBs from a second DVD-VIDEO on DVD disc using Premiere Elements,
    It is best to give the Premiere Elements version and computer operating system that it is running on. In the absence of that, I will generalize.
    Assuming that you are using
    Premiere Elements 12
    Add Media
    "DVD Camera or Computer Drive"
    Video Importer
    Typically the Video Importer Save In: is C:\Users\Owner\Videos
    Each of your DVD discs is going to have the same names for the ripped VOBs (VTS_01_1.VOB and so on depending on the duration of the movie). Consequently, after the ripping of the first DVD's VOBs and their save to Videos, you will end up with that "files already existing..." block for the ripping of the VOBs from the second DVD.
    The answer is, for each DVD disc VOB ripping, to plan ahead and create and set for different folders in Videos in the Save In field of the Video Importer.
    Please review and then let us know if that works for you. Please do not hesitate to ask if you need clarification on anything that I have written.
    Thank you.
    ATR.

  • Https site are not opening on tmg 2010

    Hi
    I ;ve configure TMG Server 2010 on server 2008r2 SP1. but there https site are not working. I 've created access rules but after that its not working. so please tell me that how to open (Allow) HTTPS websites.

    Hi,
    Please check the TMG logging to troubleshoot this issue.
    How do you configure these access rules? Please refer to the link below to see if any misconfiguration existed:
    Configuring web access
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Safari not responding when HTTPS connections are unavailable

    I'm using a 13" MBP with 10.7.2 installed, which is setup to sync calendar, address and bookmarks with iCloud. Since last week I've constantly encounter a problem that my Safari 5.1.1 would keep crashing, and I had to delete the ~/Library/Safari/extensions folder to get it back to work.
    This situation happened whenever I've switch to wireless connection. In my office we've setup a limited wireless environment that all HTTP/HTTPS connections will be redirected through a proxy. Since last week the proxy server was malfunctioned. All HTTP connections are proceeded normally, but all HTTPS connections will be suspended. I'm not sure but I suspect it's the main reason for the crashing problem.
    The syndromes are:
    1. When I left Safari open, unplug the ethernet, and turn-on WiFi, everythings goes on normally, until I open an HTTPS web page, for example, https://www.icloud.com. Of course that HTTPS URL will not load, since our proxy is broken; but the connection itself will NOT timeout. I've tried to leave it connecting for 10 minuntes, and it's still there.
    2. The statement above may due to a glitch in our proxy server and I can understand that. But the problem is: after I tried to open an HTTPS connection, the Safari will refuse to open any other URLs, including normal HTTP connections. It will just keep "connecting". Meanwhile the FireFox and Chrome can load these HTTP pages normally.
    3. If I quit Safari in this situation, Safari will not be able to re-launce: the icon will keep bumping on the dock. I have to force quit Safari and delete extensions folder, so that it can be launched again. But even after Safari re-launced, it still refused to load HTTP pages.
    4. Neither reconnecting WiFi, relogin, or switching back to ethernet can fix the problem. I have to restart the whole system to get it back to normal.
    It seemed to me that some Safari-related process will keep in the system after Safari is quited. And that process may keep the inactivated HTTPS connections alive in its TCP pool, and blocked all sequence connections, including the iCloud synchronization. And while I force-quit Safari, the extensions.plist file is damaged. That's the only plausible explanation to this situation.
    I'm sure this situation is introduced after 10.7.2: it's not the first time our proxy server breakdown, but I've never have this problem before.

    I've done some detailed test and now I can give a conclusion:
    1. It's confirmed that sequence HTTPS connection will be blocked in Safari and Google Chrome after a failure HTTPS connection (due to proxy). And rebooting is the only way to recover connections.
    2. My previous observation is wrong: this is NOT a system wide problem. FireFox is not affected. FireFox will return to normal and all sequence HTTPS connection can be proceeded without any problem when I reconnect to a valid network connection (i.e. ethernet), while the Safari and Google Chrome remained being blocked. And DropBox is NOT affected as well.
    3. None of the solutions mentioned in other threads can solve this problem. Checking the "Auto proxy discovery" does not help. Delete ~/Library/Preferences/com.apple.security.revocation.plistfile does not help. Clean Keychain does not help either. I've created another account for testing.
    4. It's apparently something related to some system built-in network services. Since the FireFox and DropBox both gets its' own Proxy implementation, while Safari and Google Chrome will take the system settings. It's also worth noting that the POP3-SSL connection in Mail.app is also blocked after a failure HTTPS connection.
    Currently the ONLY valid solution is using FireFox instead.

  • For the cm with multiple bps, what are the options for workaround?

    For the cm with multiple bps, what are the options for workaround?
    customer a purchases 1000
    and returns 800 at POS
    customer b was used at SAP related to  this transaction, purchase amounting to 2000,what can we do to apply the returns of customer a to customer b of 800 return transaction at pos?customer a and customer b code pertains to just one client---but were given different codes at POS and at SAP

    Hi,
    If one customer has two codes, you can only do manual journal entry to adjust their accounts.
    Thanks,
    Gordon

  • Multiple excise invoices are generated

    Multiple excise invoices are generated from one billing document using transuction code J1iin. Suppose there is a billing document whose number is 123456, now when I am using t-code j1iin to create excise invoice i am able to create two excise invoices from the same billing document.
    Please help me to sort out this issue...

    Hi,
    I dont think it makes sense to have 2 excise invoices for 1 GR.  Can you please explain the scenario ?
    As per std. SAP you can capture multiple excise invoices against multiple GRs only.
    Thanks & Regards,

  • Multiple ALEAUD Idocs are being generated per original Idoc

    We have the following scenario in PI:
    ERP (IDOC)> PI (JDBC)> 3rd Party
    PI sends ALEAUD idocs back to ERP when the process is successful.  Program RBDAPP01 is then ran on a schedule to update the ALEAUD idoc status, which in turn, updates the idoc status of the orignal idoc sent from ERP (03 to 12). 
    We just upgraded our PI from 7.0 to 7.1.  Now, it seems multiple ALEAUD idocs are being created for each ERP outbound idoc.  It used to be 1-to-1.  From what I can tell, it look like an ALEAUD it created for every receiver.  For example, if we sent one idoc and the data goes to 3 receivers, 3 ALEAUD idocs are created.   This causes an issue because the first ALEAUD idoc will update the original outbound idoc to status 12, but any other ones will take it from status 12 to status 09.  We want it to stay in status 12. 
    Any ideas why 7.1 would be any different?

    This seems to be the standard behavior. I will explain it.
    If an idoc comes and message is sent to say three receivers, all the three message  should generate the ack unless they are not disabled. And in this case you will find multiple ALEAUD message at sender. In case the receiver adapters are like File, JDBC which do not support application ack, then ALEAUD won't be sent and you will receiver "Applicaition Ack Not Supported". With this error, if multiple ack are seen in sender then I guess they won't actually perform any update.
    Regards,
    Prateek

Maybe you are looking for

  • How to import catalog and create new link to folder in a new external disk

    I lost my data in my laptop. I have a back-up into an external hd. Now I would like to import the catalog and change the link of folder to external disk

  • How to pass parameters between tow windows.

    hi, iam opening my first.jsp in browser. it contains a button called click .if we click on this button it opens a new popup window with another jsp page..it have one text box.where user enter a value.and clicks on submitt..when i click the submit but

  • Need help with Adobe

    I did install Adobe Reader and Adobe Flash Player once again, but I am not sure what am I not doing right. Attached is the error that I receive when I try to open the PDF File by double clicking on it. The error says "C:\Documents and Settings \Nasia

  • Unable to communicate with dynamic analysis cloud

    I have two interfaces on Defense Center.  One of them (eth1) is on a management vlan that does not have Internet access.  When AMP tries to connect to cloud it frequently tries via eth1 and I get the above message and a health monitoring alert.  I kn

  • Officejet Pro 8600 plus 'seeing' duplicate wireless networks - and refusing to connect

    Greetings, I am running a wireless network that uses a couple of Airport Expresses to extend it. My other HP Printer (Officejet 8500) has no problem connecting to the same network. I am running MacOS 8.2 and have downloaded/installed  Officejet-Pro-8