Forum Discussion
Moose224_63566
Nimbostratus
Mar 12, 2010WebLogic Persistence issue.
We have deployed several BEA WebLogic applications, all with JSessionID persistence, without issue.
Now we are deploying a new Application using a renamed JSessionID cookie for persistence, and we are seeing issues with finding the value in our persistence table consistently. Watching communication, we see will see a number of requests hit the iRule we are using, and find the persistence record, and persist. Every now and then it will not find a value for persistence, and load balance to an improper server. Anyone have any ideas?
Note: We are also doing some static content separation to an Apache farm.
when HTTP_REQUEST {
if { [ matchclass [HTTP::path] ends_with $::WLfiles ] } {
WebLogic Request
pool weblogic_pool
if { [HTTP::cookie exists "CookieID"] } {
set PersistValue [persist lookup uie [HTTP::cookie "CookieID"]]
if {$PersistValue eq ""} {
log local0.info "no persistance found, even though cookie exists"
}
persist uie [HTTP::cookie "CookieID"]
}
} else {
Static Request
pool Static-Content_pool
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "CookieID"] } {
persist add uie [HTTP::cookie "CookieID"] 3600
}
}
- JRahm
Admin
what is the format of your cookie? It's been awhile, but in an environment I've worked in it was <52characterString>!! or something like that. Sometimes, the server IDs would change coming back from the app, tanking persistence when using the whole cookie. I stripped off the serverID stuff and just went with the ID itself using getfield: - brad_11480
Nimbostratus
Our Weblogic persistence uses a cookie insert persistence method. This seems to be what the F5 guide and the BEA Weblogic template uses as well. - hoolio
Cirrostratus
Hi Brad,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects