REQUIREMENT engine.qos.publish.destination.offline |
Type | NEW |
Priority | LOW |
Status | CLOSED |
Topic | If the receiver of a PtP message is offline or has no callback the behavior is configurable | |||||||||||||||
Des cription |
If you send a message to a named destination, using the qos <destination> tag, and there is no callback for this receiver, or the receiver is not logged in and the forceQueuing qos attribute is not set in this message, you get an XmlBlasterException.
Having forceQueuing=true the behavior is as follows.
In a future version of xmlBlaster we should provide a plugin framework to control the delivery behavior of PtP messages in any way. A default plugin should support a load balancing delivery of PtP messages to exactly one receiver. |
|||||||||||||||
Example Java |
// Construct a message and send it to 'Michelle', she is currently not logged in String xmlKey = "<key oid='' contentMime='text/plain'/>"; String qos = "<qos>" + " <destination forceQueuing='false'>" + " client/Michelle/2" + " </destination>" + "</qos>"; content = "Hi Michelle"; MsgUnit msgUnit = new MsgUnit(glob, xmlKey, content.getBytes(), qos); try { xmlBlaster.publish(msgUnit); } catch(XmlBlasterException e) { System.out.println("Exception is correct, Michelle is not logged in"); } |
|||||||||||||||
Configure |
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 | engine.qos.publish.destination.ForceQueuing | |||||||||||||||
See REQ | engine.qos.publish.destination.PtP | |||||||||||||||
See REQ | cluster.PtP | |||||||||||||||
See REQ | interface.publish | |||||||||||||||
See API | org.xmlBlaster.client.qos.PublishQos | |||||||||||||||
See API | org.xmlBlaster.client.key.PublishKey | |||||||||||||||
See TEST | org.xmlBlaster.test.qos.TestPtDQueue |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/engine.qos.publish.destination.offline.xml