Package com.sun.messaging.jmq.jmsserver.service

Examples of com.sun.messaging.jmq.jmsserver.service.ConnectionUID.longValue()


  if (cxnId == null)  {
      return (null);
  }

  return (Long.toString(cxnId.longValue()));
    }

    public Boolean isCreatedByAdmin()  {
  boolean b = !(d.isAutoCreated() || d.isInternal() || d.isDMQ() || d.isAdmin());
View Full Code Here


  if (cxnId == null)  {
      return (null);
  }

  try  {
      oName = MQObjectName.createConnectionMonitor(Long.toString(cxnId.longValue()));
  } catch (Exception e)  {
      handleOperationException(DestinationOperations.GET_CONNECTION, e);
  }

  return (oName);
View Full Code Here

        }
        table.put("state", new Integer(ts.getState()));

  ConnectionUID cuid = ts.getConnectionUID();
  if (cuid != null)  {
      table.put("connectionid", new Long(cuid.longValue()));
  }

  TransactionBroker homeBroker = tl.getRemoteTransactionHomeBroker(id);
  String homeBrokerStr = "";
  if (homeBroker != null)  {
View Full Code Here

                      debugHash.put(String.valueOf(
                             (cuid == null ? 0 : cuid.longValue())),
                             (cxn == null ? "none" : cxn.getRemoteConnectionString())
                            + " ["
                            +  String.valueOf( (cxuid == null ? 0 :
                                 cxuid.longValue())) + "]");
                  }
              } else if (targetType == null) {
                  msg = "Please supply targetType if you are supplying a target ";
                  status = Status.ERROR;
              } else if (targetType.equals("t") || targetType.equals("q")) {
View Full Code Here

      ConnectionUID cxnId = oneDest.getConnectionUID();
      if (cxnId == null)  {
    continue;
      }

      if (!(cxnId.longValue() == connectionID))  {
    continue;
      }

      al.add(oneDest);
  }
View Full Code Here

                    createdTS = rs.getLong(4);
                } else if ( isLocal > 0 ) {
                    // Store additional info for temp destination
                    ConnectionUID cUID = dst.getConnectionUID();
                    if ( cUID != null ) {
                        connectionID = cUID.longValue();
                        connectedTS = createdTS;
                    }
                }

    // put destinations in new table
View Full Code Here

                if ( isLocal > 0 ) {
                    // Store additional info for temp destination
                    ConnectionUID cUID = dst.getConnectionUID();
                    if ( cUID != null ) {
                        connectedTS = rs.getLong(3);
                        connectionID = cUID.longValue();
                    }
                }
                sessionID = rs.getLong(4);

    // put destinations in new table
View Full Code Here

                long connectionID = -1;
                if ( destination.isTemporary() ) {
                    // Store additional info for temp destination
                    ConnectionUID cUID = destination.getConnectionUID();
                    if ( cUID != null ) {
                        connectionID = cUID.longValue();
                        if ( connectedTime <= 0 ) {
                            connectedTime = System.currentTimeMillis();
                        }
                    }
                }
View Full Code Here

            long connectionID = -1;
            if ( isLocal > 0 ) {
                // Store additional info for temp destination
                ConnectionUID cUID = destination.getConnectionUID();
                if ( cUID != null ) {
                    connectionID = cUID.longValue();
                }
            }

            pstmt = conn.prepareStatement( updateSQL );
            Util.setObject( pstmt, 1, destination );
View Full Code Here

  if (cxnId == null)  {
      return (null);
  }

  return(Long.toString(cxnId.longValue()));
    }

    private static String[] getDestinationNames(ConsumerUID cid)  {
        Consumer con = Consumer.getConsumer(cid);
  String[] ret = null;
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.