Package org.vosao.business.mq.message

Examples of org.vosao.business.mq.message.ImportMessage


*
*/
public class ImportTaskSubscriber extends AbstractSubscriber {

  public void onMessage(Message message) {
    ImportMessage msg = (ImportMessage)message;
    String ext = FolderUtil.getFileExt(msg.getFilename());
    try {
      if (ext.equals("zip")) {
        doImport1(msg);
      }
      if (ext.equals("vz")) {
View Full Code Here


    ZipInputStream in = new ZipInputStream(inputData);
    try {
      getImportExportBusiness().importUnzip(in, msg.getCurrentFile());
    }
    catch (RequestTimeoutException e) {
      getBusiness().getMessageQueue().publish(new ImportMessage(
          msg.getFilename(), 0, e.getMessage(), 0));
    }
    in.close();
 
View Full Code Here

TOP

Related Classes of org.vosao.business.mq.message.ImportMessage

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.