wmJNIc.c
connectCcUserPass


jint
connectCcUserPass(
      WmContext *con,
      const char *host,
      const char *user,
      const char *pass)
Connects the Context or TContext to an Integration Server and establishes session state on the server. If supplied, it also sets user credentials.
Parameters:
WmContext *con - Client Context(Either WM_SYNC_CONTEXT or WM_TRAN_CONTEXT).
const char *host - Server endpoint in the form:host:port.
const char *user - User to connect as
const char *pass - User's password.
Returns:
jint - Return 1 if success and 0 otherwise.