How to authenticate to the JAMS server using .NET

Follow

Below is a code snippet that demonstrates an example of how to authenticate to the JAMS server.

//
// Connect to the JAMS Server
//
Server s = Server.GetServer("localhost");
s.UserName = @"MVP\MyAccount";
s.Password = "passwordHere";

//
// Submit a Job
//
Submit.Info si;
Submit.Load(out si,@"\SleepJob",s, Submit.Type.Job);
si.Submit();

 

 

Have more questions? Submit a request

Comments