/** Builds a new session.
* @param remote_service The remote service we want to make REQUEST's of
*/
-function AppSession( username, password, remote_service ) {
+function AppSession( remote_service ) {
+ if (arguments.length == 3) {
+ // it used to be AppSession( username, password, remote_service )
+ remote_service = arguments[2];
+ }
/** Our logger object */
this.logger = new Logger();
/** Our session id */
this.session_id = new Date().getTime() + "" + random_num;
- this.auth = new userAuth( username, password );
+ //this.auth = new userAuth( username, password );
/** Our AppRequest queue */
this.request_queue = new Array();
this.queue_wait(0);
var msg;
- if( msg_type == oilsMessage.CONNECT ) {
- msg = new oilsMessage( msg_type, AppSession.PROTOCOL, this.auth );
- } else {
- msg = new oilsMessage( msg_type, AppSession.PROTOCOL );
- }
+ msg = new oilsMessage( msg_type, AppSession.PROTOCOL );
msg.setThreadTrace( thread_trace );
oilsMessage.prototype.baseClass = DomainObject.prototype.constructor;
/** Core XML object for message passing */
-function oilsMessage( type, protocol, user_auth ) {
+function oilsMessage( type, protocol ) {
if( !( type && protocol) ) {
type = oilsMessage.CONNECT;
this.add( new domainObjectAttr( "threadTrace", 0 ) );
this.add( new domainObjectAttr( "protocol", protocol ) );
- if( user_auth ) { this.add( user_auth ); }
+ // user_auth used to be a parameter for oilsMessage
+ //if( user_auth ) { this.add( user_auth ); }
}