Package evolaris.framework.async.business.communication

Examples of evolaris.framework.async.business.communication.MessagingManager.sendSms()


        } else {
          SmsDestinationAddress receiver = new SmsDestinationAddress(msisdn);
          SortedSet<SmsDestinationAddress> receivers = new TreeSet<SmsDestinationAddress>();
          receivers.add(receiver);
          MessagingManager msgMgr = new MessagingManager(locale, session);
          msgMgr.sendSms(fromAddress, receivers, getCurrentGroup(req), smsSendForm.getMessage(), sendAt);
          Date date = new Date();
          String formattedDate = DateFormat.getTimeInstance(DateFormat.MEDIUM,locale).format(date);
          String generalInformation = getResources(req).getMessage(locale, "smssvc.asyncSendStarted", new Object[] {new Integer(receivers.size()), formattedDate});
          req.setAttribute("generalInformation", generalInformation);
          return mapping.findForward("sent");
View Full Code Here


      req.setAttribute("generalError",noUsersWithMsisdnsString);
      return mapping.findForward("notSent");
    }

    MessagingManager msgMgr = new MessagingManager(locale, session);
    msgMgr.sendSms(fromAddress, receivers, getCurrentGroup(req), msgForm.getMessage(), sendAt);
    Date date = new Date();
    String formattedDate = DateFormat.getTimeInstance(DateFormat.MEDIUM,locale).format(date);
    String generalInformation = getResources(req).getMessage(locale, "smssvc.asyncSendStarted", new Object[] {new Integer(receivers.size()), formattedDate});
    req.setAttribute("generalInformation", generalInformation);
    return mapping.findForward("sent");
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.