Load balancing HTTP requests for an OC4J instance w/multiple JVMs

Hello everyone,
I am using OAS 10.1.3.1 and wish to load balance HTTP requests across an OC4J group of one or more OC4J instances, where each like named OC4J instance may have multiple JVMs or it may just have one JVM.
My mod_oc4j.conf file would contain the following directives :
Oc4jSelectMethod roundrobin:local
Oc4jRoutingMode Static
Oc4JMount /xyz/* xyz
In the degenerate case, I would like to have an OC4J group with a cluster size of one, and have that one OC4J instance have two or more JVMs. I would like to be able to receive a request within my web application, determine that the JVM that has been sent the request is the wrong JVM to process the request, and then call HttpServletResponse.sendRedirect("/xyz"). Then, when the browser receives the HTTP 302 response and issues the subsequent HTTP request, have that request sent to a different JVM than the previous JVM that issued the sendRedirect().
What I have seen is that the subsequent request is sent back to the same JVM that issued the sendRedirect(). I also call invalidate() against the HttpSession prior to calling sendRedirect(), but that does not seem to affect the behavior that I see.
In the full blown case, I would have an OC4J group with a cluster size > 1, and each of those OC4J instances would have at least one JVM. In that case, I wish the sendRedirect() call to allow the subsequent request to be sent to any one of the OC4J instances in the group, and any one of those JVMs within all of those OC4J instances.
Can anyone verify that my mod_oc4j mount directive is appropriate given the select method and routing mode? What else might I need to do to have a chance to have a different JVM respond to the request that results from a sendRedirect()?
Thank you,
Doug

I should clarify that in the full blown environment, the OC4J instances that form a group will each be housed within a separate OAS instance that resides on its own machine.
So ideally, a request could be inbound to say OAS instance 1 on machine A, OC4J instance AA, JVM 2, and I need to force a redirect so that the request can actually be serviced by OAS instance 3 on machine C, OC4J instance AA, JVM 1, and I need to be able to call sendRedirect() against an HttpServletResponse from within a JVM until the subsequent request from the browser, Internet Explorer in my case, is serviced by that JVM.
Thanks,
Doug

Similar Messages

  • Load Balancing HTTP requests to ABAP App Servers options?

    Looking at SAP Documentations, SAP recommends to use the Web Dispatcher to load balance HTTP requests to multiply ABAP App servers. 
    My question is that the only solution? or can we use hardware such as the F5 BigIP to perform the same job?
    Any thoughts?

    In collaboration with SAP and SAP customers, F5 Networks has created a solution that delivers security, high availability, and improved performance for SAP web and portal technologies.
    By deploying F5 Networks solutions with SAP NetWeaver, enterprises extend their control over their Network and Application traffic, and ensure the fast and secure delivery of their applications.
    Benefits of F5 for SAP NetWeaver and Enterprise SOA
    u2022 Cuts SAP Enterprise Portal login time by more than half for WAN users
    u2022 Speeds document downloads
    u2022 Reduces SAP server CPU utilization by 44%
    u2022 Provides a 20x reduction in the number of SAP server-side connections
    Further details, case studies and deployment guides on;
    http://www.f5.com/solutions/applications/sap/netweaver/
    F5 certification information on SAP Website
    http://www.sap.com/partners/directories/SoftwareISVSolutions.epx?context=21B87D61C0F646A22B2A6DB254A010CA8C9C141B7529F029910FE6FF9EEEC5A701BF20EED61AC07159D98BAA068EBE1B8C5C7665EA2226374E942CF1D2A49D20AB1BFDFA1E0B68EC41E3058F04A85F105D5002CF1A11383C905D9FE5DDB951251A4B574B0BBE58309F67667A3B95877FEF85F1EF8B2C1A9F6FBA3BF5066D9534%7c01518B8BD6BF02F55A5A72E5947F2C45
    Hope this helps. Thanks

  • EJB 3.0 Cache Issue With OC4J Instance With Multiple JVM's

    I created an EJB 3.0 project in JDeveloper 10.1.3.3.0 and everything works fine in the embedded OC4J server. I am deploying the application to an OC4J instance consisting of 3 Java Virtual Machines in Oracle Application server 10.1.3 and seem to be getting a different persistence context for each virtual machine. i.e. I'll have 3 browsers that can view the same data even after updating, another 2 browsers that can't see the first 3's changes but can see changes by any browser in this group, etc.
    I tried adding the below to the persistence-unit tag in the persistence.xml but it didn't seem to help.
    <properties>
    <property name="toplink.cache.shared.default" value="true"/>
    </properties>
    How do you get all connections to use the same cache?

    here is the code for my bean.
    package com.ups;
    import java.util.logging.Logger;
    import javax.ejb.ActivationConfigProperty;
    import javax.ejb.EJBException;
    import javax.ejb.MessageDriven;
    import javax.ejb.MessageDrivenContext;
    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    import javax.jms.TextMessage;
    * Message-Driven Bean implementation class for: MessageBean
    @MessageDriven(
              activationConfig = { @ActivationConfigProperty(
                        propertyName = "destinationType", propertyValue = "javax.jms.Queue"
    public class MessageBean implements MessageListener {
         private MessageDrivenContext mdc;
    * Default constructor.
    public MessageBean() {
    // TODO Auto-generated constructor stub
    * @see MessageListener#onMessage(Message)
    public void onMessage(Message message) {
         TextMessage tmsg = null;
    try {
    tmsg = (TextMessage) message;
    System.out.println("MESSAGE BEAN: Message received: " + tmsg.getText( ));
    System.out.println ("The onMessage() is called");
    } catch (JMSException e) {
    e.printStackTrace( );
    mdc.setRollbackOnly( );
    catch (Throwable th) {
    th.printStackTrace();
    public void ejbRemove( )throws EJBException{
         System.out.println("ejbRemove() is executed >>>>>>>");
    I have configured my JMS Distributed queue in the Weblogic.
    If possible please provide more details so that I can get rid of this error as soon as possible.
    Thanks for reply.
    Piyush

  • Load Balancing DNS requests

    I would like to use the CSS to load balance DNS requests for a telnet applicaion. I don't want my telnet sessions to go through the VIP, I want them to go directly to my host. I would like the CSS to run TCP health checks on port 23 and return the best DNS address based on least connections. I know you can do HTTP redirects, but I am not sure how to accomplish this with telnet traffic.
    Thanks for the help, sample config would be appreciated.

    You could the information in this doc to configure health checks. But I am not too sure about the redirection and load balancing for telnet traffic. May be someone else could help.
    http://www.cisco.com/warp/public/117/health_checks.html

  • Office Web Apps Load Balancing Configuration Issue for SharePoint 2013

    I have load balanced servers dedicated for Office Web Apps with name “md1xxxwfe1” and “md1xxxwfe2” 
    , both this servers are load balanced by CISCO Load balancer. And I have mapped Load Balancer Virutal IP with host name officeapps.jda.corp.local in the DNS records.
     Things are working fine if I add new farm by using New-OfficeWebAppsFarm
     with server name as internalurl in PowerShell console
     as like “  -internalurl http://
    md1xxxwfe1  but when I use –internalurl officeapps.jda.corp.local it is not working at all. I’m not getting what to do at this point.
    I have gone through following blogs but no luck.
    http://blogs.technet.com/b/meamcs/archive/2013/03/27/office-web-apps-2013-multi-servers-nlb-installation-and-deployment-for-sharepoint-2013-step-by-step-guide.aspx
    http://blogs.technet.com/b/office_resource_kit/archive/2012/09/11/introducing-office-web-apps-server.aspx
    http://davidlimsharepoint.blogspot.in/2013/02/installing-and-configuring-office-web.html 
    http://sps2013.blogspot.in/2013/09/office-web-apps-with-sharepoint-2013.html
    The output of the wfe1 server is attached with this. When I open http:// /hosting/discovery in wfe1 I’m getting following result (attached
    screenshot) but it should show hostname rather than server name.
    Please help me
    Thanks, Ram Ch

    Hi  Ram ,
    For  troubleshooting your issue, please take steps as below:
    Just about any load balancing solution will work, including a server that runs the Web Server (IIS) role running Application Request Routing (ARR):Install
    Application Request Routing
    Install the certificate on the load balancer as described under Securing Office Web Apps Server communications by using
    HTTPS.
    Make sure you have configured the cluster correctly for full internet name:
    Reference:
    http://technet.microsoft.com/en-us/library/jj219435.aspx#loadbalancer
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Load balancing and HA for office web apps server Lync 2013

    Hi,
        I have 12000 users, 3 FE servers in a pool, 2 edge server in a pool, HA required, IM/presence, A/V, WEb conferencing required. plan to have 2 office web apps server a farm with HA, below are my queries
    1.  which type of load balancing i need....DNS or HLB for office web app servers? if its HLB then is it mandatory?
    2. i have already 2 HLB for FE pool .. one for externa url , one for internal URL...can i use the same HLB for office web app servers ?
    3. one more question regarding EDGE pool load balancing, can i use the same HLB  in EDge pool also that i am using for FE pool?

    Hi,
    1.  which type of load balancing i need....DNS or HLB for office web app servers? if its HLB then is it mandatory?
    WebApps runs on https and you cannot load balance http traffic using DNS load balancing. you need to have a HLB.
    2. i have already 2 HLB for FE pool .. one for externa url , one for internal URL...can i use the same HLB for office web app servers ?
    you can use the same HLB for that
    3. one more question regarding EDGE pool load balancing, can i use the same HLB  in EDge pool also that i am using for FE pool?
    for that one, you probably need a separate HLB.  
    Z-Hire -- Automate Lync User Account creation process ( AD / Exchange / Lync )

  • Repeat of last request for new OC4J with Java SSO

    Problem: When a request is redirected to the 2nd OC4J in a group, reauthentication with Java SSO occurs as expected. However, the request has to be repeated with the 2nd OC4J before it is actually executed. How can I fix this?
    Scenario:
    Java SSO is set up for 2 OC4J instances (home1 and home2) in the same server and group.
    The same ADF application is deployed to both OC4J instances.
    1st request goes to home1. User logs in on java_sso login page.
    Home1 dies.
    User clicks on link to navigate to a different page. 2nd request is submitted.
    Log messages for home2 show the reauthentication.
    Navigation to the different page doesn't happen.
    User clicks the link again.
    This time, navigation occurs as expected.

    I don't think starting a new OC4J for failover will resolve this problem since the requests are being routed to the other OC4J in the group when the first one "fails". It's just the matter of having to resubmit the last request made when the first OC4J fails.
    Since I made the original post, I added application clustering to see if that would resolve this. It doesn't. I did verify that I have the same session id with the 2nd OC4J. Any other ideas would be appreciated!

  • Load Balance Between Diff DB's or Instances??

    Hello All,
    Based on the below TNS entry, my understanding is that since it has multiple listener addresses by default connect time failover is configured and as description says load balancing option is also enabled.
    But how would i know whether fail over & load balancing is happening to the same instance of database or altogether to a different database??.... I did nslookup on the server names though IP addresses are different it's still not clear for me....
    How different are the Oracle instance & Oracle DB??
    Could you please shed some light for me to cross check, Thank you.
    BDCD =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = xxx-vip.abc.com)(PORT = 1557))
        (ADDRESS = (PROTOCOL = TCP)(HOST = yyy-vip.abc.com)(PORT = 1557))
        (LOAD_BALANCE = yes)
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = BDCD)
      )

    Ariean wrote:
    1.) Thanks for your reply, so load balancing and/or fail over will only happen between different instances of the single database or can it also be possible between 2 different databases provided the databases are in sync??
    Yes, it can be done between two databases as well and this is called Standby database configuration. This won't do the load balancing for you but you would get teh switchover (or Failover) between two.
    2.) Would it be possible to have PROD & DR database servers with load/fail over options configured and also with dataguard setup between those 2 DB's will have same IP addresses & host names like below?
    PROD      DataBase Server     tsjipud186.xyz.mq.abcd.net     123.45.67.30
                         tsjipud187.xyz.mq.abcd.net     123.45.67.55
    DR     DataBase Server          tsjipud186.xyz.mq.abcd.net     123.45.67.30
                        tsjipud187.xyz.mq.abcd.net     123.45.67.55
    Hmm may be I need a cup of coffee because not able to parse the question.
    Aman....

  • Load balancing and HA for persistence chat pool

    Hi,
           I have 12000 users for lync 2013 . plan to have 2 persistence chat servers in a pool , have below queries regarding the same.
    1. which type of load balancing will work for persistence chat pool.... DNS or HLB?  if its HLB then is it mandatory to use HLB , agenda is to minimize the cost.
    2. there is already 2 HLB for FE pool , one for external service and 1 for internal service.... can i use the same HLB for persistence chat pool?
    3. does persistence chat pool have HA bydefault like FE and Edge pool?

    1) DNS LB is fine: You can see them doing it here:http://technet.microsoft.com/en-us/library/jj205391.aspx
    2) I suppose you could, but I'd suggest sticking with DNS as it's easy, supported, and it works. 
    3) Yes.  I believe so.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • Network Load Balancing and failover for AFP Sharing

    Dear all,
    Somebody kindly teach me to use round robin DNS to perform the network load balancing, it's success but not the failover.
    I have 4 xserve and want to do the load balancing and failover at the same time.
    I have read the IP failover document and setup it successfully, but anyone know is it possible to do the IP failover for more than 2 server?
    For example, 4 server serving the AFP service at the same time, maybe I have 1 more extra server to do the IP failover for thoese 4 servers.
    As I know, IP failover require Firewire as the heartbeat detection. But one xserve only have 2 firewire ports. May I setting up the IP failover only by a ethernet port and an IP address? does it possible to detect and failover to any server after server down has been detected?
    I believe load balancer maybe the best solution but its cost is too high.
    Thanks any advance!
    Karllee

    well, u have 2 options here
    software load balancing
    request comes it foo.com -> ws7u2 hosting foo.com is configured to run as reverse proxy . this server sends any incoming requests to one of the four back end web server 7 handling your incoming request
    hardware load balancing (this you need to invest)
    request comes to hardware load balancer who responds for foo.com -> sends requests to four ws7 server hosting your application
    you could try out how software load balancing works out for you before you invest in hardware load balancing
    here is more instruction on configuring ws7 + reverse proxy (software load configuration)
    - install ws7 on foo.com
    - create a new configuration (choose port 80, disable java

  • Is Load Balancer a Must for SOA Cluster

    Hi,
    We are trying to bring up a soa cluster of 4 soa_servers
    We have deployed the code and seems to be picked up by all the soa_servers properly.
    The issue we are facing is all the partner link references (which are internal composites in the cluster) is pointing to one of the soa server (i.e. the one we have used during deployment)
    Because of this there is no load balancing happening and effectivly only one of the server is fully loaded.
    If this is the expected behaviour, is a load balancer/proxy server a must for a soa cluster ?
    Thanks,
    Ajay....
    Edited by: ajaykumar on Sep 6, 2010 8:54 AM

    Dear All
    Weblogic Server Cluster Domain by default WILL NOT have any Load Balancer and WILL NOT do any load balancing stuff. Any Weblogic Cluster should and must have some sort of Software or Hardware Load Balancer in front of WLS Cluster Domain. Most of the customers use open source Apache Http Server which is very simple configuration and works fine. See this below link for Apache details. Go back on this link to see other WebServers like IIS or Sun WebServer etc. You can use Hardware load balancer.
    http://download.oracle.com/docs/cd/E14571_01/web.1111/e14395/apache.htm#CDEGCBAC
    The basic steps are in one of the webservers configuration files, you specify the details of backend WLS clustered managed servers host and ports with comma separated. Now this Apache or any other WebServer runs at some host and port. Now this is the host and port that you need to configure for any WebServices WSDL URLs. Then load balancing will happen. So even though we do development say from JDeveloper we create WSDLs or WebServices client using single WLS Server Domain. So naturally that WSDL will have that domains host and port hardcoded. But when you export this webservice .war file and deploy in cluster env you have option to invoke which wsdl url. When we get the WebService Service Object, usually there are 2 constructors. One that take no parameters and internally it goes to the default wsdl url specified in the .wsdl file. Another constructor takes 2 parameters like wsdl url and QName for Service. If you see that service .java file generated when you create client jar for the WebService you will get an idea. So the point is in your client program use the second constructor and for wsdl url, use load balancers host and port and rest will be same. Infact you can put this wsdl url in .properties file also which goes under say WLS Domain folder. So for diff env like Test, QA, Prod etc you can have diff values for wsdl url in .properties file specific to that environment.
    So bottom line for Load Balancing we do need external load balancer in front of Weblogic Cluster Domain.
    Thanks
    Ravi Jegga

  • Load balancing outbound requests from OAG

    Hi,
    I need to load balance outbound requests from OAG to a cluster of Application Servers (which expose some web services): do I need a hardware (or software) load balancer product? Isn't API Gateway able to do the job by himself?
    Thanks.
    Bye.
    Roberto

    Hi,
    By adding a remote host you can achieve load balancing. So make up a "fake" host that should not exist just not to collide with any actual service, add that host as a remote host and then add the IP's in the list of the of load balancing. Us the fake host in your connection filter and the gateway will automatically replace it host with a correct IP from the load balancing list.

  • Deploy one Application per OC4J instance or multiple

    Hello,
    I have the following questions on deploying applications on OC4J:
    1. What is the best practice for deploying applications on OC4J?
    2. Should I deploy only One application per OC4J Instance or multiple applications per OC4J Instance.
    3. If I decide to deploy more then one application on one OC4J Instance, for this OC4J Instance, should I increase default_island property to add the number of processes within an OC4J Instance
    Thanks,
    Manish

    You really should read the 9iAS Performance and Tuning Guide. There is no specific recommendation. It is
    highly dependent on your specific applications.
    You can deploy more than one application per OC4J instance and if you have a high performance machine you will probably want to run more than one JVM per OC4J
    instance. If you are running applications which create sessions and replicate state across JVM's then
    you may want to create multiple islands to limit the scope of replication.

  • Load balancing Http/https requests of SRM

    Hi all,
    we are on SRM 5.0 with CI and one DI , we don't have any web dispatcher for routing http/https requests.
    Currently CI is flooded with all requests and DI is sitting idle no routing  is  going on.... and users are experiencing Time out expceptions ...
    we  have configured SMLG  and services in SICF have group assigned...
    we have BI portal where users log in and  access all SRM web applications like shopping cart, invoice....
    Please suggest how to handle the load balancing of http/https requests with message server...
    Thanks,
    Subhash.G

    Thanks

  • Load balancing and clustering for SQL SERVER ANALYSIS SERVER instances to access large number of concurrent users for bi site

    HI
    how to do analysis server clustering 
    we have sharepoint bi site and we published many dashboards pointers ,filters kpis 
    and at a time some 200 to 300 concurrent users access these dashboards pages
    so for maintain this requirement how we apply clustering for ssas intances 
    and also it has load balancing 
    adil

    Hi Adil,
    According to your description, you want to implement SQL Server Analysis Services Clusster and Analysis Services Load Balancing, right?
    In SSAS, we can design highly available solutions in Analysis Services by using: network load balancing (NLB) technologies, failover clustering technologies, or both. For the details about implemention, please refer to the links below.
    http://msdn.microsoft.com/en-us/library/dn736073.aspx
    http://sqlsrvanalysissrvcs.codeplex.com/wikipage?title=Analysis%20Services%20Load%20Balancing
    http://technet.microsoft.com/en-us/library/bb500217(v=sql.105).aspx
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • NO OUTPUT DEVICE ERROR

    Hi Guys Yesterday i reinstalled os x and my audio was working properly..... But from today morning i got no output device error.....it also doesnot work in headphones.... someone do help...thank u....

  • Nokia x6 -- unable to browse this forum on defaul...

    I am able to browse many other websites with the default browser in my X6, include full screen ones, not just mobile sites. But I am NOT able to come to this forum. Everytime the X6 download about 50% (~500kb) of stuff, it just quit. I am using my WL

  • Does photo stream take up space on my iPod?

    does photo stream take up space on my iPod?

  • What is this Partition type mention in code "Partition by HASH".

    Hi Team, Regularly i am Adding new partions and sub-Partitions to production table, based on Date. For example Every Day Data stored in one partion. please find below code, what i am using to add new partitions. I think this called RANGE partition. C

  • Error in implementation of RequestDispatcher for use of filters ?

              Hi,           I am using the new features of the servlet API 2.3 to do dynamic filtering. I           use the RequestDispatcher object to include content that I pass via HttpServletRequestWrapper           and HttpServletResponseWrapper, do