Package org.jboss.jms.server.endpoint

Examples of org.jboss.jms.server.endpoint.ServerConnectionEndpoint


  
   protected void checkConsumerAccess(Invocation invocation) throws Throwable
   {
      ConsumerAdvised del = (ConsumerAdvised)invocation.getTargetObject();
      ServerConsumerEndpoint cons = (ServerConsumerEndpoint)del.getEndpoint();
      ServerConnectionEndpoint conn = cons.getSessionEndpoint().getConnectionEndpoint();
      JBossDestination dest = cons.getDestination();
     
      check(dest, CheckType.READ, conn);
   }
View Full Code Here


/* 1076 */     List endpoints = this.connectionManager.getActiveConnections();
/*      */
/* 1078 */     out.println("<table><tr><td>ID</td><td>Host</td><td>User</td><td>#Sessions</td></tr>");
/* 1079 */     for (Iterator iter = endpoints.iterator(); iter.hasNext(); )
/*      */     {
/* 1081 */       ServerConnectionEndpoint endpoint = (ServerConnectionEndpoint)iter.next();
/*      */
/* 1083 */       out.println("<tr>");
/* 1084 */       out.println("<td>" + endpoint.toString() + "</td>");
/* 1085 */       out.println("<td>" + endpoint.getCallbackHandler().getCallbackClient().getInvoker().getLocator().getHost() + "</td>");
/* 1086 */       out.println("<td>" + endpoint.getUsername() + "</td>");
/* 1087 */       out.println("<td>" + endpoint.getSessions().size() + "</td>");
/* 1088 */       out.println("</tr>");
/*      */     }
/*      */
/* 1091 */     out.println("</table>");
/*      */
View Full Code Here

/* 148 */     Message m = (Message)mi.getArguments()[0];
/* 149 */     Destination dest = m.getJMSDestination();
/*     */
/* 151 */     SessionAdvised del = (SessionAdvised)invocation.getTargetObject();
/* 152 */     ServerSessionEndpoint se = (ServerSessionEndpoint)del.getEndpoint();
/* 153 */     ServerConnectionEndpoint ce = se.getConnectionEndpoint();
/*     */
/* 155 */     check(dest, CheckType.WRITE, ce);
/*     */
/* 157 */     return invocation.invokeNext();
/*     */   }
View Full Code Here

/*     */
/*     */   public Object handleSendTransaction(Invocation invocation)
/*     */     throws Throwable
/*     */   {
/* 164 */     ConnectionAdvised del = (ConnectionAdvised)invocation.getTargetObject();
/* 165 */     ServerConnectionEndpoint ce = (ServerConnectionEndpoint)del.getEndpoint();
/*     */
/* 167 */     MethodInvocation mi = (MethodInvocation)invocation;
/*     */
/* 169 */     TransactionRequest t = (TransactionRequest)mi.getArguments()[0];
/*     */
View Full Code Here

/*     */   protected void checkConsumerAccess(Invocation invocation)
/*     */     throws Throwable
/*     */   {
/* 202 */     ConsumerAdvised del = (ConsumerAdvised)invocation.getTargetObject();
/* 203 */     ServerConsumerEndpoint cons = (ServerConsumerEndpoint)del.getEndpoint();
/* 204 */     ServerConnectionEndpoint conn = cons.getSessionEndpoint().getConnectionEndpoint();
/* 205 */     JBossDestination dest = cons.getDestination();
/*     */
/* 207 */     check(dest, CheckType.READ, conn);
/*     */   }
View Full Code Here

      List endpoints = connectionManager.getActiveConnections();

      out.println("<table><tr><td>ID</td><td>Host</td><td>User</td><td>#Sessions</td></tr>");
      for (Iterator iter = endpoints.iterator(); iter.hasNext();)
      {
         ServerConnectionEndpoint endpoint = (ServerConnectionEndpoint) iter.next();

         out.println("<tr>");
         out.println("<td>" + endpoint.toString() + "</td>");
         out.println("<td>" + endpoint.getCallbackHandler().getCallbackClient().getInvoker().getLocator().getHost() + "</td>");
         out.println("<td>" + endpoint.getUsername() + "</td>");
         out.println("<td>" + endpoint.getSessions().size() + "</td>");
         out.println("</tr>");
      }

      out.println("</table>");
View Full Code Here

TOP

Related Classes of org.jboss.jms.server.endpoint.ServerConnectionEndpoint

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.