Package org.objectweb.joram.shared.admin

Examples of org.objectweb.joram.shared.admin.CreateDestinationRequest


                                 byte type) throws ConnectException, AdminException {
    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG,
                 "Destination.doCreate(" + serverId + ',' + name + ',' + className + ',' + props + ',' + dest + ',' + type + ')');

    CreateDestinationRequest cdr = new CreateDestinationRequest(serverId, name, className, props, type);
    CreateDestinationReply reply = (CreateDestinationReply) getWrapper().doRequest(cdr);

    dest.agentId = reply.getId();
    dest.adminName = name;
View Full Code Here


   */
  public Destination createQueue(int serverId,
                                 String name,
                                 String className,
                                 Properties prop) throws ConnectException, AdminException {
    CreateDestinationRequest cdr = new CreateDestinationRequest(serverId, name, className, prop, Queue.QUEUE_TYPE);
    CreateDestinationReply reply = (CreateDestinationReply) doRequest(cdr);
   
    Queue queue = Queue.createQueue(reply.getId(), name);
   
    if (AdminModule.wrapper != this)
View Full Code Here

   */
  public Destination createTopic(int serverId,
                                 String name,
                                 String className,
                                 Properties prop) throws ConnectException, AdminException {
    CreateDestinationRequest cdr = new CreateDestinationRequest(serverId, name, className, prop, Topic.TOPIC_TYPE);
    CreateDestinationReply reply = (CreateDestinationReply) doRequest(cdr);
   
    Topic topic = Topic.createTopic(reply.getId(), name);

    if (AdminModule.wrapper != this)
View Full Code Here

   * @exception AdminException    If the request fails.
   *
   * @deprecated No longer needed, any queue can be used as DMQ.
   */
  public Queue createDeadMQueue(int serverId, String name) throws ConnectException, AdminException {
    CreateDestinationRequest cdr = new CreateDestinationRequest(serverId,
                                                                name,
                                                                "org.objectweb.joram.mom.dest.Queue",
                                                                null,
                                                                Queue.QUEUE_TYPE);
    CreateDestinationReply reply = (CreateDestinationReply) doRequest(cdr);
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void createQueue(String name, String queueClassName, int serverId) {
    CreateDestinationRequest request = new CreateDestinationRequest(serverId, name, queueClassName, null, DestinationConstants.QUEUE_TYPE);
    FwdAdminRequestNot createNot = new FwdAdminRequestNot(request, null, null);
    Channel.sendTo(getId(), createNot);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void createTopic(String name, String topicClassName, int serverId) {
    CreateDestinationRequest request = new CreateDestinationRequest(serverId, name, topicClassName, null,
        DestinationConstants.TOPIC_TYPE);
    FwdAdminRequestNot createNot = new FwdAdminRequestNot(request, null, null);
    Channel.sendTo(getId(), createNot);
  }
View Full Code Here

TOP

Related Classes of org.objectweb.joram.shared.admin.CreateDestinationRequest

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.