Redirecting requests to a different tomcat

Hi,
I have two tomcat 5 installations running in my server. I have enabled the load-balancing feature of tomcat via apache.
The load-balancing and failover is working fine for me to redirect requests for all the webapps under a tomcat. Can this be done for a single webapp alone ?
What i mean to say is if I go to the tomcat1 manager UI and stop one of the webapps, then the requests for that webapp should alone be served from tomcat2 ...
Please get back if iam not clear

no experience with tomcat 5 laodbalancing, but if it really is enabled it should work when only 1 of the 2 is active.

Similar Messages

  • Leave request mail in different languages

    Hello,
    we are using the leave request functionality for different countries. The report RPTARQEMAIL is scheduled as a daily job, but sends the emails in english only (the schedule user is defined with language 'EN').
    We changed the english text of the email (SE61) and included all languages which we need. But the email subject is still just in english. Furthermore the email is getting quite long and not really user-friendly.
    We would like to send the emails always in the user's language (text and subject). Is there a way how to do this in the standard report?
    Thanks for your support!
    Nicole

    You need to copy and modify the program to pick the user language text from SE61. This is required since the standard text is mentioned in Selection-Screen of this report will be picked always. you should also be able to change the subject line since this program sends composed mail.

  • Controlling requests sent to a Tomcat service

    I have a web service that acts as an entry point (EP henceforth) to the rest of my system. This service accepts requests for processing via a particular API call that it exposes to clients. It is my understanding that every time a client makes a request, Tomcat spawns a thread of my EP, and services the request. I have verified this.
    Now, I want to be able to control the threads that Tomcat creates. I want to block the threads that Tomcat creates to run my service, so that I can service incoming requests only when I am ready.
    How do I block the Tomcat container generated threads? Further more, how do I take control of which thread is woken up when I call notify()?
    I have tried the following :
    //Created a global variable in which to store the blocked objects
    static Vector blockedRequests = new Vector();
    // Created a per object local variable on which synchronization will be performed
    Vector lock = new Vector(); // no particular reason for choosing a Vector object
    if ( current request cannot be serviced) {
      // add the current object into the Vector
      // also stores its instance of the 'lock'
      blockedRequests.addElement(this);
      synchronized(lock) {
             try{
                   lock.wait(); // waiting on the lock object. blocks the current thread.
               } catch ()
    else {
         // service the request.
         // select a particular blocked request from the Vector
         // obtain its copy of the 'lock' object.
         // and wake it up, using its 'lock' object
         synchronized(lock){
                 lock.notify();
        The way I think this works is as follows:
    * Every time a request is made, the Tomcat server creates a new instance of my program and runs it in thread from its threadpool.
    * On each request, I check (some condition X) to see if I can service the request immediately.
    * If not, I store the current instance of my program in a globally accessible queue.
    * Each time a thread successfully services a request, it checks the condition X . If I can handle more requests at that time, and there are requests blocked in the queue.
    , I notify one of the blocked threads I choose, using a local variable of the object.
    In brief, there are a bunch of threads that are running my program. I want to control which thread runs when. I create a queue accessible to all threads, and also a condition that can be modified by any thread in a synchronized manner. Say the condition was just a counter. When a thread runs, it increments the counter. If the counter hits some threshold, future threads will be blocked, until a currently running thread completes its task and decrements the counter, after which it also notifies a blocked thread.
    Is this the right approach?
    How else do I take control over when a thread runs inside Tomcat, so that I can queue the requests and service them in the order that I want?

    I am not sure I understand your requirement completely. But, if you want to process requests at your control, let tomcat servlet add the requests to your program queue so that your program can process them one by one whenever it wants to.
    For selective notification to a particular thread, each thread can wait on one object that is also shared by your program. So, one object is used as a monitor between your program and one waiting thread. I think you are doing this already!!?
    If you can specify more clearly why exactly would you want to control the requests, may be i can try and think better.

  • How does one redirect installation to a different disc drive?

    How does one redirect installation to a different disc drive?

    Hi space needle,
    Thank you for posting on the Adobe forums, please help us with the information listed below for further assistance on this.
    1) which Application are you trying to install?
    2) Operating System you are working on
    3) Method of installation (customized or the standard installation)
    Thanks,
    Vikrantt Singh

  • When downloading an update from app store, password is requested from a different user.  How to change user?

    when downloading an update from app store, password is requested from a different user.  How to change user?

    Unfortunately there's no way around this.  you will need that password to update the apps. If he won't give it to you, then i'm not sure what to say.
    You should have kept the account with the Apps you bought yourself.
    Otherwise, as I said, delete the Apps, and buy them again.
    Sorry.

  • The dependent requests are in different transport orders

    Hi,
    When i save a particular query, and then try to reopen it, i get an error saying "The dependent requests are in different transport orders".
    Because of this error, my query becomes uneditable.
    Could anyone help me out with this??
    Thanks.

    The best way to transport the query is to go to RSA1->Transport connection and collect all dependent objects like formula variables..calculated key figures..etc in the same transport.

  • Since the latest update for firefox, if I choose a link from a google search, it gets redirected to a totally different search engine

    If I type in a search into Google and select ANY of the links highlighted in blue, I get redirected to a totally different web search engine. This has never happened prior to the latest update of Firefox.

    Which search engine is it redirecting to?

  • Can't forward request from Apache to Tomcat on second instance

    Hi,
    I am trying to create 2 separate environments (dev and test) on one powerful
    Unix server which has 2 network cards, 2 IP addresses, 2 server names...
    Using Apache 2.0.43 and Tomcat 4.1.29/JBoss 3.0.7, mod_jk 2.0.43
    on Solaris 9, Intranet environment.
    Everything is fine on the first instance,
    but on the second instance when I do http://server2,
    Apache still can't redirect to second Tomcat/JBoss:
    "Forbidden
    You don't have permission to access / on this server.
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.0.48 (Unix) mod_jk2/2.0.2 Server at mopppgctxat1.pfizer.com Port 80"
    If I do http://server2:8080, getting it all right.
    I made all internal ports on the second instance different from the first:
    e.g. 8080->8180, 8009->8109, etc.
    Even tried to change "Listen <ip2>:80" to 81, same error.
    Curiously, jk2.properties is totally commented out.
    I haven't compiled mod_jk, just copied the binary from the 1st instance.
    Can that be a problem ?
    Any help is very appreciated.
    Thank you,
    Oleg.

    By trying and trying I got it to work .... long hours
    I removed the queue to queue option and the subscriber name from the subscriptions definition. And then I removed the destination-queue on the propagation schedule. Then it worked.
    Mette

  • Can I redirect to a completely different web container?

    Hi all
    How can I redirect from a Servlet to a completely different web container. For example let's say I have MyServlet running on machine A, and according to a parameter in the request, I would like to redirect to host B (to another location).
    I tried to use RequestDispatcher.forward, but it uses a relative location (even if I added the absolute URL, like http://hostb:port/new_location).
    Can I redirect to another container?
    thanks,

    Do you need to send the data to the second site as well? That's where you will run into problems.

  • How to redirect request to a servlet on another server/context

    Hi
    I want to redirect a request came to a servlet to another servlet on another server or atlest different context on same server.
    Thanks in advance,
    --Nagesh                                                                                                                                                                                                                                                                                                                               

    Thanks but, now after rediriceting the request I am
    not getting any ServletInputStream. Getting rintime
    error as NoClassDefinitionFoundError :
    ServletInputStream.That's indicative of a problem with your classpath settings.
    DO I have to do anything the JSP
    (which submitted the request to first servlet) after
    redirecting?Nops, you shouldnt do anything after sendredirect(). The response is committed after using this method.
    ram.

  • Redirecting request to Apache

    We have an application which is deployed on Weblogic 7.0 SP2, the application has
    to be accessed through Apache server, so the request first goes to Apache and
    then redirects it to WLS, but if somebody directly accesses the WLS server then
    also he can access the application, I do not want any one to directly access
    the WLS but all requests should be routed through Apache server. If someone accesses
    the WLS directly then he should be redirected through Apache, is there some way
    if this could be acheived by updating some configuration file.

    In apache - tomcat integration, we do configurations at tomcat side also.
    In server.xml of tomcat we add following lines for connector.
            <!-- Define an AJP 1.3 Connector on port 8009 -->
                <Connector port="8009" enableLookups="false" request.tomcatAuthentication="false" redirectPort="8443" protocol="AJP/1.3" />
    Do we have any such file or do we have to do any such configurations on SAP WAS?
    cheers
    jayant

  • Redirect user to a different Page based on number of  Liquid output result

    I want to redirect the user to a different page based on the number of results. I have some multi-account users and single account user in my secure zone. I want single account users to be sent to a different page, while multiple account user should be shown their accounts and they user can now click the account he/she wants to access. This is my code:
    {module_data resource="customers" fields="company, email1"  where="\{'company':\{'$contains':'{{this.globals.user.email}}'\}\}" skip="0" limit="500"  version="v3" collection="companyXtra" template=""}
    {module_webapps id="21927" filter="all" collection="companyAccess" template=""}
    {% for item in companyAccess.items -%}
    {% assign counter = {{forloop.length}} -%}
    {% if globals.user.email = item.email and counter = 1 -%}
    <script>
    window.location.replace("/single-account-user.html");
    </script>
    <a class="w-inline-block szone-navlinks multiplecoy" href="{{item.url}}">
        <div class="szone-holder">
          <div class="szone-narrate addenrolee">{{item.name}}</div>
        </div>
      </a>
    {% else %}
    <p><a href="{{item.url}}">{{item.name}}</a></p>
    {% endif %}
    {% endfor %}
    </div>
    Please what I'm doing wrongly. Can someone kindly assist. Thanks.

    Hi Liam I have since been reviewing my query using the BC API Discovery which has been a good guide for me. But the result is just displaying the core customer's company, though the other company has a default email/email1 as the core customer.
    This is my new query:
    {module_data resource="customers" version="v3" fields="company" skip="0" limit="10" where="\{'email1.value':\{'$contains':'{{globals.user.email}}'\}\}" order="id" collection="myData"}
    <pre>{{myData|json}}</pre>
    This is the json:
      "moduleName": "data",
      "moduleDescriptor": {
      "templatePath": null,
      "parameters": "resource=\"customers\",version=\"v3\",fields=\"company\",skip=\"0\",limit=\"10\",where=\ "\\{'email1.value':\\{'$contains':'[email protected]'\\}\\}\",order=\"id\",collection=\"myData\"",
      "apiEndpoint": "/api/v3/data",
      "objectType": "-1",
      "objectId": "-1",
      "adminUrl": ""
      "items": [
      "company": "The vivove company Limited"
      "totalItemsCount": 1,
      "skip": 0,
      "limit": 10,
      "params": {
      "resource": "customers",
      "version": "v3",
      "fields": "company",
      "skip": "0",
      "limit": "10",
      "where": "\{'email1.value':\{'$contains':'[email protected]'\}\}",
      "order": "id",
      "collection": "myData"
    I expected to see two companies. This is screenshot of my the companies in the CRM:
    Screenshot by Lightshot
    Screenshot by Lightshot
    Thanks. most appreciated.

  • How do I redirect request to an external page flow?

    Hi,
    I´m really stucked here. I need to redirect and XML wich I get in page flow to an external page flow(in a different project(war) but in the same workshop application(ear)), I´ve tryied all kinds off things but it does not work correctly.
    I even tryied what is written in workshop docs:
    If the path begins with a protocol such as "http:" the page flow runtime will look outside of this web application for the resource, and it will automatically cause a redirect (rather than a server forward) to the resource. If the path begins with a forward slash, "/", the runtime will start at the web application's root directory to locate the resource. If the path omits the forward slash, "/", the reference is relative to the page flow's directory.
    so I did:
    @jpf:forward name="goToKnapp" path="http://localhost:7001/eaiKnapp/PageFlowName.jpf"
    and inside the method:
    return new Forward("goToKnapp");
    and it does´t work.
    Any help will be wellcome.

    Go to iPhoto and hit File and go to EXPORT. From there you can export your entire iPhoto Library to your external drive in any folder you want. Now if you've named the pictures in iPhoto and you select the check box for NAME and Keywords in the EXPORT menu the photos will be exported with the names given in iPhoto and any keywords you have added to the photo such as a description.. Hope this helps not sure if this is what your looking for.

  • Printing Multiple Reports in a Single Request Set to Different Printers

    We are running on 11.5.10 and have three reports in a single request set.
    Two of the reports are standard laserjet compatible reports and we would like these sent to whatever printer is specificed in the request set when it is executed. The third report is a shipping label report and we require that this report always print to a specific (tractor feed) printer while using a partiuclar style we have defined for this printer.
    When we set the label report in its concurrent defininition screen to print only at the label printer and the request set to print to a nearby laserjet the request fails on the first job (one that should be sent to the laserjet) with an error indicating that the style defined for the label printer (ie. "RAW") does not exist on the laserjet printer (which it does not, but it does not need to be).
    Is it even possible to have two reports in a single request set print to different printers?
    Thanks,
    Scott

    We never bounce the concurrent manager process when we update the concurrent program define. There has never been a need to do so. But, regardless, it bounces twice a week anyway and it has had no effect.
    I do not think this is possible without using a 3rd party/custom solution (ex. Optio).
    The requirement is pretty simple really: We have a report that MUST ABSOLUTLEY ALWAYS_ print only to a single, particular printer. And, if it is in a request set that contains other reports and it is defined to print to a different printer they all should go to the "correct" printers.
    If anyone has a method to do this please post!
    Scott

  • Sending Sync Request to two Different Receivers.

    Hi,
    I have a scenario where the synchronous request with single operation has to be sent to two receivers(different systems) with one being async and another one being sync. The response from the second receiver has to be mapped to sender.
    Though this can be acheived with BPM, I am looking for a better solution.
    PI SystemDetails: 7.1EhP1
    Regards,
    Manikandan R

    Hi,
    Can u please specify the sender and receiver communication channels u r using for this scenario??
    It depends upon the adapters u r gng to use in ur interface.... that whether u can also achieve without using the BPM or not
    will be decide..
    So specify the adapters in sender and receiver....
    Babu

Maybe you are looking for

  • Invalid digital siganature/publisher

    What is the deal with the invalid or unknown publisher/digital signature message with itunes 7.1.1.5!!!!!? I've tried everything in these posts, messed around with the certificate manager in windows,and am about ready to never use itunes again. I nev

  • How do you make editable entries in an Interactive Report?

    I have seen a feature in other Apex applications that I can't reproduce. There is an interactive report in which each row has an Edit icon (pen and pad) and clicking on it leads to a form page which displays the info, so you can edit it. I haven't be

  • Alternative way to power off Iphone 5 if power off button doesnt work

    how do I power off Iphone 5 when power off button doesn't work?

  • Home Move & BT Vision Not Activated Properly - nea...

    Hello, Apologies if there is an answer to this somewhere but I did a search and couldn't find anything relevant... also apologies that this is quite long but the whole saga has been going on for ages so there's a lot to write.  I hope someone is able

  • Import Pictures to the Contacts

    How can I import also the pictures from the Microsoft Outlook 2003 Contact profile to the iPod Contact? I see all details and informations from the Outlook profile, but not the picture. who can help me? I have an Video iPod