-
1. Re: Routing requests based in a SOAP header
jfclere Sep 13, 2016 3:26 AM (in response to leaqui)1 of 1 people found this helpfulYou can't do that most of the proxy are using HTTP headers not SOAP headers, basically you need to read the POST data to choose the node.
-
2. Re: Routing requests based in a SOAP header
leaqui Sep 13, 2016 10:33 AM (in response to jfclere)Hi Jean, thanks for the answer.
So, it is impossible to read POST data at balancer?
-
3. Re: Routing requests based in a SOAP header
mbabacek Sep 13, 2016 10:53 AM (in response to leaqui)1 of 1 people found this helpfulHi Leandro,
it is not impossible, we could do that at a certain performance cost.
You might file a feature request Jira: mod_cluster - JBoss Issue Tracker
Eloquently described requests, with examples of communication and analysis of balancer and worker behaviour have better chance for being picked up and implemented.
It is also important to argue why this is a good idea and why can't you use some JSESSIONID-ish http header field.
Cheers
-K-
-
4. Re: Routing requests based in a SOAP header
leaqui Sep 14, 2016 10:59 AM (in response to mbabacek)Hi Karm, thanks for the answer, I would try to file a feature request.
JSESSIONID was the first option, but WS-AT implementations don´t consider it, because it is not in the standard.
This is how it is resolved in Oracle WebLogic: Managing Web Services in a Cluster
There is a Front-end SOAP Router that routes requests to corresponding server based on transaction ID.
JBoss WS-AT implementation doesn´t provide this functionality.
Leandro
-
5. Re: Routing requests based in a SOAP header
jfclere Sep 14, 2016 12:05 PM (in response to leaqui)X-weblogic-wsee-storetoserver-list HTTP Response Header
Ok that means we can rewrite that using mod_rewrite to have it in a cookie and make the cookie available in the next request.
That would be very hacky...
storename
1:
host_server_spec
|
storename
2:
host_server_spec
|
storename
3:
host_server_spec
That looks like having a route cookie containing a list of back-ends and again having mod_rewrite using it to find the back-end node, probably doable with mod_rewrite proxy directives. Of course no idea how to make the failover for the moment...