xmlBlaster 2.2.0 API

javaclients
Class HelloWorldGet

java.lang.Object
  extended by javaclients.HelloWorldGet

public class HelloWorldGet
extends java.lang.Object

This client connects to xmlBlaster and subscribes to messages.

This is a nice client to experiment and play with xmlBlaster as there are many command line options to specify the type and amount of messages published.

Try using 'java javaclients.HelloWorldPublish' in another window to publish some messages. Further you can type 'd' in the window running xmlBlaster to get a server dump.

Invoke (after starting the xmlBlaster server):
 java javaclients.HelloWorldGet -xpath //key  -historyNum 2

 java javaclients.HelloWorldGet -interactive false -oid Hello  -historyNum -1

 java javaclients.HelloWorldGet -session.name joeGet/5 -passwd secret

 java javaclients.HelloWorldGet -xpath //key -filter.type GnuRegexFilter -filter.query "^__sys__jdbc.*"

 java javaclients.HelloWorldGet -xpath //key -filter.type XPathFilter -filter.query "//tomato"

 java javaclients.HelloWorldGet -xpath //key -filter.type ContentLenFilter -filter.query "10"
 

If disconnect=false we don't logout at the end.

See Also:
javaclients.HelloWorldPublish, javaclients.HelloWorldSubscribe, xmlBlaster get interface

Field Summary
private static java.util.logging.Logger log
           
 
Constructor Summary
HelloWorldGet(Global glob)
           
 
Method Summary
static void main(java.lang.String[] args)
          Try
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static java.util.logging.Logger log
Constructor Detail

HelloWorldGet

public HelloWorldGet(Global glob)
Method Detail

main

public static void main(java.lang.String[] args)
Try
   java javaclients.HelloWorldGet -help
 
for usage help


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.