Forum Discussion
Spence_Fasching
Nimbostratus
Nov 25, 2009JBOSS application persistence
I working on getting JBOSS app persistence working. I am pretty close to getting it working - but for some reason, my persist command is not actually setting a persistence record. Here is the code: ...
hoolio
Cirrostratus
Nov 26, 2009I don't think you actually need to add a UIE profile in order to use UIE persistence in an iRule. But it wouldn't hurt anything to do so.
Can you add logging back to the rule and post anonymized copies of the log output and the 'b persist all show all' output? You can also log the selected pool member in LB_SELECTED/LB_FAILED:
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]:[TCP::client_port]: New TCP connection to [IP::local_addr]:[TCP::local_port]"
TCP::collect
}
when CLIENT_DATA {
set jsessionidc [findstr [TCP::payload] "JSESSIONID=" 11 29]
log local0. "[IP::client_addr]:[TCP::client_port]: Parsed \$jsessionidc: $jsessionidc. Lookup: [persist lookup uie $jsessionidc]"
if {$jsessionidc != ""} {
persist uie $jsessionidc 180
}
log local0. "[IP::client_addr]:[TCP::client_port]: releasing and collecting"
TCP::release
TCP::collect
}
when LB_SELECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: pool info: [LB::server]"
}
when LB_FAILED {
log local0. "[IP::client_addr]:[TCP::client_port]: pool info: [LB::server]"
}
Aaron
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