Project

General

Profile

MyProxy JDL attributes in JobDescription object

Added by Scardaci Diego about 13 years ago

Dear All,
I'd like to set the MyProxy JDL attribute on my JSAGA code.

I know I could do it during the session creation as the below sample for the RetryCount attribute:
Session session = null;
Context context = null;
try {
session = SessionFactory.createSession(false);
System.out.println(ContextImpl.URL_PREFIX);
context = ContextFactory.createContext("VOMS");
context.setAttribute(Context.USERPROXY,proxyPath);

context.setVectorAttribute("JobServiceAttributes", new String[]{"wms.RetryCount="+retryCount});
session.addContext(context);

but my session is shared between several applications that could use different myproxy.

Does exist a way to set MyProxy attribute directly on the JobDescription object?

Cheers,
Diego


Replies (2)

RE: MyProxy JDL attributes in JobDescription object - Added by Reynaud Sylvain about 13 years ago

Dear Diego,

The MyProxy attribute can not be set directly on the JobDescription object, because this object accepts only attributes that are standard and common to any job submission systems. The only way to pass non-standard attributes to adaptors is to set the JSAGA JobServiceAttributes/DataServiceAttributes on context objects.

Although a session can contain several contexts that belong to the same user, you have to be aware that session objects are not designed by the SAGA standard to be shared between different users :
  • If your different myproxy contexts belong to the same user, then there is a way to tell JSAGA wich one to select within the session, but this is specific to JSAGA and will not work with other SAGA implementations. Please note that setting MyProxy in JobServiceAttributes will not help JSAGA to select the right context for submitting the job, it is just used by WMS for proxy renewal.
  • If your different myproxy contexts belong to different users, then you should rather instanciate several sessions.
  • If you need different configurations of a JSAGA adaptor (in your case WMS adaptor with different MyProxy JDL attribute settings), then you need to instanciate several sessions anyway.

Cheers,
Sylvain

RE: MyProxy JDL attributes in JobDescription object - Added by Scardaci Diego about 13 years ago

Thanks for your answer Sylvain,
I'm going to set the myproxy attribute in the security context.

Cheers,
Diego

    (1-2/2)