Package nexj.core.rpc

Examples of nexj.core.rpc.RPCException


      {
         throw e;
      }
      catch (Exception e)
      {
         throw new RPCException("err.rpc.msg", e);
      }
      finally
      {
         if (con != null)
         {
View Full Code Here


      {
         throw e;
      }
      catch (Exception e)
      {
         throw new RPCException("err.rpc.msg", e);
      }
      finally
      {
         if (con != null)
         {
View Full Code Here

      {
         String sQueueName = m_channel.getName();

         if (!m_channel.isSendable())
         {
            throw new RPCException("err.rpc.notSender", new Object[]{m_channel.getName()});
         }

         if (s_logger.isDebugEnabled())
         {
            for (Iterator itr = col.iterator(); itr.hasNext();)
            {
               s_logger.debug("Sending a message on channel \"" + m_channel.getName() + "\"");
               s_logger.dump(itr.next());
            }
         }

         m_sentCounter.add(col.size());

         UnitOfWork oldUOW = m_invocationContext.getUnitOfWork();
         UnitOfWork uow = m_invocationContext.createUnitOfWork();

         try
         {
            Metadata metadata = m_invocationContext.getMetadata();
            Instance queue = (Instance)metadata.getMetaclass("SysQueue").invoke("getQueue", new Object[]{sQueueName});

            queue.invoke("send", new Object[]{col});
            uow.commit(true);
         }
         catch (Throwable t)
         {
            uow.rollback();
            ObjUtil.rethrow(t);
         }
         finally
         {
            m_invocationContext.setUnitOfWork(oldUOW);
         }
      }
      catch (IntegrationException e)
      {
         throw e;
      }
      catch (Exception e)
      {
         throw new RPCException("err.rpc.msg", e);
      }
   }
View Full Code Here

            {
               Component sender = channel.getSender();

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

               Responder responder = (Responder)sender.getInstance(context);

               tobj = parse(responder.respond(format(tobj, (Sender)responder, context)), context);
View Full Code Here

         {
            sqlWork.setInstanceValue(column, Binary.fromObject(request));
         }
         catch (IOException e)
         {
            throw new RPCException("err.rpc.requestSerialization", e);
         }
      }
   }
View Full Code Here

TOP

Related Classes of nexj.core.rpc.RPCException

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.