[Building Sakai] Webservices in a cluster?

Stephen Marquard stephen.marquard at uct.ac.za
Wed Aug 11 11:21:59 PDT 2010


If all your app servers are directly addressable (i.e. have distinct URLs for each independent of the loadbalancer URL), you can call loginToServer() which will return a session and the URL for the app server. Example in perl:

my $res1 =  $soap->loginToServer($user,$password)->result;
($session, $server) = split(",", $res1);

You then use the server URL directly for subsequent calls to other webservices.

Alternately you could use a SOAP client that supported cookies, but I'm not sure if that's very common.

Regards
Stephen
 
>>> Sam Ottenhoff <ottenhoff at longsight.com> 8/11/2010 7:51 PM >>> 
We work around this by hitting a Tomcat node directly via a Tomcat 
HTTP listener.  So if Sakai is being fronted by Apache via mod_jk, we 
open a private HTTP listener on Tomcat (private network only) and run 
webservices directly against the Tomcat HTTP listener.

--Sam

On 8/11/2010 1:44 PM, Maurer, Christopher Wayne wrote:
> What are folks doing about webservices running against a cluster?
>
> If I call login from SakaiLogin.jws, it gives me back a session (on a particular node).  If I then make some other call passing that session id, it may be serviced by a different node and be unable to find that session.
>
> I have not done too much with webservices before so am not fully read up on them!  We are running 2.6-ish.
> I've been looking around a bit here:
> http://confluence.sakaiproject.org/display/WEBSVCS/Home
> But haven't seen anything that has been terribly helpful.
>
> Chris
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



 

###
UNIVERSITY OF CAPE TOWN 

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 4500. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.

###
 


More information about the sakai-dev mailing list