Package nexj.core.meta.j2ee

Examples of nexj.core.meta.j2ee.J2EEProperty


                  {
                     ref.setResourceAdapterName(SysUtil.NAMESPACE + "-file.rar");
                     ref.setTxMode(J2EEResourceRef.TX_XA);
                     ref.setMaxConnections(fragment.getMaxPoolSize());
                    
                     ref.addProperty(new J2EEProperty("persistenceConnection", true));
                     ref.addProperty(new J2EEProperty("inputConnection", false));
                     ref.addProperty(new J2EEProperty("outgoingDirectory", fragment.getDataDirectory()));
                     ref.addProperty(new J2EEProperty("outgoingTempDirectory", fragment.getTemporaryDirectory()));
                    
                     ref.addProperty(new J2EEProperty("maxNameSplits", fragment.getMaxNameSplits()));
                     ref.addProperty(new J2EEProperty("nameSplitSize", fragment.getNameSplitSize()));
                    
                     ref.addProperty(new J2EEProperty("journalDirectory", fragment.getJournalPath()));
                  }
                 
                  m_exporter.exportJ2EEResourceRef(ref, nPart, sNamespace, nContainer, nContext);
               }
            }
View Full Code Here


    * @param nContainer The container.
    * @param list The destination list, J2EEProperty[].
    */
   protected void addActivationProperties(Channel channel, List list)
   {
      list.add(new J2EEProperty("channel", channel.getName()));
   }
View Full Code Here

   {
      super.addActivationProperties(channel, list);

      ObjectDispatcherQueue mc = (ObjectDispatcherQueue)channel;

      list.add(new J2EEProperty("port", mc.getPort()));
      list.add(new J2EEProperty("maxPoolSize", mc.getMaxReceivers()));
   }
View Full Code Here

            SysUtil.PACKAGE + ".core.rpc.queueing.ObjectQueueConnectionFactory");

         ref.setResourceAdapterName(getResourceAdapterName(mc));
         ref.setTxMode(J2EEResourceRef.TX_NONE);
         ref.setShareable(false);
         ref.addProperty(new J2EEProperty("port", mc.getPort()));
         ref.setMaxConnections(mc.getMaxSenders());

         list.add(ref);
      }
   }
View Full Code Here

      else if (JMSUtil.isPlatformAdapter(sConnFactory))
      {
        return;
      }

      ref.addProperty(new J2EEProperty("JMSConnectionFactoryName", sConnFactory));

      String sConnFactoryProps = getConnectionFactoryProperties(mq, nContainer);

      if (sConnFactoryProps != null)
      {
         ref.addProperty(new J2EEProperty("JMSConnectionFactoryProperties", sConnFactoryProps));
      }

      ref.addProperty(new J2EEProperty("transacted", mq.isTransactional()));

      list.add(ref);
   }
View Full Code Here

   {
      super.addActivationProperties(channel, list);

      UDPChannel udp = (UDPChannel)channel;

      list.add(new J2EEProperty("host", udp.getLocalHost()));
      list.add(new J2EEProperty("port", udp.getLocalPort()));
      list.add(new J2EEProperty("group", udp.getGroup()));
      list.add(new J2EEProperty("maxPacketSize", udp.getMaxPacketSize()));
      list.add(new J2EEProperty("maxPoolSize", udp.getMaxReceivers()));
   }
View Full Code Here

      else if (JMSUtil.isPlatformAdapter(mq.getConnectionFactory()))
      {
        return;
      }

      ref.addProperty(new J2EEProperty("JMSDestinationName", sDestination));

      String sDestinationProps = getDestinationProperties(mq, nContainer);

      if (sDestinationProps != null)
      {
         ref.addProperty(new J2EEProperty("JMSDestinationProperties", sDestinationProps));
      }

      list.add(ref);

   }
