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

RE: [xmlblaster] Persistent msg caching without previous connection

Thanks Marcel that was it, I had totally forgotten the positive id in the
session name!

Warmest regards from sunny Western Australia -- Christian

-----Original Message-----
From: owner-xmlblaster at server.xmlBlaster.org
[mailto:owner-xmlblaster at server.xmlBlaster.org] On Behalf Of Marcel Ruff
Sent: Thursday, June 12, 2008 5:37 PM
To: xmlblaster at server.xmlBlaster.org
Subject: Re: [xmlblaster] Persistent msg caching without previous connection


this works out of the box.

Type (without a server):

  java -Dcom.sun.management.jmxremote javaclients.HelloWorldPublish 
-session.name pubisher/2 -persistent true -numPublish 200

and publish some messages.

Now start the server (probably set CheckPoint plugin to 'true' in 
xmlBlasterPlugins.xml to see message flow)
and the messages are published,


christian chevalley wrote:
> Hi Guys,
> Is it possible to force the caching of persistent messages on the 
> client side without having previously established a connection to a 
> server? I am trying to implement an asynchronous client gathering 
> events which are published to a central server. However, this client 
> might be started before the server (hence the caching), whenever the 
> server is started, the client then connect automatically to the server 
> (no problem here) and the cached messages should be then sent to the 
> server. The problem is that if the client has not already connected to 
> a server, it is not possible to publish messages (exception is: 
> errorCode=user.notConnected).  Have I missed something here, since the 
> persistent connection + persistent PublishQos work fine after an 
> initial connection ?
> Thanks in advance -- Christian

Marcel Ruff
Phone: +49 7551 309371