Hi ,I am using NuxeoClient class to connect with nuxeo server.Every thing works 
fine with single user at a point.

But when two threads tries to login at same time, at thread 1 it sucessfully 
login. at  the thread 2 & the rest "client is already connected" exception is 
thrown.

NuxeoClient Class follows singleton pattern.so Only a single instance of object 
 of type NuxeolCient will be created for both the threads.

so while one thread obtains the obj and conncets to the server , again a login 
cannot be done unless the first thread disconnects it.

NuxeoClient nc=NuxeoClient.getInstance();
nc.connect(host,port);
:
:
nc.disconnect();

What is the solution to this.? Kindly suggest a solution!
--
Posted by "karthikeyan_M" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3821#11705>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to