Package org.jboss.ejb3.annotation

Examples of org.jboss.ejb3.annotation.MessageProperties.delivery()


      ObjectMessage msg = session.createObjectMessage((Serializable) invocation);
      MethodInvocation mi = (MethodInvocation) invocation;
      MessageProperties props = (MessageProperties)methodMap.get(new Long(mi.getMethodHash()));
      if (props != null)
      {
         int del = (props.delivery() == DeliveryMode.PERSISTENT) ? javax.jms.DeliveryMode.PERSISTENT : javax.jms.DeliveryMode.NON_PERSISTENT;
         msgProducer.send(msg, del, props.priority(), props.timeToLive());
      }
      else
      {
         msgProducer.send(msg);
View Full Code Here


/* 269 */     ObjectMessage msg = this.session.createObjectMessage((Serializable)invocation);
/* 270 */     MethodInvocation mi = (MethodInvocation)invocation;
/* 271 */     MessageProperties props = (MessageProperties)this.methodMap.get(new Long(mi.getMethodHash()));
/* 272 */     if (props != null)
/*     */     {
/* 274 */       int del = props.delivery() == DeliveryMode.PERSISTENT ? 2 : 1;
/* 275 */       this.msgProducer.send(msg, del, props.priority(), props.timeToLive());
/*     */     }
/*     */     else
/*     */     {
/* 279 */       this.msgProducer.send(msg);
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.