Hi all,
Please tell me the difference between gx_connect() and gx_attach()… it seems both of them take the exiting gxsession.
is there any other way to create a new session ?
Thanks
Arijit
Hi all,
Please tell me the difference between gx_connect() and gx_attach()… it seems both of them take the exiting gxsession.
is there any other way to create a new session ?
Thanks
Arijit
Arijit,
The gx_connect() should create a new session while gx_attach should connect to an existing sesssion which was deatacched previously. That’s the difference (at least that’s how it should behave)
As for creating a new session - one of the ways is using the Base Object - please see the ApplinX Development API for help (GXCreateSessionRequest)
Hope it helps!
Tanya
Thanks Tanya,
Still I have a doubt…
please look at the following stuff…
//============
public void f(){
System.out,println(" getGXSession() 1 “+getGXSession()) ;
gx_connect();
System.out,println(” getGXSession() 2 "+getGXSession()) ;
}
//============
In colsole both are returning the same getGXSession() value…
Regards
Arijit
Arijit, the only reason I can think about is that you already had a session running, hence the gx_connect behaved as gx_attach without any parameters being specified.
Tanya