Examples of SleeConnection


Examples of javax.slee.connection.SleeConnection

      InitialContext ic = new InitialContext();

      SleeConnectionFactory factory = (SleeConnectionFactory) ic
          .lookup("java:/MobicentsConnectionFactory");

      SleeConnection conn1 = null;
      conn1 = factory.getConnection();

      ExternalActivityHandle handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.ORDER_SHIPPED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, handle, null);
      conn1.close();

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of javax.slee.connection.SleeConnection

      InitialContext ic = new InitialContext();

      SleeConnectionFactory factory = (SleeConnectionFactory) ic
          .lookup("java:/MobicentsConnectionFactory");

      SleeConnection conn1 = null;
      conn1 = factory.getConnection();

      //ExternalActivityHandle handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.ORDER_REJECTED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, adminExternalActivityHandle, null);
      conn1.close();

    } catch (Exception e) {
      e.printStackTrace();
    }
  } 
View Full Code Here

Examples of javax.slee.connection.SleeConnection

      InitialContext ic = new InitialContext();

      SleeConnectionFactory factory = (SleeConnectionFactory) ic
          .lookup("java:/MobicentsConnectionFactory");

      SleeConnection conn1 = null;
      conn1 = factory.getConnection();

      handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.BEFORE_ORDER_PROCESSED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, handle, null);
      conn1.close();

    } catch (Exception e) {
      e.printStackTrace();
    }       
    }    
View Full Code Here

Examples of javax.slee.connection.SleeConnection

      InitialContext ic = new InitialContext();

      SleeConnectionFactory factory = (SleeConnectionFactory) ic
          .lookup("java:/MobicentsConnectionFactory");

      SleeConnection conn1 = null;
      conn1 = factory.getConnection();

      ExternalActivityHandle handle = conn1.createActivityHandle();

      EventTypeID requestType = conn1.getEventTypeID(
          "org.mobicents.slee.service.dvddemo.ORDER_PROCESSED",
          "org.mobicents", "1.0");
      CustomEvent customEvent = new CustomEvent(orderId, amount,
          customerfullname, cutomerphone);

      conn1.fireEvent(customEvent, requestType, handle, null);
      conn1.close();

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.