[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] getting new messages like a subscribtion



Marcel Ruff wrote:

Hi Cyrille,

even if you don't start up a client side callback server you need
to configure it in the ConnectQos so that the server establishes
a callback queue. By setting retries='-1' the server never gives
up to reach the client.
I have tried it with the following script:

=======================================================
<!--
  java javaclients.script.XmlScript -requestFile loginLogoutSubscribe.xml
-->
<xmlBlaster>

<connect>
<qos>
<securityService type="htpasswd" version="1.0"><![CDATA[
<user>tester</user>
<passwd>tester</passwd>
]]></securityService>
<persistent>true</persistent>
<session name='tester/1' />
<queue relating='connection'>
<address type="XMLRPC" pingInterval='1000' retries='-1' delay='2000' />
</queue>
<!-- DO THIS: -->
<queue relating='callback' maxEntries='5' maxEntriesCache='2'>
<callback type="XMLRPC" pingInterval='1000' retries='-1' delay='1000' />
</queue>
</qos>
</connect>


<subscribe><key oid="__sys__Login"></key><qos><persistent>false</persistent></qos></subscribe>

 <wait delay="600000000" />
</xmlBlaster>
=======================================================

Probably you could additionally set

<callback ... dispatcherActive='false' ...

like this the callback framework is not needlessly trying to find the client.

Marcel,

I've tried you tips, now the connect and subscribe works.
But, on the server side there are messages :

[WARN Thread-6 DispatchConnection-callback:/node/xmlBlaster_192_168_0_151_3412/cl
ient/aaa/3] Connection transition UNDEF -> POLLING: xmlBlaster://192.168.0.151:3412 is unaccessible,
we poll for it every 1000 msec: errorCode=communication.noConnection message=#exported init() faile
d : java.net.MalformedURLException: no protocol:
[INFO Thread-6 Authenticate-/node/xmlBlaster_192_168_0_151_3412] Successful login
for client /node/xmlBlaster_192_168_0_151_3412/client/aaa/3, session expires after [ 1 h 0 millis ]
, 1 of 10 sessions are in use.
[WARN XmlBlaster.PingTimer DispatchConnection-callback:/node/xmlBlaster_192_168_0
_151_3412/client/aaa/3] No connection established, xmlBlaster://192.168.0.151:3412 still seems to be
down after 301 connection retries.
[WARN XmlBlaster.PingTimer DispatchConnection-callback:/node/xmlBlaster_192_168_0
_151_3412/client/aaa/3] No connection established, xmlBlaster://192.168.0.151:3412 still seems to be
down after 241 connection retries.



Here is my Connect Qos :

<qos>
<session name="'+username+'/3" timeout="3600000" maxSessions="10" clearSessions="false" />
<queue relating="connection">
<address type="XMLRPC" pingInterval="5000" retries="-1" delay="1000" />
</queue>
<queue relating="callback" maxEntries="5" maxEntriesCache="2">
<callback type="XMLRPC" pingInterval="5000" retries="-1" dispatcherActive="false" delay="1000"/>
</queue>
</qos>


Cyrille