Package nexj.core.integration

Examples of nexj.core.integration.Sender


            if (channel.getSender() == null)
            {
               throw new RPCException("err.rpc.notSender", new Object[]{channel.getName()});
            }

            Sender sender = (Sender)channel.getSender().getInstance(m_context);
            ObjectOutput output = sender.createOutput();

            ((MessageFormatter)message.getFormat().getFormatter().getInstance(m_context)).format((TransferObject)value, message, output);
            TransferObject tobj = new TransferObject(1);
            tobj.setValue(Sender.BODY, output.getObject());
            value = tobj;
View Full Code Here


         if (m_messageMap != null)
         {
            for (Lookup.Iterator itr = m_messageMap.iterator(); itr.hasNext();)
            {
               Channel channel = (Channel)itr.next();
               Sender sender = (Sender)channel.getSender().getInstance(m_context);
               List list = (List)itr.getValue();

               for (int i = 0, n = list.size(); i != n; ++i)
               {
                  Object msg = list.get(i);

                  if (msg instanceof Envelope)
                  {
                     list.set(i, ((Envelope)msg).getMessage());
                  }
               }

               if (s_logger.isDebugEnabled())
               {
                  s_logger.debug("Sending " + list.size() + " message(s) on channel \"" + channel.getName() + "\"");
               }

               sender.send(list);
            }
         }

         if (bEndTx || m_transaction == null)
         {
View Full Code Here

TOP

Related Classes of nexj.core.integration.Sender

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.