Package org.objectweb.joram.client.jms.admin

Examples of org.objectweb.joram.client.jms.admin.User


    Topic topic = (Topic) getHermes().getSession().createTopic(dConfig.getName());
    int fin =0;
    String[] ids = topic.getSubscriberIds();
    for(int i=0;i< ids.length && fin == 0 ;i++){
        if(dConfig.getShortName() !=null && (dConfig.getShortName()).equals(ids[i])){
      User u = new User("user"+i,ids[i]);
      final Subscription[] subs = u.getSubscriptions() ;
      for (int j = 0 ; j < subs.length && fin == 0 ; j++) {
          if( (subs[j].getName()).equals(dConfig.getClientID()) ){
        for (Iterator iter = messageIds.iterator(); iter.hasNext();) {
            u.deleteMessage(dConfig.getClientID(),(String)iter.next());
        }
        fin=1;
          }
      }
        }else{
View Full Code Here

TOP

Related Classes of org.objectweb.joram.client.jms.admin.User

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.