Package nexj.core.meta.integration.channel.queueing

Examples of nexj.core.meta.integration.channel.queueing.ObjectQueue


    *           delivered.
    */
   protected void receive(final Binary id, final String sQueueName, final String sDispatcherId)
   {
      Channel candidateChannel = m_metadata.findChannel(sQueueName);
      final ObjectQueue channel = (candidateChannel instanceof ObjectQueue) ? (ObjectQueue)candidateChannel : null;
      final OID oid = OID.fromBinary(id);

      run(new ContextRunnable()
      {
         public void run(InvocationContext context) throws Throwable
         {
            Instance msg = readMessage(oid, Pair.append(RECEIVE_ATTRIBUTES, m_messageLoadAttributes), context);

            if (msg == null)
            {
               throw new UncheckedException("err.queueing.receive", new Object[]
               {
                  oid
               });
            }

            Metaclass dispatcherClass = m_metadata.getMetaclass("SysObjectQueueDispatcher");
            Channel candidateChannel = m_metadata.findChannel(sQueueName);
            final ObjectQueue channel = (candidateChannel instanceof ObjectQueue) ? (ObjectQueue)candidateChannel : null;

            try
            {
               receiveRun(context, sQueueName, channel, msg, dispatcherClass, sDispatcherId);
            }
View Full Code Here

TOP

Related Classes of nexj.core.meta.integration.channel.queueing.ObjectQueue

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.