The important parameters controlling behaviour of the Proxy Plugin

The 7.0 Proxy Plugin has various crucial parameter controlling its operation. These are n:
#1. poll-timeout parameter that determines how long it waits for a reply before
considering a request as having failed.
The poll-timeout can be increased by adding the poll-timeout parameter to the end of
the Service entry within the obj.conf file. For example:
Service type="magnus-internal/passthrough" fn="service-passthrough"
servers="http://sunflash.red.iplanet.com" poll-timeout="600000"
Default timeout is 5 minutes, or 300000 milliseconds
Maximum timeout is 6 hours, or 21600000 milliseconds
Minimum timeout is 1 second, or 1000 milliseconds
#2. connect-timeout parameter that determines how long to wait for a connection
Minimum = 10 ms
Maximum = 75 seconds (75 * 1000)
Default = 5 seconds (5 * 1000)
#3. connect-interval parameter that determines Interval between connect() calls
Minimum = 10 ms
Maximum = 30 seconds (30 * 1000)
Default = 500 ms
AND
#4. keep-alive-timeout parameter that determines Maximum time to let connections idle
Minimum = 0
Maximum = 6 hours (6 * 60 * 60 * 1000)
Default = 30 seconds (30 * 1000)

JoachimSauer wrote:
I wouldn't care about efficiency in this kind of methods. Only optimize,
when you find out that this method is indeed a bottleneck, otherwise just
write a simple implementation (simple implementations are usually easier
to optimize for the JIT compiler, than "clever" impelementations).I agree with you, and when you recommend to basically "write dumb code", this interview with Brian Goetz crosses my mind: http://java.sun.com/developer/technicalArticles/Interviews/goetz_qa.html
But given that the prolem at hand is Boolean, why not make a simple straightforward approach:
!((a & b) | (a & c) | (a & d) | (b & c) | (b & d) | (c & d)), which leads to
!((a & (b | c | d)) | (b & (c | d)) | (c & d)) or
boolean xor(final boolean a, final boolean b, final boolean c, final boolean d) {
  return !((a & (b | c | d)) || (b & (c | d)) || (c & d));
}I consider this an acceptable solution, too.
EDIT:
No, not anymore! It may look nice and all, but is not quite XOR... so I apologize for being careless and not double-checking what I wrote (my "xor" returns true even if all arguments are false) -- sorry!
This should (hopefully) be correct:
EDIT2:
<del>[...]</del>
Aarrgh, but it's still horribly wrong! Made the same mistake twice, now I'll take some time to really think before totally embarrassing myself today...
But I have to admit that JoachimSauer's solution is indeed simpler and is probably the right choice...
Message was edited (2x) by:
oebert: correction
Message was edited by:
oebert

