Package org.xmlBlaster.client

Examples of org.xmlBlaster.client.XmlBlasterAccess


   private I_XmlBlasterAccess con;

   private final void pubsub() {
      try {
         log.info("Connecting with protocol 'LOCAL' to xmlBlaster");
         con = new XmlBlasterAccess(glob);

         ConnectQos qos = new ConnectQos(this.glob); /* Client side object */
         qos.setUserId(this.loginName);
         qos.getSessionQos().setSessionTimeout(0L);
         con.connect(qos, new I_Callback() {
View Full Code Here


         if (!args[0].equals("-key")) {
            printUsage();
            System.exit(0);
         }

         I_XmlBlasterAccess xmlBlaster = new XmlBlasterAccess(args);
         new SimpleReader(xmlBlaster, args[1]);

         while (true) {
            try {
               Thread.sleep(10);
View Full Code Here

   private Global glob;

   private final void doLogin() {
      try {
         System.err.println("HelloWorldNative: Connecting with protocol 'LOCAL' to xmlBlaster\n");
         I_XmlBlasterAccess con = new XmlBlasterAccess(glob);

         ConnectQos qos = new ConnectQos(this.glob); /* Client side object */
         qos.setPtpAllowed(false);
         qos.setUserId("A-NATIVE-CLIENT-PLUGIN");
         qos.getSessionQos().setSessionTimeout(0L);
         con.connect(qos, null);    // Login to xmlBlaster as "A-NATIVE-CLIENT-PLUGIN"
         //Here we can publish or subscribe etc., see HelloWorld3.java how to do it
         con.publish(new MsgUnit(glob, "<key oid='TEST'/>", "Hi", "<qos/>"));
         //con.disconnect(null);
      }
      catch (Exception e) {
         System.err.println("HelloWorldNative: We have a problem: " + e.toString());
      }
View Full Code Here

         ConnectionStateEnum newState) {
      SessionName sessionName = connection.getSessionName();
      String foundEvent = "/event/connectionState";

      try {
         XmlBlasterAccess xb = (XmlBlasterAccess) connection;
         SessionName absoluteName = new SessionName(glob, xb.getContextNode().getSessionNameCompatible());
         String clname = absoluteName.getAbsoluteName();
         // connection.getServerNodeId().toString()+ "/" +
         // sessionName.getAbsoluteName();
         String summary = "Connection state has changed to " + newState.toString() + " for cluster client "
               + clname;
View Full Code Here

    */
   private void subscribeToDeadMessages() throws XmlBlasterException {
      try {
         final String secretCbSessionId = new Timestamp().toString();

         this.connection = new XmlBlasterAccess(this.global);

         ConnectQos connectQos = new ConnectQos(this.global, loginName, password);
         connectQos.setSecretCbSessionId(secretCbSessionId);
         // Constants.ONOVERFLOW_DISCARDOLDEST

View Full Code Here

TOP

Related Classes of org.xmlBlaster.client.XmlBlasterAccess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.