View Full Code Here

      MessageQueue mq = (MessageQueue)channel;

      switch (mq.getAckMode())
      {
         case MessageQueue.ACK_AUTO:
            list.add(new J2EEProperty("acknowledgeMode", "Auto-acknowledge"));
            break;

         case MessageQueue.ACK_LAZY:
            list.add(new J2EEProperty("acknowledgeMode", "Dups-ok-acknowledge"));
            break;
      }

      list.add(new J2EEProperty("destinationType", getDestinationResourceEnvRef(mq, J2EEUtil.NONE).getClassName()));

      if (mq.isBroadcast())
      {
         if (mq.getSubscription() != null)
         {
            list.add(new J2EEProperty("subscriptionDurability", "Durable"));
            list.add(new J2EEProperty("subscriptionName", mq.getSubscription()));
         }
         else
         {
            list.add(new J2EEProperty("subscriptionDurability", "NonDurable"));
         }

         list.add(new J2EEProperty("clientId", mq.getClientId()));
      }

      list.add(new J2EEProperty("messageSelector", mq.getSelector()));

      if (mq.isTransactional())
      {
         list.add(new J2EEProperty("transactionTimeout", mq.getTransactionTimeout()));
      }
   }
View Full Code Here

    */
   protected void addPlatformActivationProperties(Channel channel, int nContainer, List list)
   {
      MessageQueue mq = (MessageQueue)channel;

      list.add(new J2EEProperty("connectionFactory", getConnectionFactoryResourceRefMDB(mq, nContainer).getJNDIName()));

      String sConnFactoryProps = getConnectionFactoryProperties(mq, nContainer);

      if (sConnFactoryProps != null)
      {
         list.add(new J2EEProperty("connectionFactoryProperties", sConnFactoryProps));
      }

      list.add(new J2EEProperty("destination", getDestinationResourceEnvRefMDB(mq, nContainer).getJNDIName()));

      String sDestinationProps = getDestinationProperties(mq, nContainer);

      if (sDestinationProps != null)
      {
         list.add(new J2EEProperty("destinationProperties", sDestinationProps));
      }

      list.add(new J2EEProperty("user", mq.getUser()));
      list.add(new J2EEProperty("password", mq.getPassword()));

      Metadata metadata = channel.getType().getMetadata();

      list.add(new J2EEProperty("maxPoolSize", (SysUtil.ENTERPRISE
         && metadata.findComponent("System.ClusterManager") != null && metadata.isDynamicReceiverEnabled()) ? 0
            : mq.getMaxReceivers()));
   }
View Full Code Here

  {
     super.addActivationProperties(channel, list);

      TCPChannel tcp = (TCPChannel)channel;

      list.add(new J2EEProperty("localHost", tcp.getLocalHost()));
      list.add(new J2EEProperty("localPort", tcp.getLocalPort()));
      list.add(new J2EEProperty("backlog", tcp.getBacklog()));
      list.add(new J2EEProperty("readTimeout", tcp.getReadTimeout()));
      list.add(new J2EEProperty("idleTimeout", tcp.getIdleTimeout()));
      list.add(new J2EEProperty("keepAlive", tcp.isKeepAlive()));
      list.add(new J2EEProperty("noDelay", tcp.isNoDelay()));
      list.add(new J2EEProperty("maxPoolSize", tcp.getMaxReceivers()));
      list.add(new J2EEProperty("senderBufferSize", tcp.getSenderBufferSize()));
      list.add(new J2EEProperty("receiverBufferSize", tcp.getReceiverBufferSize()));
      list.add(new J2EEProperty("secure", tcp.isSecure()));

      if (tcp.isSecure())
      {
         list.add(new J2EEProperty("authentication", tcp.getClientAuthMode()));
         list.add(new J2EEProperty("password", tcp.getPassword()));
         list.add(new J2EEProperty("certificate", CertificateUtil.formatKeyStore(tcp.getCertificateStore(), tcp.getPassword())));
         list.add(new J2EEProperty("trust", CertificateUtil.formatCertificate(tcp.getTrustedCertificate())));
      }
  }
View Full Code Here

TOP

Related Classes of nexj.core.meta.j2ee.J2EEProperty

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.