Similar Messages

  • Load balancing by the proxy plugin

    Has anyone encountered this before:
    I have a cluster of two WLS 5.1 servers, hosting servlets that serve web
    requests. The requests are proxied through a web server ( I have tried
    Weblogic, Apache as well as IIS). I also have a tool that simulates
    concurrent web requests and fires them to the proxy server.
    As per documentation, as the load balancing while proxying requests to
    servlets is round robin, I expect that the requests are uniformly
    distributed across the two weblogic servers. But what I see is a bit
    different. In one case I fired 15 requests and found that 11 went to first
    server and 4 went to the other.
    Second time when I fired again 2 of them went to the first server and 13 to
    the second one. I would expect that around half of the total requests
    should be routed to each server everytime so that there is a proper load
    balancing done by the proxy. I have not changed any configuration related
    to the default load balancing algorithm. So I expect it is round-robin.
    Has anyone encountered this before ? This happens to me irrespective of
    which proxy server I use (i.e which proxy plugin I use). Is there some
    other configuration required and I am missing something or is there some
    inherent problem with the load balancing of the proxy plugins. Any info
    would be highly appreciated.
    Thanks
    Mainak

    Could you post this in weblogic.developer.interest.plug-in? This group is for
    ejb related questions. Thanks.
    Bill
    Mainak Datta wrote:
    Has anyone encountered this before:
    I have a cluster of two WLS 5.1 servers, hosting servlets that serve web
    requests. The requests are proxied through a web server ( I have tried
    Weblogic, Apache as well as IIS). I also have a tool that simulates
    concurrent web requests and fires them to the proxy server.
    As per documentation, as the load balancing while proxying requests to
    servlets is round robin, I expect that the requests are uniformly
    distributed across the two weblogic servers. But what I see is a bit
    different. In one case I fired 15 requests and found that 11 went to first
    server and 4 went to the other.
    Second time when I fired again 2 of them went to the first server and 13 to
    the second one. I would expect that around half of the total requests
    should be routed to each server everytime so that there is a proper load
    balancing done by the proxy. I have not changed any configuration related
    to the default load balancing algorithm. So I expect it is round-robin.
    Has anyone encountered this before ? This happens to me irrespective of
    which proxy server I use (i.e which proxy plugin I use). Is there some
    other configuration required and I am missing something or is there some
    inherent problem with the load balancing of the proxy plugins. Any info
    would be highly appreciated.
    Thanks
    Mainak

  • Proxy plugin misbehaves on certain ppath

    I have the following definitions in obj.conf of iplanet 4.1 SP11 under solaris
    5.7.
    <Object name="spotbid" ppath="*/spotbid/*">
    Service fn="wl_proxy" WebLogicHost="###.###.###.####" WebLogicPort="7012" DebugConf
    igInfo="ON"
    </Object>
    <Object name="old" ppath="*">
    Service fn="wl_proxy" WebLogicHost="###.###.###.####" WebLogicPort="8009" DebugConf
    igInfo="ON"
    </Object>
    The problem:
    Every single request goes to the spotbid even if the request does not go to start
    with /spotbid. For example: http://host/foo will go to port 7012, instead of 8009.
    If I change from ppath="*/spotbid/*" to ppath="*/nothing/*"
    it works as excepted.
    "spotbid" is the user iplanet runs under. It is also the first directory in the
    path to iplanet "/spotbid/.../iplanet4/https-proxy"
    I have tried this with the proxy plugins from weblogic 5.1 and 6.1 and both exhibit
    the same problem.

    I tried myself with playing proxy settings of browser along with above configuration.Finally I got it.

  • Proxy plugin - Debug parameter values

    Up until a few months ago the proxy plugin documentation for WLS 8.1 included multiple values that the Debug parameter could be set to (e.g ALL to see just about everything, ones to see just headers etc). Now it only seems to have True|False. http://e-docs.bea.com/wls/docs81/plugins/plugin_params.html#1154491
    Is there a reason this was changed? The old way was much more flexibile.
    Has this been changed for the latest SP?
    I am holding out some hope that maybe the documentation is incorrect.... Debug=ALL still works for 8.1 sp4

    all the options seem to be there and working.
    we are using DEBUG=ERR, since ALL crashes linux when the log grows to 2GB!

  • The import parameters were not filled correctly

    Hi BW guru's
    I am working on BW 3.O AND USING A FLAT FILE. I was trying to create hierachy to a infoobject(SalesrepID-SREP). First i enabled the (with hierarchies) tab under the hierarchy tab of change characteristics of SalesrepID, and selected the Time dependent hierarchy structure RadioButtoon. Then Activated the info object. All the tables for hierarchies are generated. (BIC/HIO/SREP,BIC/KIO/SREP and BIC/IIO/SREP) when I right click the info object and try to create Hierarchy it is populating an information box saying that the, "The import parameters were not filled correctly". please kindly try to help me.
    Thanks in advance.

    Hi,
    Under the Hierarchy Tab, click on the external characteristics button and transfer your sales office and sales region from the left-->right window. Return to the InfoObject maintenance screen and activate your Infoobject.
    Right click on your infoobject and click on the "Create Hierarchy" option.
    Hope it helps
    Ravin

  • Maaping import parameters to the client...

    Hi All,
    I am developing an application wherein I need to accept some inputs from the user. However, while creating the SyncBO I am not able to map the import parameters or the import parameters to the client. The only parameter which are enabled for mapping are the table parameter.
    Can any tell me what is the problem?
    Thanks,
    Prakash

    Hi Prakash!
    (1) You may have to modify the the JSP Code(MI Application WAR File)to get rid of the Sync Key and for additional formatting of the data and deploy the WAR again.
    (2) Database Changes are not reflected in the Device: I understand this is data retrieval.Did you Stop and Restart the MI Client, after the first Sync following the database changes you are mentioning.Do it.Actually this has to be done only for deploying new applications.Could you explain what exactly is the database change?
    Did you change anything in the SyncBO.If you have changed then generate the XML again and the create a new WAR file, deploy it and run.This might help even though it is a longer solution.
    (3)  Looks like the Sync is not happening correctly after you Synchronised for the first time.This might be causing issue #2 above. Could you copy the details of the "InboundTransforException" in the post.Also post your trace file.
    Hope this helps.
    Thanks
    Gisk

  • I accidentally Imported the Proxy Media!

    Hello, I'm working on a music video and this was my first time using proxy media. I accidentally imported the proxy files, rather than going to preferences and changing it there... So it thinks that the proxy files are the actual files. I've spent many hours editing this video and i was wondering if there's any way to trick FCP X into thinking that when I drag in the actual video files to my project, and try to replace them with the proxies, that it thinks its the same file? If anyone knows a way around this, please let me know! I'm hoping I didn't waste 8+ hours editing this video -_-
    Thanks!
    -Jordan

    Well yes. A duplicate name will have fcp1(and so forth) appended to the name. But I still don't don't know what which one is the low res file and which is the real original.
    I'm also not sure how you ended up here. When I tried a test project and event, I wound up with aliases to my proxy files in my Original Media folder. But I suppose how this happened is beside the point.
    If you try to relink, FCP will look only for the fcp1 files – whether you relink from the project or event. So I think your best bet is to get rid of those proxy files and rename each of the original files appending the fcp1.
    Since there are more than a few unknowns here, I think what I'd do is close FCP. Then In the Finder, create a new folder outside the event called hidden proxy or something. Move those proxies yo that new folder. Next, as a test rename one of the files in the Original Media folder. Launch FCP, and try relinking that single file from the event. If it works, open your project and see whether it sees the renamed file in your event.
    Russ 

  • Controlling the size of the 'proxy' movie?

    I'm working with a bunch of 4K material.  I ingested it into FCPX, thinking I was going to get HD or 1280 or something ... but the proxy files are 2K.  Is there somewhere deep in the bowels of FCPX that I can set the proxy movies to be a smaller format?

    Aha.
    Do you edit the 4K directly?  I'd love to know on what kind of machine?
    Several weeks ago I did some animation (moves on stills) with a lot of keyframing in 4K.  I'm on the road and using a 4 year old MacBook Pro.  The laptop wouldn't play the things, but when I mastered them and made HD clips from the master 4K, they played very nicely.  I just saw a 2K version running at the post house during the timing session; very nice.  I hadn't figured out the proxy thing yet, so I can't remember what format I actually worked in, using Motion, or if I relinked afterward.
    Do you happen to know how the new Mac Pro handles 4K?  My brother, who makes IMAX films, is trying out 4K on a current project, an experiment.  They are cutting with a HD proxy done by the post house ... who later relinks everything with the 4K RAW files (shot with a Sony F55 / and the little Canon 1Dc).  My brother's outfit is still using FCP 7.  I've just discovered the joys of FCP X, and am promoting it to them ... thus the idea of getting the proxy thing to work right.  Their system is aging; I think there is some kind of Aja card in play.  I couldn't get the 2K proxies to play smoothly.  I'm sure he'd happily move to whatever machine could handle 4K directly, if such a thing exists... 

  • Problems with the Proxy Programme--Please help

    Hi All,
    I have written a simple proxy server in the form of a servlet. I changed the proxy config of my browser to connect to this servlet hosted on the default context(http://localhost:8080) of the Tomcat 5.0.25 . Well , this servlet internally connects to the proxy of the corporate LAN . The logic that I have applied is as follows. The servlet gets the request from the client (ie the browser in this case) , extracts the headers and contents from the request, sets them to a new request that it forms and finally send this new request to the proxy. When the proxy responds, the servlet collects the response headers and contents adn writes them in its response. To sum up , this servlet transparently carries the requests and responses between the client(browser) and the corporate LAN proxy. Now the problem is this. Let's say , now I am accessing http://www.google.com.The browser sends a request to my servlet with the following headers as they are extracted by my servlet.
    ProxyServer:::>posting request
    ProxyServer:::>headerValue::> headerName = accept : headerValue=*/*
    ProxyServer:::>headerValue::> headerName = referer : headerValue=http://www.google.com/
    ProxyServer:::>headerValue::> headerName = accept-language : headerValue=en-us
    ProxyServer:::>headerValue::> headerName = proxy-connection : headerValue=Keep-Alive
    ProxyServer:::>headerValue::> headerName = user-agent : headerValue=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; UB1.4_IE6.0_SP1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
    ProxyServer:::>headerValue::> headerName = host : headerValue=www.google.com
    ProxyServer:::>headerValue::> headerName = cookie : headerValue=PREF=ID=1be27c0a74f198ca:TM=1082058853:LM=1082058853:S=bu6ORrygzm8AUkm8
    ProxyServer:::>postRequest
    I set these headers into a new connection opened to the proxy and post a fresh request to the proxy,which, in turn responds with the following headers.
    ProxyServer:::>posted request successfully
    ProxyServer:::>writing response
    ProxyServer:::>writeResponse-->headerName = Proxy-Connection : headerValue = [close]
    ProxyServer:::>writeResponse-->headerName = Content-Length : headerValue = [257]
    ProxyServer:::>writeResponse-->headerName = Date : headerValue = [Tue, 13 Jul 2004 14:01:40 GMT]
    ProxyServer:::>writeResponse-->headerName = Content-Type : headerValue = [text/html]
    ProxyServer:::>writeResponse-->headerName = Server : headerValue = [NetCache appliance (NetApp/5.5R2)]
    ProxyServer:::>writeResponse-->headerName = Proxy-Authenticate : headerValue = [Basic realm="Charlotte - napxyclt2"]
    ProxyServer:::>writeResponse-->headerName = null : headerValue = [HTTP/1.1 407 Proxy Authentication Required]
    ProxyServer:::>writeResponse exiting
    ProxyServer:::>wrote response successfully
    I write these headers back to the client. According to what I was thinking, the client ie the browser would open a new dialog box asking for username/password owing to the presence of the "Proxy-Authenticate " header. But it does not happen that way. Rather the browser stops responsding and displays a blank page. Does anyone know why it happens this way? I am pasting the server prog below for everybody's reference.
    package server.proxy;
    //import all servlet related classes
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import server.resources.*;
    //My Proxy server --->Currently it is very simplea and relies on
    //other proxy servers of an already connected network.
    public class ProxyServer extends HttpServlet
    //stores the resource bundle
    private ServerResBundle resBundle = null;
    //checks for the mode of operation
    private boolean proxySet = false;
    private String proxy = null;
    //storing the original System out/err etc
    private PrintStream sysOutOrig = null;
    private PrintStream sysErrOrig = null;
    private InputStream sysInOrig = null;
    //initialise certain features that are required later
    public void init() throws ServletException
    try
    //initialise the resource bundle
    this.initResBundle();
    System.out.println("ProxyServer:::>res bundle init");
    //set the mode of operation
    this.setMode();
    System.out.println("ProxyServer:::>mode set");
    //set the system out and err --System.setOut etc
    this.setSystemOutErr();
    System.out.println("ProxyServer:::>in/out/err set");
    }//End try
    catch(Exception e)
    System.out.println("Exception in init..."+(e.getMessage()));
    throw new ServletException(e);
    }//Edn
    catch(Throwable e)
    System.out.println("Irrecoverable Error...");
    throw new ServletException(e);
    }//End
    }//End init
    //method to init the resource bundle;
    private void initResBundle()
    this.resBundle = ServerResBundle.getBundle();
    }//End
    //method to set the mode of the server--proxy or direct
    private void setMode()
    //read the target proxy property from the bundle and
    //if it is set,take that URL
    String temp = (String)(this.resBundle.getResource(ResKeys.PROXY_SERVER));
    if ( (temp != null) && (temp.length() > 0) )
    this.proxySet = true;
    this.proxy = temp;
    temp = null;
    }//End
    }//End
    //method to set the system out and err etc
    private void setSystemOutErr() throws Exception
    //keep a copy of the original system out and error
    this.sysOutOrig = System.out;
    this.sysErrOrig = System.err;
    try
    //read the options adn if they are set, take the values directly
    String newOutStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_OUT));
    String newErrStr = (String)(this.resBundle.getResource(ResKeys.SYSTEM_ERR));
    if ((newOutStr != null) && (newOutStr.length() > 0))
    System.setOut(new PrintStream(new FileOutputStream(new File(newOutStr),true),true));
    }//End if
    if ((newErrStr != null) && (newErrStr.length() > 0))
    System.setErr(new PrintStream(new FileOutputStream(new File(newErrStr),true),true));
    }//End if
    }//End
    catch(Exception e)
    //restore the stuff
    System.setOut(this.sysOutOrig);
    System.setErr(this.sysErrOrig);
    }//End
    }//End
    //this is where the proxy functionalities will be embedded
    public void service(HttpServletRequest req,HttpServletResponse resp)
    throws ServletException,java.io.IOException
    //conenction URL
    URL target = null;
    //conenction to the remote object
    URLConnection targetConn = null;
    //stores the OOS and the OIS
    ObjectOutputStream oos = null;
    ObjectInputStream ois = null;
    try
    //check for the mode of operation
    if (proxySet)
    URLConnection objects go through two phases: first they are created, then they are connected.
    After being created, and before being connected, various options can be specified
    (e.g., doInput and UseCaches). After connecting, it is an error to try to set them.
    Operations that depend on being connected, like getContentLength, will implicitly perform the connection,
    if necessary.
    //for the URL to the proxy
    target=new URL(this.proxy);
    //conenct to the proxy
    targetConn = target.openConnection();
    //set the details of the connectuon
    targetConn.setDoInput(true);
    targetConn.setDoOutput(true);
    targetConn.setUseCaches(false);
    // If true, this URL is being examined in a context in which it makes sense to allow user interactions such as popping up an authentication dialog. If false, then no user interaction is allowed
    targetConn.setAllowUserInteraction(true);
    //connect to the remote object
    // targetConn.connect();//call this only when all the request properties are set
    System.out.println("ProxyServer:::>posting request");
    //post the received request to the URL
    this.postRequest(targetConn,req);
    System.out.println("ProxyServer:::>posted request successfully");
    System.out.println("ProxyServer:::>writing response");
    //receive the response
    //write the received response to the client
    this.writeResponse(targetConn,resp);
    System.out.println("ProxyServer:::>wrote response successfully");
    }//End if
    else
    //currently this functionality is not supported
    throw new ServletException(
    (String)(this.resBundle.getResource(ResKeys.ERR_FUNC_NOTSUPPORTED)));
    }//End
    }//End try
    catch(Exception e)
    if(e instanceof ServletException)
    throw (ServletException)e;
    }//End
    if (e instanceof IOException)
    throw (IOException)e;
    }//End
    //wrap it up in ServletException
    throw new ServletException(e);
    }//End
    }//End
    //method to write the response back to the client
    private void writeResponse(URLConnection targetConn,HttpServletResponse resp)
    throws ServletException
    //get all the header fields from the response connection and set them to the
    //response of the servlet
    Map headerFields = null;
    Iterator headerFieldEntries = null;
    Map.Entry header = null;
    //stores the input stream to the conn
    BufferedReader brConn = null;
    //stores the writer to the response
    PrintWriter prResp = null;
    //checks if the proxy authentication needed or not
    boolean proxyAuthReqd = false;
    try
    //juste ensuring that the proxy authentication is reset
    proxyAuthReqd = false;
    if( (targetConn != null) && (resp != null) )
    //Returns an unmodifiable Map of the header fields.
    //The Map keys are Strings that represent the response-header field names.
    //Each Map value is an unmodifiable List of Strings that represents the corresponding
    //field values
    headerFields = targetConn.getHeaderFields();
    //Returns a set view of the mappings contained in this map
    Set temp = headerFields.entrySet();
    //Returns an iterator over the elements in this set
    headerFieldEntries = temp.iterator();
    if (headerFieldEntries != null)
    while (headerFieldEntries.hasNext())
    Object tempHeader = headerFieldEntries.next();
    if (tempHeader instanceof Map.Entry)
    header = (Map.Entry)tempHeader;
    Object headerName = header.getKey();
    Object headerValue=header.getValue();
    System.out.println("ProxyServer:::>writeResponse-->headerName = "+headerName+" : headerValue = "+headerValue);
    //do not select the key-value pair if both the key adn the value are null
    if ( ( headerName == null) && (headerValue == null) )
    continue;
    }//Enmd
    if (headerValue != null)
    List headerValList = null;
    if (headerValue instanceof List)
    headerValList = (List)headerValue;
    }//End
    if(headerValList != null)
    for (int i=0;i<headerValList.size();i++)
    Object headerValueStr = headerValList.get(i);
    if (headerValueStr instanceof String)
    //note that the header-key can not be null for addHeader
    //I have made this temporary provision to make the programme work.
    resp.addHeader(( (headerName==null)? ("null_header"+i) :(String)headerName),
    (String)headerValueStr);
    //check if the proxy authentication required or not
    if (((String)headerValueStr).
    indexOf(resp.SC_PROXY_AUTHENTICATION_REQUIRED+"") != -1)
    System.out.println("ProxyServer:::>writeResponse-->proxy auth needed");
    //proxy authentication is needed
    proxyAuthReqd = true;
    }//End
    }//Ednd of
    else if (headerValueStr == null)
    resp.addHeader(( (headerName==null)? null :(String)headerName),
    null);
    }//End
    }//End for
    }//End if
    }//End if
    }//End
    }//End while
    }//End if
    //get the writer to the client
    prResp = resp.getWriter();
    System.out.println("ProxyServer:::>writeResponse-->proxyAuthReqd="+proxyAuthReqd);
    //juste test a simple header
    System.out.println("Proxy-Authenticate = "+(resp.containsHeader("Proxy-Authenticate")));
    //if the proxy asks you for authentication,pass on the same to the client
    //from whom you have received the request.When this flag is true,the connection
    //is closed by the remotehost adn hence any attempt to open in input steram
    //results in an error ie IOException
    if (!proxyAuthReqd)
    //now get the content adn write it to the response too
    brConn = new BufferedReader(new InputStreamReader(
    targetConn.getInputStream()));
    String tempStr = null;
    while ((tempStr = brConn.readLine())!=null)
    prResp.println(tempStr);
    }//End while
    //close the connections
    brConn.close();
    }//End if
    else
    prResp.println("Proxy Authentication needed...");
    }//End
    //close the streams
    prResp.flush();
    prResp.close();
    }//End if
    System.out.println("ProxyServer:::>writeResponse exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    //method to post request to the internet
    private void postRequest(URLConnection targetConn,HttpServletRequest req)
    throws ServletException
    //extract the header parameters and the body content from the incoming request
    //and set them to the new connection
    Enumeration reqHeaders = null;
    //reads the incoming request's content
    BufferedReader brReqRd = null;
    PrintWriter prResWt = null;
    //stores temp header names and values
    String headerName = null;
    String headerValue = null;
    try
    if( (targetConn != null) && (req != null) )
    reqHeaders = req.getHeaderNames();
    //extract a header adn set it to the new connection
    while (reqHeaders.hasMoreElements())
    headerName = (String)(reqHeaders.nextElement());
    headerValue = req.getHeader(headerName);
    targetConn.setRequestProperty(headerName,headerValue);
    System.out.println("ProxyServer:::>headerValue::> headerName = "+headerName+" : headerValue="+headerValue);
    }//End
    System.out.println("ProxyServer:::>postRequest\n");
    //establis the actual connection
    //calling this method bfore the above loop results in IllegalStateException
    targetConn.connect();
    //NOTE : try reading from and writing into OIS and OOS respectively
    //now read the contents and write them to the connection
    // brReqRd = req.getReader(); //this hangs for some reason
    brReqRd = new BufferedReader(new InputStreamReader(req.getInputStream()));
    System.out.println("Got the reader..brReqRd = "+brReqRd);
    if (brReqRd != null)
    String temp = null;
    //establish the printwriter
    // prResWt = new PrintWriter(targetConn.getOutputStream(),true);
    prResWt = new PrintWriter(targetConn.getOutputStream());
    System.out.println("trying to read in a loop from brReqRd.. ready="+(brReqRd.ready()));
    while( (brReqRd.ready()) && ((temp=brReqRd.readLine()) != null) )
    System.out.println("In while::>temp = "+temp);
    prResWt.println(temp);
    }//Emd while
    //close the streams adn go back
    brReqRd.close();
    prResWt.flush();
    prResWt.close();
    }//End
    }//End outer if
    System.out.println("ProxyServer:::>postRequest exiting\n");
    }//End try
    catch(Exception e)
    throw new ServletException(e);
    }//End
    }//End
    }//End

    Hi serlank ,
    Thanks for your reply. Well , I initially I thought of not pasting the code,as it was too long. But I could not help it,as I thought I must show in code what I exactly meant. That's why I followed a description of my problem with the code. You could probably have copied the code and pasted it in one of your favourite editors to take a look at it. Did you,by any chance, try to read it on the browser? And as regards reposting the same message, I can say that I did it as I felt the subject was not quite appropriate in the first posting and I was not sure as to how I could delete/alter the posting. I am not asking for a code-fix,but some suggestions from some one who might ever have come across such a thing.Anyway, lemme know if you have any idea on it. Thanks...

  • Keep gettig this error message when trying to connect to Firefox The proxy server is refusing connections.

    Redownloaded Firefox and continue to get this error message when trying to connect: The proxy server is refusing connections
    Firefox is configured to use a proxy server that is refusing connections.
    Check the proxy settings to make sure that they are correct.
    Contact your network administrator to make sure the proxy server is
    working.

    Go to Options > Advanced > Network > Connection > Settings and choose "No proxy".
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    It is important that you keep IE updated. The information included with your question, indicates that you are using IE7; you should update to IE8 for your own protection. IE9 will not be made available for Windows XP.
    *http://windows.microsoft.com/en-US/internet-explorer/products/ie/home

  • Path  in the Proxy (XI)  Receiver comunication channel

    Hi,
         If i choose the Proxy(XI) adapter in the Receiver communication channel we need to give the Path .
    how we will get the path.. and  what is the Tcode for getting  path.. and what is the use of path..  
    Thanks
    BABU

    Hi,
    For Proxy u create the XI adapter and the parameters for the Xi adapter are.
    U have to create the HPPT destination type H for XI adapter.in SM59
    Adapter Type     XI
    Sender/Receiver     Receiver
    Transport Protocol     HTTP1.0
    Message Protocol     XI3.0
    Adapter Engine     Integration Engine
    PROPERTIES
    Addressing Type      HTTP destination
    HTTP destination     PI_XXXXXX_HTTP
    Regards,
    Phani
    Reward points if Helpful

  • Need JAVA API to list down all the Proxy Services in OSB Console 11g

    Hi,
    I need a java API to List down all the Proxy Services present in OSB Console for SOA 11g (11.1.1.5). I am in a situation where I cant use python script for the same.
    any help will be much appreciated.
    Thanks in Advance,
    Ravi
    Edited by: 899443 on Oct 1, 2012 4:13 AM

    AFAIK it is proprietary.
    What I do in a similar situation is to form XML for the services, package them into JAR the same way as an import JAR is packaged (creating ExportInfo resource, ...) and deploy with standard WSLT script. Works for simplest services only (direct proxies mostly) but I can also form security, alerts, throttling etc etc etc -- all in one shot.
    Out of sheer interest, may I ask you a question? Why do you need to create OSB services from Java?
    Vlad
    http://vladimirdyuzhev.com

  • Updated to firefox 3.6.6 on laptop and now it can't acces the net "The proxy server is refusing connections" I've restarted twice. My other computer in home works fine. Just not laptop on Network/WiFi

    Can't access the web on lap. It's networked form main computer. The problem started just after I downloaded/updated to Firefox 3.6.6. That may be a coincidence. I get "The proxy server is refusing connections". Restarts don't help. My main computer is fine. I didn't update it.
    == This happened ==
    Just once or twice
    == just after an update to 3.6.6

    Firefox 3.6.6 made a change in prefs to use system proxy settings.
    Check your proxy / network setting in Windows and change it to No Proxy, if you don't use a proxy.
    Internet Options > Connections in the Windows Control Panel.

  • SvcUtil creates incorrect namespace in the proxy

    I create the WCF proxy with the cmd:
    svcutil.exe /wrapped /serializer:XmlSerializer GenericTicketConnector.wsdl /o:OTRS.cs /config:App.Config /n:*,OTRSClient.OTRSServiceReference
    Contract GenericTicketConnector.wsdl you can see here:
    https://raw.githubusercontent.com/OTRS/otrs/rel-3_3/development/webservices/GenericTicketConnector.wsdl
    My WCF client code:
    using (OTRSClient.OTRSServiceReference.GenericTicketConnector_InterfaceClient tst = new OTRSClient.OTRSServiceReference.GenericTicketConnector_InterfaceClient("GenericTicketConnector_endPoint"))
    OTRSClient.OTRSServiceReference.OTRS_SessionCreate sc = new OTRSClient.OTRSServiceReference.OTRS_SessionCreate();
    sc.ItemElementName = OTRSClient.OTRSServiceReference.ItemChoiceType8.UserLogin;
    sc.Item = "soap";
    sc.Password = "1234567";
    OTRSClient.OTRSServiceReference.OTRS_SessionCreateResponse res = tst.SessionCreate(sc);
    File.WriteAllText("SessionID.txt", res.SessionID);
    SvcUtil created this proxy:
    [System.ServiceModel.MessageBodyMemberAttribute(Name="SessionCreateResponse", Namespace="", Order=0)]
    public OTRSClient.OTRSServiceReference.OTRS_SessionCreateResponse SessionCreateResponse1;
    But response from server looks like this:
    <soap:Envelope soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <s:Header xmlns:s="http://www.w3.org/2003/05/soap-envelope"></s:Header>
    <soap:Body>
    <SessionCreateResponse xmlns="http://www.otrs.org/TicketConnector/">
    <SessionID>r3oRuOPBXiYtOZCCKIL5ZNSCDCKS7lAt</SessionID>
    </SessionCreateResponse>
    </soap:Body>
    </soap:Envelope>
    Response in my WCF client's code was null.
    I manually corrected the proxy like this:
    [System.ServiceModel.MessageBodyMemberAttribute(Name="SessionCreateResponse", Namespace="http://www.otrs.org/TicketConnector/", Order=0)]
    public OTRSClient.OTRSServiceReference.OTRS_SessionCreateResponse SessionCreateResponse1;
    And the answer began to contain the required data (response is not null).
    How to fix the parameters of the command line SvcUtil call? Or I must fix the WSDL file?
    I need to make a proxy automatically with the correct namespace.

    Hi Andrey Antipov,
    Based on your description, it seems that you are using the XmlSerializer, please try to use the
    DataContractSerializer to see if it can work.
    Besides, please also try to use the "Add Servicexs Reference"  to see if it can make a proxy automatically with the correct namespace.
    Best Regards,
    Amy Peng
    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.
    Click
    HERE to participate the survey.

  • Setting the proxy in a configuration file

    Hello All, Is there a configuration file where you can set http.proxyHost and http.proxyPort for a jsp web app (maybe web.xml)? I'm using tomcat 4.1. The web app in question is behind a firewall and needs to go through a proxy server to pull information from the internet. I'm looking for a way that doesn't involve setting the proxy parameters within the code of the web app. I've also read that you can set environment variables with "CATALINA_OPTS = -DproxySet=true -DproxyHost='proxy host' -DproxyPort=8080", will this work for my situation and in what file would I add this line?

    I may be wrong but I think that the "Use System Proxy Settings" makes sense only on Linux and generally speaking "other OSes". As far as I know there is no generic proxy settings in Windows operating system.
    The one I know is in the registry part of Internet Explorer.
    So in my understanding in Windows, Use System Proxy Settings = No Proxy

Maybe you are looking for

  • Acrobat Pro 9 won't size PDFs correctly.

    I upgraded to a Windows 7 computer and Acrobat 7.0 wouldn't work with it anymore, so I bought 9.0 pro. However, It absolutely will not change the page size and converts everything to 8.5 x 11 no matter how I change the settings. How can I correct thi

  • Firefox 24 - options not remembered from session to session

    When I upgraded to Firefox 24, all of the option settings from v23 reset to the defaults. I put them back the way I had them before, but after restarting the browser, everything defaulted as before. I am running NoScript, and any changes to its rules

  • Disk Utility Error - Secure Erase Free Space failure

    I have encountered a problem which I can't solve: I've used the secure erase feature to wipe unused parts of the disk before without problem. Now I get the following error message each time I try to use Disk Utility to do so: "Secure Erase Free Space

  • How to configure Redundant Bridging

    Hi, A costumer has a wireless link (using bridges AIR-BR1410A-K9) as a main connection beetween its 2 offices. In short time plans to add a second wireless link as redundant connection. Documentation indicates the option redundant briding ( I attach

  • Select Query - a different perspective.

    Hello all, I have to write a query to retrieve data from T156T ( movement type table ). Each movement type has got many Movement type description text. Now i need to get 3 movement types descriptions but only the top most value in the table of that p