Project

General

Profile

Multiple users using JSAGA from one machine

Added by Balint Tunde almost 15 years ago

Hi,
I have a more general question. I am trying to create a web service which uses JSAGA for job submission. The user credentials are obtained from a MyProxy server and I'm creating different jsaga-universe.xml files for every user, although I can't use these correctly, because the first time I run the program the first user's credentials are loaded and then these can't be modified. As far as I understood it, this is because of the ImplementationBootstrapLoader is a singleton.
I tried to set the SAGA_VAR to different locations, but didn't help.
My question is if it is possible to add more credentials - possible of the same type (VOMSMyProxy) - to the same instance, even if these are added after the instance was started? As far as I understand it I should have multiple SAGAFactories - one for every user...
Best,
Tünde


Replies (3)

RE: Multiple users using JSAGA from one machine - Added by Reynaud Sylvain almost 15 years ago

Hi Tünde,

Yes, it is possible to have several credentials of the same type to the same instance of JSAGA. They can be either configured in the same jsaga-universe.xml, or programatically through the SAGA API.

JSAGA has not been designed to support several jsaga-universe.xml, because we made the assumption that users who want to share the same JSAGA installation also want share a big part of its configuration. However, user dependent configuration attributes can be set in file ~/.jsaga/jsaga-user.properties.

This is convenient for several mono-user applications running the same JSAGA installation, but for something like a multi-users web service, I think you should rather set your security contexts programatically.

Please note that JSAGA also have a InMemoryProxy adaptor that may be useful for this kind of application (multi-users web service).

Best regards,
Sylvain

RE: Multiple users using JSAGA from one machine - Added by Balint Tunde over 14 years ago

Hi Sylvain,
I'm sorry that I didn't answer this sooner...but here is my solution: I'm dynamically loading the jsaga-engine and the jsaga-adaptors for every client and then I get different instances for jsaga. I also tried programmatically loading the certificates, but it didn't work the way I wanted too...sorry, this was a couple of months ago and I don't recall exactly what was the problem.
Best,
Tünde

RE: Multiple users using JSAGA from one machine - Added by Reynaud Sylvain over 14 years ago

Hi Tünde,

You might be interested to know that I plan to rewrite the code related to JSAGA configuration, in order to make it a little bit more restrictive (i.e. all secured service will have to be explicitly associated to a security context) but easier to use and debug.

The new configuration will be associated to a SAGA Session object, so it will be possible to have several configurations if you have several Session objects.

I can not give you a date for this, but I hope I will find some time to do this before the end of august.

Best regards,
Sylvain

    (1-3/3)