Directing all request to one servlet

This might seem strange, but I need to do something like this.
          I want one server to respond to any request that comes to a site, let
          use say I have one Servlet that returns the time of day whenever someone
          types
          www.myCompany.com
          Any ideas what configurations need to change in in weblogic.properties.
          Thanks,
          Mohammad Abed.
          

Mohammad Abed wrote:
          >
          > This might seem strange, but I need to do something like this.
          >
          > I want one server to respond to any request that comes to a site, let
          > use say I have one Servlet that returns the time of day whenever someone
          > types
          >
          > www.myCompany.com
          >
          > Any ideas what configurations need to change in in weblogic.properties.
          Change the default servlet to be yours, and don't put anything else in
          the public_html or other registered servlets. This seems like extreme
          overkill for a 'time of day' server tho. Wouldn't it just be easier to
          write a 50 line [tops] java application that opens up on port 80 and
          sends back the time of day?
          Jeff
          

Similar Messages

  • CSS11501 direct all requests to one server?

    Hi,
    We have a CSS 11501 with 2 webservers behind it. The people from serveradmin want one webserver to be used for all requests, and only use the second one when the first one gets too busy (let's say > 80 %)
    So in a very busy scenario, both webservers would be used
    I've looked into Primary sorry server but believe that's only to be used when the first webserver dies, so this does not apply.
    I also thought about using different weights for the services, but even when you give webserver 1 a weight of 10, and webserver 2 a weight of 1, there will still be requests forwarded - albeit very few - to webserver 2, right?
    Anyone encountered this before? Any help greatly appreciated.
    Regards,
    Radboud

    firs you have to define what is 80%
    The CSS has now knowledge of the capacity of the servers.
    I see 2 options to define 80%.
    First you know that your box can handle 100 connections.
    So you can define 80% to be 80 connections.
    You could then configure maxconn to 80.
    The primarysorryserver will kick in once maxconns has been reached for all other servers.
    Another solution is a script on the server itself that measure the load and update a file with a value ON or OFF.
    When reaching 80% of maxload, simple rewrite the file with the vaule off.
    On the CSS create a keepalive to read this file and disable the service if the value is off.
    When disabled, the primarysorryserver will kick in.
    Regards,
    Gilles.

  • Can I direct all users in one OU to share a common desktop/my document? (Folder Redirection)

    Say we have a few OU's, each OU will only have 1 active user at any given time. Lets call it OU: A,B,C,D. When a person leaves, I want the new user to be able to access all of the same desktop/documents of the previous user. I don't want to have to come
    in and copy the desktop/my documents folder each time for this.  
    Say if  User in OU "A" leaves and there's a temp/replacement, can I just copy the existing user's profile and create a new one in OU A and have the new user be able to log in with their new account but have all the desktops and my documents
    of the previous user. Of course if this can be achieved, even when the machine gets replaced, the desktops/my documents are there. 
    At the moment, we have shared folder for those groups of people but we're not enforcing them to save to the mapped drive. Lots of them have no idea what a mapped drive is. :( I want to simplify this process and get away with spending hours of backing up/restoring
    people's my documents and desktops when they come and go.  
    Danny

    Hi,
    I don't think we can set multiple users to a same redirected folder.
    Under Basic - Redirect everyone's folder to the same location, there is only one option seems close to your purpose which is "Redirect to the following location". However to get it work, the user need to be the owner of the target folder, and it will not
    work even we set Everyone as the Owner. 
    Meanwhile I do not understand why you would like to share a redirected Desktop with all users. If you would like to share files or folders, you can map a folder for all users. If you would like to publish applications to all users, you can deploy application
    through Group Policy.
    If you have any feedback on our support, please send to [email protected]
    Yes you can and I confirm this works. The key is to uncheck
    "grant user exclusive rights"
    here's an example of what I did. 
    Created OU A and B
    OU A - Added user A1 and A2
    OU B - Added user B1 and B2
    Created Security Groups A and B
    Share folders \\PDC1\A\Desktop and \\PDC1\A\Documents grant permission to security group A (repeat for group B)
    Use basic folder redirect and the option to redirect everyone to the same shared drives as above. In the setting tab, uncheck "Grant user exclusive rights" 
    And to answer your question, we do you mapped folders. Each user have their own mapped drives but no one is using it. They don't even know what mapped drives are in most
    cases. They tend to like to save everything to their desktops or their whatever the default saved location is, in this case it's "Documents". There are plenty other reasons why I want this. 
    Danny

  • Table or view with the request status of all requests in a cube

    Dear all,
    I search the table or view which is used by Cube / Manage -> InfoProvider Administration (Requests).
    Target is to get all status information of all requests started by one InfoPackage.
    I found several tables alone but no view. I have currently
    RSREQICODS, RSMDATASTATE, RSSELDONE.
    Best regards.

    I've found a solution for the problem:
    *    Select all requests for one Infopackage
          SELECT distinct RNR from rsseldone into table ta_done where LOGDPID = IPak.
          LOOP AT ta_done
            INTO wa_done.
            WRITE: / 'Request: ', wa_done-RNR.
    *       Select the maximum Request Number in the Cube
            SELECT SINGLE ICUBE RNSIDLAST from RSICCONT Into wa_cont where RNR = wa_done-RNR.
            WRITE: / 'Icube: ', wa_cont-ICUBE.
            WRITE: / 'Max: ', wa_cont-RNSIDLAST.
    *       Check the Maximum Request with status technical and quality ok
            SELECT TECHOK QUALOK from RSMDATASTATE into table ta_state where INFOCUBE = wa_cont-ICUBE.
            LOOP AT ta_state INTO wa_state.
                WRITE: / 'ID TECHOK: ', wa_state-TECHOK.
                WRITE: / 'ID QUALOK: ', wa_state-QUALOK.
                IF wa_state-TECHOK > l_maxid AND wa_state-QUALOK > l_maxokid AND wa_state-QUALOK = wa_state-TECHOK.
                   l_maxokid = wa_state-TECHOK.
                ENDIF.
            ENDLOOP.
            IF wa_cont-RNSIDLAST > l_maxokid OR wa_cont-RNSIDLAST = 0.
              WRITE: / 'Request is running with Request: ', wa_cont-RNSIDLAST.
            ELSE.
              WRITE: / 'all Green'.
              l_cont = 0.
            ENDIF.
         ENDLOOP.

  • How to redirect all Tomcat request to a servlet

    How can I set up Tomcat to redirect all request to a certain sevlets which sends the user to the right web-application.
    What ever the user type in the URL, i.e.:
    http://customer01.myDomain.dk
    or
    http://customer02.myDomain.dk
    or
    http://customer01.myDomain.dk/myApp/login.jsp
    - I want tomcat to redirect to a servlet class. Is that possible?
    Thanks

    Yes but pretend each customer has more than one web-application. Then it is not possible for the customer to use only this URL:
    http://customer01.myDomain.dk
    Each customer need a seperate url for each application, something like this:
    http://customer01.myDomain.dk/myApp01/login.jsp
    http://customer01.myDomain.dk/myApp02/login.jsp
    ( easy URL�s they can remember )
    And I don�t think it is possible to make an alias to the exact URL to the web application. That�s why I need Tomcat to redirect all request to i.e. Index.jsp which then redirect to the correct application.
    Here is an example:
    Customer01 type in:
    http://customer01.myDomain.dk/myApp01/login.jsp
    Tomcat calls Index.jsp which redirect to this URL:
    http://www.myDomain.dk/myApp01_ID0921/login.jsp
    Can you help me with this problem?

  • How to map every  request url to one servlet

    HI experts,
    I have a requirement like below,
    i want to map every request to a uinque servlet.
    http://localhost/krish/images/kk,gif
    http://localhost/krish/images/rao,gif
    http://localhost/krish/images/hh,jpg
    http://localhost/krish/images/srn.txt
    http://localhost/krish/images/hel.wav
    etc.............the no requests unlimited.
    So if i write mapping in web.xml its hard to write hundreds of urls.
    so i need some other process to map all these urls to one servlet ( processrequest.java)
    which will process all those requests.
    How do i do it?
    thanks in advance

    use url-pattern as /images/* then it will call the same servlet for all URL like you mentioned

  • Hi, I need a video editing software for my Power Mac G5 system. Hunted all over for one! Can anyone help me and point me in the right direction. Everything I come across is for intel based systems. Many thanks in advance.

    Hi, I need a video editing software for my Power Mac G5 system. Hunted all over for one! Can anyone help me and point me in the right direction. Everything I come across is for intel based systems. Many thanks in advance.

    I have Final Cut Studio V1 - the PPC/Intel V5/5.1 cross-grade version, which would suit your requirements perfectly. (I have it for sale at present down here).
    If you keep looking, you're sure to find a similar second hand copy in your area, without the need to upgrade your graphics card.
    I'd go for Final Cut Pro as above over any version of Express. FCP has the full version of LiveType - not the truncated version that was released later on.

  • Require client cert for just one servlet

    Hello
    I enabled SSL with mutual authentication in tomcat 5.5.x into Jboss like this:
    <Connector port="443" address="${jboss.bind.address}"
    maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
    emptySessionPath="true"
    scheme="https" secure="true" clientAuth="true"
    truststoreFile="${jboss.server.home.dir}/conf/confiaveis.truststore"
              truststorePass="111111"
    keystoreFile="${jboss.server.home.dir}/conf/.keystore"
    keystorePass="111111"
              sslProtocol = "TLS" />
    It�s working perfectly and any servlet requires client certificate. But now, i would like that just one servlet require client cert.
    Does any body could help me ?

    Application and web servers base their authentication mode on Listeners and not Servlets. Since Listeners listen on ports, and and can direct client calls to any number of Servlets, all Servlets served by a Listener will default to the authentication mode of the Listener.
    If you want to have selective authentication based on Servlets, then you should use a non-ClientAuth port for most of your Servlets, and redirect the client request to port 443 for the one Sevlet that needs ClientAuth. As a result, you will get the same effect.

  • IPlanet sending ALL requests to WebSphere 5.1

    Static html that exists at iPlanet's docroot cannot be served. All requests, whether servlet, jsp, or html appear to be passed on to WebSphere. Even NameTrans directives in the obj.conf are ignored. We are migrating from WAS 3.5.6. Below is the modified section of the obj.conf with the modifications highlighted:
    <Object name="default">
    NameTrans fn="strip-params"
    NameTrans fn="pfx2dir" from="/manual" dir="/usr1/WWW_Enterprise/manual/https" name="es-internal"
    NameTrans from="/IBMWebAS" fn="pfx2dir" dir="/proj/WebSphere/AppServer/web"
    NameTrans fn="pfx2dir" from="/ns-icons" dir="/usr1/WWW_Enterprise/ns-icons" name="es-internal" name="es-internal"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/usr1/WWW_Enterprise/ns-icons" name="es-internal"
    NameTrans fn="pfx2dir" from="/help" dir="/usr1/WWW_Enterprise/manual/https/ug" name="es-internal" name="es-internal"
    NameTrans fn="pfx2dir" from="/manual" dir="/usr1/WWW_Enterprise/manual/https" name="es-internal"
    NameTrans fn="document-root" root="$docroot"
    PathCheck fn="unix-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index" index-names="index.html,home.html"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service fn="as_handler"
    #Service fn="service_exit"
    Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
    AddLog fn="flex-log" name="access"
    </Object>
    And here is the portion of the magnus.conf that changed:
    Init fn="load-modules" funcs="as_init,as_handler,as_term" shlib="/proj/WebSphere/AppServer/bin/libns41_http.so"
    Init fn="as_init" bootstrap.properties="/proj/WebSphere/AppServer/config/cells/plugin-cfg.xml"
    The applications that we are converting have a context-root of "/", which I fear may be part of the problem. I believe that may be why all the requests are handled by WebSphere. Unfortunately I do not know how this can be changed without massive modifications on our clients' end. For example, clients normally access our app using /ABC.cgi which really maps to a servlet. Having them change their pages to access /myWebApp/ABC.cgi instead would not go over well.

    I'm not familiar with WebSphere plugin configuration, but you can configure Web Server to control which requests are passed to the plugin. In your current obj.conf file, the Service fn="as_handler" directive appears before all other Service directives, so the WebSphere plugin can choose to service any request. It appears that it's choosing to service all of them.
    Instead, you could modify your obj.conf file so that Service fn="as_handler "is invoked only for certain requests. For example, you could remove Service fn="as_handler" from the default object and move it to a new object named "was":<Object name="WAS">
    Service fn="as_handler"
    </Object>Then, in the object named "default", you could choose which requests should be treated as WAS requests:<Object name="default">
    NameTrans fn="assign-name" from="*.jsp" assign-name="WAS"
    </Object>Again, I'm not familiar with WebSphere plugin configuration, so it may be possible to do the same sort of thing through the WebSphere plugin-cfg.xml.
    (Since you're migrating from one application server version to another, I should point out that Web Server has a fully functional Servlet container built in. You could run all your Servlets in Web Server itself.)

  • Direct database request and session variable value

    Hi,
    I have a problem by doing the following : idea is to have report with a list of all tables in user schema (which are not all in repository physical layer).
    By clicking on the name of any, should bring answer report which is done as direct database request doing basically select * from table_clicked (this will be basically the same table with sufix _err holding error rows).
    What I'm trying to do is having some kind report for error rows which can be in different tables in my database. So i had in mind to construct name of table i need , and pass it to database request through session variable. Am i doing right by doing direct database request like this :
    select * from 'VALUEOF(NQ_SESSION.TestVar2)'
    Is there another easyer way of doing this? I know this can be done by gourl by passing parameters but not sure how when i can't filter columns in direct database request (this can be different tables with different names of columns). I hope i didn't complicated this too much.
    Thnx in adwance

    Hi,
    I know this is a hack, and would be much more easy to create one table with dimension and measures, but this is intended to be used with code generator, which can produce different error tables with different column names in different time: It is not conviniet for somebody to add them to repository every 5 minutes. For example : i run my workflow and for first run I have errors in table1(let us say customer table with 30 columns) and if click on the table name in some answer report, i want to see all the bad records in the table. Tomorrow after the run, there are bad records in table1 and in table2 (lets say products) so I would have choice to pick table 1 or table2 and see al the bad records in any of these tables. This means that I can not now which tables will I have tomorrow, and as it is generic, I can manually add some tables in my model, and would have to add err table also as a possibility to have error rows?
    I saw post saying that you can pass parameter value by using go url functionality, by modifying configinstance file, but didn't suceed - http://gerardnico.com/wiki/dat/obiee/logical_sql/obiee_session_variable_go_url . Maybe some mistake or any better solution? I created session variable TestVar2, also modified instanceconfig.xml by adding this before </ServerInstance>
    <ParamList>
    <Param name="NQ_SESSION.TestVar2" source="url" nameInSource="SETVAR"/>
    </ParamList>
    and used go url in column formula : ''||"Physical Targets"."Physical Table"||''
    Can I use @1 for using first column value?
    Thnx

  • Action link not working in Direct db request(OBIEE 11g)

    Hi all ,
    My Requirement.. is...
    From direct db request .. i  need to navigate to detail report and it should be display the results(detail report results) based on the value,which user click's on the summary report.
    For the above requirement ..
    I have done below steps..
    Summary report(Direct db request) columns:
       Diet no,diet name
       a.I have created a action link on diet no column.
    Detail report columns:
       Diet No ,Diet Name,Material Name
       a. I have set diet no as is prompted
    when i click on the diet no value  in summary report  ,we are able to navigate to detail report but it's not filtered based upon diet no value , which i have clicked in summary report.
    It is  displaying all results(detail report).
    Note: if both are normal reports(not direct db request) it's working fine.
    If one of the report is direct db request..Action link is not working properly.
    Is it action link working in direct db request.........or not
    If any one having any ideas pls share me ..
    Regards,
    Bharath

    Hi,
    It's known bug. this issue fixed in 11.1.1.7.0 (coming soon).
    bug 13852263 - ACTION LINKS - NAVIGATION TO BI REPORTS DOESN'T WORK ( OPEN IN NEW WINDOW)
    for now : to uncheck the "Open in New Window" checkbox and go to the detail report in the same Window.
    Note: this bug has been fixed by applying the patch 14003822 (u need to get the latest patch)
    Thanks
    Deva
    Edited by: Devarasu R on Feb 14, 2013 4:05 PM

  • Manual bypass to view all history entries of all user for one report

    Test have been performed on standealone BIP 10.1.3.4.1 (Patch 11931697). May be it can be reproduced with previous versions and/or other J2EE container.
    Problem is now described in Oracle Support with bug ID : 12412334
    Bypass solution may be helpful for people who use work directly in BIP web interface or who integrate this web interface using HTTP URLs or HTTP/REST like custom app (and may be other cases...)
    When logged with an admin username, you can view OR filter "ALL" history of one all users for one report by typing an url like :
    http://BIP/xmlpserver/servlet/reporthistory?report_url=/REPORT_DIR_PATH/XDO_NAME/XDO_NAME.xdo&tfilter=all
    Where :
    BIP is BIP Server DNS
    REPORT_DIR_PATH is report directory path in BIP web interface
    XDO_NAME is report's name

    I don't think there is a way. There should be, but I've never seen it.

  • Extra request reaching the servlet

    Hi,
    I have written a servlet which returns me some html code that I display in the browser. The servlet is working fine. My problem is with the HTML code that sends POST request to the servlet.
    When the first POST request is send to the servlet, all the necessary parameters are passed and code works as expected.
    Here is the bug: Sometimes after receiving the first POST request, a secong POST request is somehow send to the servlet. This second POST request is followed by a GET request to the servlet. This GET request doesn't carry all the expected parameters. Due to this my code fails.
    I could not find the reason or the origin of these extra requests. The code is supposed to make only 1 POST request. But somwhow it is making extra requests (1 POST and 1 GET request).
    Can anybody suggest a solution?
    Has anybody come across a similar problem?
    My client side code is similar to the one below:
    <BODY id="MenuBody">
    <FORM method="POST" name="MenuForm" action="/myServlet">
    <input id="submitButton" type="button" style="left:585px; position:absolute" onclick="top.sendRequest();">
    In the sendRequest() function, I submit the form as follows:
    MenuForm.submit();
    Thanks in advance...

    Greetings,
    Hi,
    I have written a servlet which returns me some html
    code that I display in the browser. The servlet is
    working fine. My problem is with the HTML code that
    sends POST request to the servlet. Are you sure the problem is in the client and not in the servlet itself?
    When the first POST request is send to the servlet,
    all the necessary parameters are passed and code works
    as expected.
    Here is the bug: Sometimes after receiving the first"Sometimes" implies intermittency of the problem... sure makes it tough to debug. ':) Are you able to (intentionally) duplicate the error? If so, what conditions are present when you can vs. when you can't? Are you doing all your own testing? Try a "hallway useability test" - "anonymous" third person and see if they can duplicate the problem...
    POST request, a secong POST request is somehow send to
    the servlet. This second POST request is followed by a
    GET request to the servlet. This GET request doesn't
    carry all the expected parameters. Due to this my code
    fails.Are you actually seeing multiple requests being generated in the server logs?
    I could not find the reason or the origin of these
    extra requests. The code is supposed to make only 1
    POST request. But somwhow it is making extra requests
    (1 POST and 1 GET request).
    Can anybody suggest a solution?
    Has anybody come across a similar problem?
    My client side code is similar to the one below:"Similar" but not the same? Sometimes, in trying to "paraphrase" code for presentation a crucial detail is left out... anyway...
    <BODY id="MenuBody">
    <FORM method="POST" name="MenuForm"
    action="/myServlet">
    <input id="submitButton" type="button"
    style="left:585px; position:absolute"
    onclick="top.sendRequest();">Have you tried this with a standard submit button input type? Does the error still persist? If not, then perhaps the error is in your browser's JavaScript handler.
    In the sendRequest() function, I submit the form as
    follows:
    MenuForm.submit();
    Thanks in advance...Regards,
    Tony "Vee Schade" Cook

  • Transport a request from one server(quality) to another server(production)

    Hi All,
    I want to transport a request from one server(quality) to another server(production)
    Can we transport a request from quality to production programatically i.e. by using programing logic.
    Regards,
    Swarup

    Hi,
    It cannot be done programmatically. Although it can be automated by basis guys. They configure it in TMS (Transport Management System). You can check it using STMS. (if you are authorized to view it).
    Transport path are defined in TMS.
    For Automated Transport configuration is done in TMS.
    Generally automatic Transport are not setup between quality and production. Changes are first tested in Quality and then Transported by basis team either periodically / individually.
    In case of manual transport Transport Request can be imported in production using STMS_IMPORT transaction in production. (Basis guy will do it for approved Transports)
    If there is no direct connectivity - Basis people copy "data" file and "co" file and Transport it to target server (This is generally not the case in Quality - production as Transport path is always defined).
    Regards,
    Mohaiyuddin

  • How to make manager approve more than one request in one time in SSHR

    Dear All,
    Anyone has an idea on how to make manager approver more than one request in one time in SSHR??
    for example, manager is having 20 requests to approve on Change Pay Function, he don't want to check one by one and approve it, he want to approve the 20 requests directly from one time, is there any solution for that??
    Thanks and Regards

    Hi Adel,
    As Vignesh has mentioned we don't have any standard functionality which will allow bulk approvals. We had same kind of requirement in performance management where the business was asking for a bulk approval feature which should be available to Skip level manager for approving the rating suggested by line manager. We had created a custom page which will list all the notifications and user can select the ones which S/He wants to bulk approve and click submit button. Internally we had called the workflow with item key and other required parameter and do the approval.
    You can have a work with your technical guy and can work on the same lines.
    Thanks,
    Sanjay

Maybe you are looking for

  • Connect to smart tv

    I have a Macbook Air. I bought a Moshi Mini DisplayPort to HDM1 Adapter and Lindy Flat HDM1 Cable to connect to my Toshiba TV and Samsburg Blue ray player. Help??

  • "This operation is not permitted" appears when re-saving/distributing a form.

    I have a form that I created using Adobe LiveCycle Designer (ver 8.0) which I saved and distributed several months ago and has been working fine. Now even if I make no changes  to the form, if I save and Distribute it again, the message "This operati

  • Hyperlinks don't work in Visio Web Access

    Hi guys, I need a little help here. I'm using Visio Web Access (Sharepoint 2010). My shapes have 1 hyperlink each. When I publish these files, sometimes it's possible to simple click on the shape to go to the hyperlink, but sometimes it doesn't work

  • How to use JUnit in JDeveloper

    I want to know how to run the test cases in JDeveloper using JUnit

  • Using Tabstrip update the database table

    Hi Guy's, I created two screens(100 & 110). Click 1 pushbutton HRP1000 related information is displayed. Click 2 pushbutton it displays HRP1001 relatd information. worked to read the data from the Database tables and output displayed sucessfuly .   H