Package nexj.core.meta.integration

Examples of nexj.core.meta.integration.Channel


         }

         // Add the nexj elements.
         for (Iterator itr = m_metadata.getChannelIterator(); itr.hasNext();)
         {
            Channel channel = (Channel)itr.next();

            if (channel instanceof HTTPChannel && channel.isEnabled())
            {
               HTTPChannel http = (HTTPChannel)channel;

               if (http.isSecure() && http.getTrustedCertificate() != null)
               {
View Full Code Here


   {
      int nMaxPoolSize = 1;

      for (Iterator itr = m_metadata.getChannelIterator(); itr.hasNext();)
      {
         Channel channel = (Channel)itr.next();

         if (channel instanceof MessageQueue && channel.isEnabled())
         {
            nMaxPoolSize++;
         }
      }
View Full Code Here

      Set receivableUserSet = new HashHolder();
      Set sendableUserSet = new HashHolder();

      for (Iterator roleItr = m_metadata.getChannelIterator(); roleItr.hasNext(); )
      {
         Channel roleChannel = (Channel)roleItr.next();

         if (roleChannel.isEnabled() && roleChannel instanceof MessageQueue)
         {
            MessageQueue roleMQ = (MessageQueue)roleChannel;

            if (roleMQ.getUser() != null && roleMQ.getAlias().equals(mq.getAlias()))
            {
View Full Code Here

            if (sChannelName == null)
            {
               throw new IllegalArgumentException("Unspecified channel for SendReceive");
            }

            Channel channel = context.getMetadata().getChannel(sChannelName);

            context.getUnitOfWork().checkTransaction();

            if (channel.isSynchronous())
            {
               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

            if (sChannelName == null)
            {
               throw new IllegalArgumentException("Unspecified channel for Send");
            }

            Channel channel = context.getMetadata().getChannel(sChannelName);

            context.getUnitOfWork().addMessage(channel, format(tobj, (Sender)channel.getSender().getInstance(context), context));
            machine.returnValue(tobj, nArgCount);

            return false;
         }
      };
View Full Code Here

         // Now that support has been added for a real JMS engine in Teee, we must set JMSSender
         // to not use it as most unit tests don't expect it and rely on synchronous message delivery.
         for (Iterator itr = metadata.getChannelIterator(); itr.hasNext(); )
         {
            Channel channel = (Channel)itr.next();

            if (channel instanceof MessageQueue)
            {
               MessageQueue mq = (MessageQueue)channel;
View Full Code Here

TOP

Related Classes of nexj.core.meta.integration.Channel

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.