Multiple HTTP Proxies

Hi,
we have a WebLogic Workshop (8.1.5) / Integration (8.5) project which makes heavy usage of WebService controls.
We need to make the WebService calls via different HTTP proxies. Is it possible to use either
a) an automatic proxy configuration file (like in the webbrowsers)?
b) different HTTP proxies for different webservices (like using some special annotations or simmilar)?
So far, I am only aware of the commad-line -D java sytsem properties that can set the proxy server and port for the whole server. But I am looking for a way of choosing different proxies for different calls.
Is this possible?
Thanks and kind regards,
Joerg.

another bump
(still confident)

Similar Messages

  • Proxing request to multiple http servers

    Hi,
    I want to proxy request to multiple http servers.
    I am able to do that for one, but now i want to configue 3 more servers.
    All the servers will be giving jsp pages.
    Can anybody help me in doing that.
    Thanks in advance
    Anshuman Nanda
    [email protected]

    Just for the information, I am using weblogic 5.1
    and want to do the setting for that only.
    Thanks
    Anshuman <[email protected]> wrote in message
    news:3a836910$[email protected]..
    Hi,
    I want to proxy request to multiple http servers.
    I am able to do that for one, but now i want to configue 3 more servers.
    All the servers will be giving jsp pages.
    Can anybody help me in doing that.
    Thanks in advance
    Anshuman Nanda
    [email protected]

  • 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 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
              >
              >
              

  • Multiple HTTP Services

    Hi
    I fill a mysql table with data from a datagrid. When the grid
    if full (50 lines) I send 50 http service request that concerns
    INSERT sql command. My question : Is there a better way then this,
    as to send all data in a single http service? but how??
    Thanks

    "robbyk87" <[email protected]> wrote in
    message
    news:gnrl9a$pfr$[email protected]..
    > Hey all,
    >
    > Is there a way I can OOP this so I do not have to create
    another button
    > set
    > the source and create multiple http services?
    >
    > Surely there must! But alas, I am at a loss here.
    >
    > Basically if I needed to add more images - I would have
    to create more and
    > more http services as well as all the 'like' commands
    for the image
    > button.
    I'm not sure what you mean by the "like" commands, but if you
    just use a
    repeater to repeat your buttons and use ONE HTTPService that
    looks at what
    index the button that was clicked is in the repeater list and
    sends based on
    that, I'd think you'd be pretty much there.

  • Multiple http connection

    is it possible for me to make multiple http connection to server?
    I'm trying to send data for about 40kb, i send the data into 80 parts ( a part about 500 bytes)..
    is it possible to make about 80 thread in the same time??
    I do this way to reduce time consumption...
    Help me please..

    No, in this case, more threads will most likely slow down the data transfer:
    - more threads means more TCP connections, means more overhead
    - CPU scheduling will make it slower than using one thread, they can't work symultanious anyway
    - One thread is probably already capable of fully filling the network bandwidth with data

  • Create multiple Still Proxies

    Having a problem creating multiple still proxies. Basically what I want to do is select all the layers in a PSD imported as a cropped comp and create a half res proxy for each item. the right click "create proxy" option is disabled when I select more than one footage item. When I tried to just make my own still proxy render and output modules I couldn't set the "Timespan" (I thought if I could just set this to 1 frame it'd work). Why is it that when I right click a footage item in the project window and select "create proxy", after effects automatically "knows" I just want a still. For some reason I can't seem to recreate this in my render settings template.
    Any help greatly appreciated, at the moment I am HATING having to work in HD, against all logic it's making my hair hurt.
    Ed

    Having tried to use this script a few times now, I'm a little befuddled. It doesn't seem (or rather I can't seem to figure out how to) set still proxies automatically to a proxy of the footage item they're supposed to be "proxy-ing". If I set it to create a movie proxy it sets the footage item up as a proxy no problem (by that I mean it automatically sets the footage created to a proxy of the original footage) but I can't seem to get it to automatically link the proxy to the footage item when i want a still proxy, post render (if anyone actually understands this their grasp of english is SERIOUSLY good). I've gone through my output settings and checked and rechecked everything and I just can't see why it's not doing it. Is it an "issue" with the script or is it just me being a script-tard?

  • Multiple HTTP requests using single HTTPService component

    Hi,
    I am having one requirement, I need to use a single HTTPService component to send request to a same and single ASP.net multiple times.
    How can I acheive that..? I know that I can acheive this by sending one request at a time and after the "result" event is called for the first request then sending the second request and so on...
    But if I do so then it will be delayed response as I need to wait until the result handler for the previous request is called...
    So how do I do this..?
    Any help greatly appreciated....:)
    Thanks in advance..
    Thanks,
    Bhasker Chari

    yep, the setting works when set to 10. Seemed to not work when set to 20. Anyways, summary is "long polling" and Flex
    or Flash are not good compatriates. So, you will need to work out your own mechanism on the server or client
    side to limit the sockets used/wasted. Painful but true.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import com.util.HTTPServiceProxy; 
    import mx.rpc.events.FaultEvent; 
    import mx.rpc.events.ResultEvent; 
    import mx.rpc.http.HTTPService; 
    private var urlOpenTasksDefault:String = HTTPServiceProxy.servercontext + "/blahblah?something=somethign";  
    private var waitRequestPart:String = "&wait=5000&lastUpdate=" // long polling period for now for testing
    private var iResponses:int; 
    private function runTest(urlString:String):void{ 
    var service:HTTPService = new HTTPService();service.url= urlString;
    service.resultFormat =
    "e4x";service.method =
    "get";service.contentType=
    "application/xml";service.addEventListener(
    "result", httpResult);service.addEventListener(
    "fault", httpFault);service.send();
    public function httpResult(event:ResultEvent):void { 
    trace("httpResult " + iResponses++ );}
    public function httpFault(event:FaultEvent):void { 
    trace("httpFault " + (iResponses++) + event.fault.faultString);}
    private function test1(evt:Event):void {iResponses=0;
    var reqs:int = parseInt(requests.text); 
    for( var i:int=0; i<reqs; i++ ){runTest(urlOpenTasksDefault);
    private function test2(evt:Event):void {iResponses=0;
    var reqs:int = parseInt(requests.text); 
    for( var i:int=0; i<reqs; i++ ){runTest(urlOpenTasksDefault+waitRequestPart+
    "0");}
    ]]>
    </mx:Script> 
     <mx:Label text="Requests"/>
     <mx:TextInput id="requests"/>
     <mx:Button label="Test Requests-Responses" click="test1(event)"/>
     <mx:Button label="Test Long Polling" click="test2(event)"/></mx:Application>

  • Multiple HTTP requests through same connection

    Hi...
    I am writing an application which connect to its server through HTTP protocol and the server is basicaly a bunch of servlets hosted somewhere (Right not it in the tomcat running in my PC)
    I know that with Connection Keep-Alive header you can keep the connection alive and do multiple requests from the same server.
    Can some one point me to where can I find some sample code which shows how to send multiple requests through same URL conection or URL object. What i cant figure out is how to reset the URL connection or its streams a and make them send anotehr request message to the serverso server can respond.
    Or do I have to do this manualy (using sockets)

    You SHOULD be able to do a HttpUrlConnection method. However, I have hand-coded HTTP server and client apps and the keep-alive is rarely enabled in servers.
    This is due to better handling of millions of unique hosts requesting, unlike a network os, which is made the other way around.

  • Transparent connections through HTTP proxies

    Hi All,
    I am trying to connect to internet through java application. In my application I had an object for example
    SomeObject obj = new SomeObject("url"); which internally connects to the web application on internet. When I run this application I am getting connection error. Which prevents from internal firewall. How do I solve this problem. Which must be done transparently with out affecting my internal code. How can we by pass from proxy server to connect to the internet. I heard HttpClient from apache can be used. How this can be used. Please provide me some sample to overcome this.
    Thanks.
    Phani.

    See [Java Networking and Proxies|http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html].

  • Multiple HTTP Servers with Portal

    I am trying to set up 9iAS (Portal) on a server that already has several HTTP servers on it. The System Administrator wants a "web services" on a single NT box. I installed 9iAS and that seemed to complete OK but now I'm getting some errors trying to use Portal...I can't get logged in to Portal30/Portal30.
    Is it possible to run several Apache servers including Portal on a single NT box?
    We are moving up to Portal 3.0 from WebDB 2.2 which is on a NT box by itself.

    it is possible, just install 9ias in multiple oracle_homes, if u need 2 instances of HTTP server, install in 2 Oracle homes and each could point to same Login Server. Metalink has a good note on this.

  • How can I set enable HTTP and/or HTTPS Proxies through command line?

    I know the exact key/value to be changed; it's in
    /Library/Preferences/SystemConfiguration/preferences.plist -> NetworkServices -> 46A40FA8-6E7C-xxxx-xxxx-xxxxxxxxxxx -> Proxies -> HTTP(S)Enable ->  should be set to 1
    I immdediately thought of using defaults write to carry this out in the command line but I don't know how (or if at all!) that works with multi-level key/values. I only have access to the first level (NetworkServices) with defaults read.
    Any help would be much appreciated,
    thanks \.

    The networksetup utility is the program OS X uses to change the network configuration.  The Network Preference Pane in system preferences is just a front end to networksetup; networksetup can do everything the preference pane can do (and possibly more).
    The parameters you are interested in (from the man page):
    -getwebproxy networkservice
    Displays Web proxy (server, port, enabled value) info for <networkservice>.
    -setwebproxy networkservice domain portnumber authenticated username password
    Set Web proxy for <networkservice> with <domain> and <port number>. Turns proxy on. Optionally, specify <on> or <off> for <authenticated> to enable and disable authenticated proxy support.  Specify <username> and <password> if you turn authenticated proxy support on.
    -setwebproxystate networkservice on | off
    Set Web proxy on <networkservice> to either <on> or <off>.
    -getsecurewebproxy networkservice
    Displays Secure Web proxy (server, port, enabled value) info for <networkservice>.
    -setsecurewebproxy networkservice domain portnumber authenticated username password
    Set Secure Web proxy for <networkservice> with <domain> and <port number>. Turns proxy on.  Optionally, specify <on> or <off> for <authenticated> to enable and disable authenticated proxy support. Specify <username> and <password> if you turn authenticated proxy support on.
    -setsecurewebproxystate networkservice on | off
    Set SecureWeb proxy on <networkservice> to either <on> or <off>.

  • Multiple HTTP Listeners

    Hi!
    In Oracle 9i db release notes:
    "2.9 Starting Multiple Oracle HTTP Server Listeners on the Same Windows NT Computer"
    It works fine, i've got one problem:
    When i start an apache server from command line,
    it brings up a Command Prompt window, and it's
    on there, while the server is running.
    Is it possible to start apache from command line,
    without a window?
    Of course, i need this feature, because i have to
    run 2 instances of it.
    (I've got XP pro)
    Thanks:
    -dc-

    Hi,
    how to configure single HTTP server to listen on multiple ports? We have Oracle 10gAS installed RHEL 3.0 AS and changed the default port number from 7777 to 80 using the ias admin console and its working fine. But we want the 7777 port also to be active and listening so that whenever a request comes to either 80 or 7777, it should be handled by the single HTTP server which comes by default with the Oracle 10g AS.
    Any kind of help would be of great help for us.
    Thanks,
    Balakrishna.

  • HTTPS to Multiple HTTP service and ports

    Hello Guys,
    I am trying to set up a config in a one armed design with client connecting via https that should be redirected to differents http servers (some are port 80 others 8080 and 9000) and depending on the end of the HTTPS url I have to rewrite the end of the url to connect to the right application on the server.
    example i use
    https://mydomain.extranet.prod/reporting and this should be transformed in http://sdourep01.rep.fr:8080/
    But at the same time if the client use this https url:https://mydomain.extranet.prod/ged/appli1 it should be rerouted to others servers using port 9000.
    Can someone help on how with a same VIP and a same certificate i can balance the traffic to the right servers changing the ports and rewriting the url.
    Here is a sample of my config so far.
    Thanks

    if all you need is change the port, than can easily be done.
    Create a rule to handle the SSL traffic. A single rule for all your url is ok.
    Send the cleartext traffic to an ip port ie: x.x.x.x:81
    Then create multiple rules for x.x.x.x:81 with different url match statement.
    ie:
    content reporting
    virt x.x.x.x
    proto tcp
    port 81
    add service Server1_8080
    url "/reporing*"
    active
    Content Appli1
    virt x.x.x.x
    proto tcp
    port 81
    add service Server1_9000
    url "/ged/appli1*"
    active
    However, if you need the url to be changed as well as the port, then you will need to configure a redirect. Then catch the redirect with a new SSL rule and forward it to the specific server.
    Hope this helps.
    If you need more info, let me know.
    Gilles.

Maybe you are looking for

  • Runtime Errors  SYNTAX_ERROR in SAP Solution Manager 4.0

    Hi every body,      After in install of support packages SAP_BASIS SAP_ABA and ST. When I logon in the SAPGui I received this error: Runtime Errors         SYNTAX_ERROR Short text     Syntax error in program "SAPLSCP2 ". What happened?     Error in t

  • Sync status is not shown correctly, and not completing

    I attached my 16GB Nano 6th gen to my PC last night. I'm running iTunes 10.0.0.68 on Windows 7 Ultimate x64. When copying music I noticed that iTunes would show "syncing" while the Nano didn't, and vice versa. Mostly I'd see the rotating icon on the

  • JAXB Unmarshall Validation Error Handling

    Hello, During unmarshalling, if say a required element is missing, a ValidationEvent is created and passed to the handleEvent(ValidationEvent e) method of a custom class implementing the ValidationEventHandler interface. From the ValidationEvent, one

  • Help with downloading i tunes songs

    Hello, I just got a new touch, and find I can't download my songs and videos with I tunes. Plus I use as many as six different computers so its really annoying to start over each time I synch!!! (home, work, laptop, and so forth). Does anyone know of

  • Macbook air 2011 so slow speed to visit Internet with WIFI

    I bought Mac book air 2011 13' inch core i5 last week. Recently, I found it is sooooo slow to visit internet with WIFI, even I cannot open the any website with Safari.......... Is there anyone the same to me?????