Examples of TransportManager


Examples of org.eclipse.persistence.sessions.coordination.TransportManager

                if (protocol.equalsIgnoreCase(CacheCoordinationProtocol.JGROUPS)) {
                    property = PersistenceUnitProperties.COORDINATION_PROTOCOL;                   
                    value = "org.eclipse.persistence.sessions.coordination.jgroups.JGroupsTransportManager";
                    // Avoid compile and runtime dependency.
                    Class transportClass = findClassForProperty(value, PersistenceUnitProperties.COORDINATION_PROTOCOL, loader);
                    TransportManager transport = (TransportManager)transportClass.newInstance();
                    rcm.setTransportManager(transport);                   
                    String config = getConfigPropertyAsStringLogDebug(PersistenceUnitProperties.COORDINATION_JGROUPS_CONFIG, m, this.session);
                    if (config != null) {
                        transport.setConfig(config);
                    }                   
                } else if (protocol.equalsIgnoreCase(CacheCoordinationProtocol.JMS) || protocol.equalsIgnoreCase(CacheCoordinationProtocol.JMSPublishing)) {
                    JMSPublishingTransportManager transport = null;
                    if (protocol.equalsIgnoreCase(CacheCoordinationProtocol.JMS)) {
                         transport = new JMSTopicTransportManager(rcm);
                    } else {
                        transport = new JMSPublishingTransportManager(rcm);
                    }
                    rcm.setTransportManager(transport);
                   
                    String host = getConfigPropertyAsStringLogDebug(PersistenceUnitProperties.COORDINATION_JMS_HOST, m, this.session);
                    if (host != null) {
                        transport.setTopicHostUrl(host);
                    }
                    String topic = getConfigPropertyAsStringLogDebug(PersistenceUnitProperties.COORDINATION_JMS_TOPIC, m, this.session);
                    if (topic != null) {
                        transport.setTopicName(topic);
                    }
                    String factory = getConfigPropertyAsStringLogDebug(PersistenceUnitProperties.COORDINATION_JMS_FACTORY, m, this.session);
                    if (factory != null) {
                        transport.setTopicConnectionFactoryName(factory);
                    }
                   
                    String reuse_publisher = getConfigPropertyAsStringLogDebug(PersistenceUnitProperties.COORDINATION_JMS_REUSE_PUBLISHER, m, this.session);
                    if (reuse_publisher != null) {
                        transport.setShouldReuseJMSTopicPublisher(reuse_publisher.equalsIgnoreCase("true"));
                    }
                   
                } else if (protocol.equalsIgnoreCase(CacheCoordinationProtocol.RMI) || protocol.equalsIgnoreCase(CacheCoordinationProtocol.RMIIIOP)) {
                    if (protocol.equalsIgnoreCase(CacheCoordinationProtocol.RMIIIOP)) {
                        ((RMITransportManager)rcm.getTransportManager()).setIsRMIOverIIOP(true);
View Full Code Here

Examples of org.jacorb.orb.giop.TransportManager

    public synchronized TransportManager getTransportManager()
    {
        if (transport_manager == null)
        {
            transport_manager = new TransportManager(this);
            try
            {
                transport_manager.configure(configuration);
            }
            catch( ConfigurationException e )
View Full Code Here

Examples of org.jacorb.orb.giop.TransportManager

            {
                throw new ConfigurationException("Listener: Couldn't init", e);
            }

            this.transport_manager =
                new TransportManager( (org.jacorb.orb.ORB) orb );
            this.transport_manager.configure(configuration);
        }
View Full Code Here

Examples of org.jacorb.orb.giop.TransportManager

            {
                throw new ConfigurationException("Listener: Couldn't init", e);
            }

            this.transport_manager =
                new TransportManager( (org.jacorb.orb.ORB) orb );
            this.transport_manager.configure(configuration);
        }
View Full Code Here

Examples of org.jacorb.orb.giop.TransportManager

    public synchronized TransportManager getTransportManager()
    {
        if (transport_manager == null)
        {
            transport_manager = new TransportManager(this);
            try
            {
                transport_manager.configure(configuration);
            }
            catch( ConfigurationException e )
View Full Code Here

Examples of org.jacorb.orb.giop.TransportManager

    public synchronized TransportManager getTransportManager()
    {
        if (transport_manager == null)
        {
            transport_manager = new TransportManager(this);
            try
            {
                transport_manager.configure(configuration);
            }
            catch( ConfigurationException e )
View Full Code Here

Examples of org.jacorb.orb.giop.TransportManager

    public synchronized TransportManager getTransportManager()
    {
        if (transport_manager == null)
        {
            transport_manager = new TransportManager(this);
            try
            {
                transport_manager.configure(configuration);
            }
            catch( ConfigurationException e )
View Full Code Here

Examples of org.jacorb.orb.giop.TransportManager

            catch (Exception e)
            {
                throw new ConfigurationException("Listener: Couldn't init", e);
            }

            this.transport_manager = new TransportManager();
            this.transport_manager.configure(configuration);
        }
View Full Code Here

Examples of org.jacorb.orb.giop.TransportManager

                {
                    throw new ConfigurationException ("SelectorManager initialization failed", e);
                }
            }

            transport_manager = new TransportManager();

            transport_manager.configure(configuration);

            giop_connection_manager = new GIOPConnectionManager();
View Full Code Here

Examples of org.jboss.wsf.spi.transport.TransportManager

      this.httpTransport = httpTransport;
   }

   public TransportManager createTransportManager(Protocol protocol)
   {
      TransportManager manager = null;

      switch(protocol)
      {
         case HTTP:
            manager = httpTransport;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.