Package org.jboss.jms.delegate

Examples of org.jboss.jms.delegate.ProducerDelegate


/*     */   }
/*     */
/*     */   public Object handleCreateProducerDelegate(Invocation invocation)
/*     */     throws Throwable
/*     */   {
/* 178 */     ProducerDelegate producerDelegate = new ClientProducerDelegate();
/* 179 */     DelegateSupport delegate = (DelegateSupport)producerDelegate;
/*     */
/* 181 */     SessionState sessionState = (SessionState)getState(invocation);
/*     */
/* 183 */     MethodInvocation mi = (MethodInvocation)invocation;
/* 184 */     Destination dest = (Destination)mi.getArguments()[0];
/*     */
/* 186 */     ProducerState producerState = new ProducerState(sessionState, producerDelegate, dest);
/*     */
/* 188 */     delegate.setState(producerState);
/*     */
/* 193 */     producerDelegate.getDeliveryMode();
/*     */
/* 195 */     return producerDelegate;
/*     */   }
View Full Code Here


/* 204 */     if ((d != null) && (!(d instanceof JBossDestination)))
/*     */     {
/* 206 */       throw new InvalidDestinationException("Not a JBossDestination:" + d);
/*     */     }
/*     */
/* 209 */     ProducerDelegate producerDelegate = this.delegate.createProducerDelegate((JBossDestination)d);
/* 210 */     return new JBossMessageProducer(producerDelegate);
/*     */   }
View Full Code Here

      if (d != null && !(d instanceof JBossDestination))
      {
         throw new InvalidDestinationException("Not a JBossDestination:" + d);
      }
          
      ProducerDelegate producerDelegate = delegate.createProducerDelegate((JBossDestination)d);
      return new JBossMessageProducer(producerDelegate);
   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.delegate.ProducerDelegate

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.