Package com.sun.messaging.jmq.jmsserver.core

Examples of com.sun.messaging.jmq.jmsserver.core.ConsumerUID.longValue()


                conn = DBManager.getDBManager().getConnection( true );
                myConn = true;
            }

            pstmt = conn.prepareStatement( selectExistByIDSQL );
            pstmt.setLong( 1, consumerUID.longValue() );
            rs = pstmt.executeQuery();
            if ( rs.next() ) {
                found = true;
            }
        } catch ( Exception e ) {
View Full Code Here


        Hashtable hash = new Hashtable();

        // pass back a generated ID
        ConsumerUID uid = new ConsumerUID();
        hash.put("JMQConsumerID", new Long(uid.longValue()));

        Hashtable props = null;
        byte[] body = null;

        String destination = null;
View Full Code Here

  Iterator iter = consumerIDs.iterator();

  int i = 0;
  while (iter.hasNext()) {
      ConsumerUID cid = (ConsumerUID)iter.next();
      long conID = cid.longValue();
            String id;

      try  {
                id = Long.toString(conID);
View Full Code Here

        Integer oldid = (Integer)props.get("JMQConsumerID");

       
        if (oldid != null) {
            ConsumerUID newcid = new ConsumerUID();
            Long longcid = new Long(newcid.longValue());
            props.put("JMQConsumerID", longcid);
            consumer_to_deliver.put(longcid, oldid);
        }
          
    }
View Full Code Here

  uid = new ConsumerUID();
  queueBrowseList.put(uid, new QueueBrowserInfo(dest, selector));

  props.put("JMQStatus", JMSServiceReply.Status.OK);
  props.put("JMQConsumerID", uid.longValue());
  reply = new JMSServiceReply(props, null);

  return (reply);
    }
View Full Code Here

      props.put("JMQStatus", JMSServiceReply.Status.NOT_FOUND);
      throw new JMSServiceException(errStr, props);
  }

  props.put("JMQStatus", JMSServiceReply.Status.OK);
  props.put("JMQConsumerID", uid.longValue());
  reply = new JMSServiceReply(props, null);

  return (reply);
    }
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.