Sompol,
Is this option application-specific (would it apply to only our application) or would this apply to every application on the server?
Main Topics
Browse All TopicsI'm not a developer, I'm just tech support, but I am looking to help both my customer and our development team. I am knowledgeable with Weblogic to my own needs for my job, but not too much beyond that, so this is a bit over my head. Additionally I have spoken with our lead Java developer and he is perplexed as well.
Here are some highlights on what we've gathered so far and how the application is deployed.
We have deployed our software on a Weblogic cluster (it is our customer's server)
MachMS1 and MachMS2 are the servers involved here.
The software is only deployed onto MachMS1, i.e. we have used "Deploy to part of the cluster" option, no part of the software configuration is aware of MachMS2.
The deployment is a fully expanded folder
Our software utilizes the PD4ML library for Java
When PD4ML is invoked, according to the developer, we pass the document URL directly to the software. I have been able to verify using the frontend for the software that accessing the software on MachMS1 is working OK, I do not get the same behavior as I do inside the software.
By looking at the access logs from the customer, I have been able to determine where the 404s are coming from (I get 404 errors sometimes). The timestamps on MachMS1 and MachMS2 match. Generation of the PDF files is yielding mixed results. Less than 25% of the time, the PDF is generated successfully. The other times, we get a PDF document in return, but, it prints out as a 404 error that Weblogic has spawned, not the page we're looking at.
The access logs show two requests, one to PD4ML, and the second (I presume) is to send the file back to the client. On failures, the request is processed by MachMS2 - On successes, the request is processed by MachMS1.
Hopefully the above explains the situation somewhat; ultimately, my question is, how do we get this to always process on the same machine, and not pass any requests to the other machine? We're not the only application on this server and naturally their admins are concerned about what potential impact global changes would have on the other applications.
I think maybe its trying to communicate to the load balancer for some of these requests, and the load balancer, functionioning normally, is happily spreading them between MachMS1 and MachMS2. I don't know how or why though, our program was never made aware of the other server.
Due to technical reasons, we can not deploy our application on the MachMS2 server. This has been proposed and rejected by the customer.
Is there something I can do (maybe with weblogic.xml file?) to sidestep the load balancer and make all the requests for our app flow through a single server?
I cannot be sure, but, I think on the first access for any of their applications, it is connecting to the load balancer and just maybe all subsequent requests are processed like this, so that even if we're calling the proper server and port right now, later on, it is not answering absolutely all the requests but spreading them, wherein the random 404's are popping up.
Weblogic 10.3 is the app server.
Thanks in advance
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
As per my experience, when I ask LB admin to config to route request per application(by context root of web app), I got the answer, Yes. It can but that is not a general config and it will impact to performance of load balancer because it have to parse the url request whether it matches to which application before dispatch request to target server.
If you really need and all of your application is not performace critical, I think you can ask to config like that.
Hope this help,
Sompol
Business Accounts
Answer for Membership
by: sompol_kiatkamolchaiPosted on 2009-11-02 at 16:55:55ID: 25725302
Hi,
This promblem cannot be solved by setting in WebLogic but you can ask load balancer team to change the behavior.
By default, most of load balance will be configured like you are facing. So you should ask him to enable IP or session sticky option. If this option enable, load balance will remember what server it delegate the request and next time it will route to the same server.
Hope this help,
Sompol