Marcel Ruff
Mon, 11 Feb 2008 13:47:12 -0800
Hi, i have just tried (export CLASSPATH=$XMLBLASTER_HOME/lib/xmlBlaster.jar):java -Dcom.sun.management.jmxremote org.xmlBlaster.Main -cluster.node.id heron
opened the sniffer java javaclients.simplereader.SimpleReaderGui and hit 'Subscribe' And edited HelloWorld3.java with your code compiled it ~/xmlBlaster> build all and started java HelloWorld3 and all three messages "Test" arrive as expected. Could you please re-check? regards Marcel Champion Louis wrote:
Hi, I am a newbie to XMLBlaster and I am actually trying to figure how it's works. I have take a look to the different HelloWorld examples. The Java code : PublishQos publishQos = new PublishQos(global); publishQos.addClientProperty("Name", "Henri"); publishQos.addClientProperty("Age", 25); PublishKey publishKey = new PublishKey(global,"Test"); MsgUnit[] msgUnits = new MsgUnit[3];MsgUnit msgUnit1 = new MsgUnit(publishKey, "<Transaction id=\"1\" />",publishQos); msgUnits[0] = msgUnit1; MsgUnit msgUnit2 = new MsgUnit(publishKey, "<Transaction id=\"2\" />", publishQos); msgUnits[1] = msgUnit2; MsgUnit msgUnit3 = new MsgUnit(publishKey, "<Transaction id=\"3\" />", publishQos);msgUnits[2] = msgUnit3;xmlBlasterAccess.publishArr(msgUnits); When I use the graphical tools to execute the XPATH query //key, I only get the message with the content of the Transaction with the id 3. And when I look into my postgresql database I have only one entry into the table. Why one entry when I have try to publish 3 messages ? Thanks in advance for any explanation, Louis
-- Marcel Ruff http://www.xmlBlaster.org http://watchee.net Phone: +49 7551 309371