REQUIREMENT interface.disconnect |
Type | NEW |
Priority | HIGH |
Status | CLOSED |
Topic | Disconnecting from xmlBlaster | ||||||||||||||||||||||||
Des cription |
The disconnect() method allows to logout from xmlBlaster. Method detail (CORBA IDL notation): typedef string XmlType; void disconnect(in string sessionId, in serverIdl::XmlType qos) raises (serverIdl::XmlBlasterException);
Quality of service (QoS) features:
|
||||||||||||||||||||||||
Example XML |
Here is an example QoS:
|
||||||||||||||||||||||||
Example XmlRpc |
This is the XmlRpc server interface variant: public String disconnect(final String sessionId, String qos_literal) throws XmlBlasterException |
||||||||||||||||||||||||
Example Java |
A typical Java client code: import org.xmlBlaster.client.qos.DisconnectQos; ... DisconnectQos qos = new DisconnectQos(glob); qos.clearSessions(true); con.disconnect(qos);
The java client library has a client side tail back queue which queues
messages if the connection to the server is unavailable.
If a client queue contains entries the default behavior
on disconnect is depending on the public session ID. If the client
uses a login name with a specified public session ID the queue entries
are kept so if the client reconnects later with the same public session ID
the messages in the queue are sent.
If the public session ID was arbitrary chosen by the xmlBlaster server
the queue entries are discarded. |
||||||||||||||||||||||||
Configure |
dispatch/connection/shutdownDispatcher true/false dispatch/connection/shutdownCbServer true/false dispatch/connection/leaveServer true/false
NOTE: Configuration parameters are specified on command line (-someValue 17) or in the
xmlBlaster.properties file (someValue=17). See requirement "util.property" for details. |
||||||||||||||||||||||||
See REQ | interface | ||||||||||||||||||||||||
See API | org.xmlBlaster.client.qos.DisconnectQos | ||||||||||||||||||||||||
See | http://www.xmlBlaster.org/xmlBlaster/src/java/org/xmlBlaster/protocol/corba/xmlBlaster.idl |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/interface.disconnect.xml