Examples of afterPropertiesSet()


Examples of org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer.afterPropertiesSet()

    incrementer.setDataSource(ds);
    incrementer.setIncrementerName("myseq");
    incrementer.setColumnName("seq");
    incrementer.setCacheSize(3);
    incrementer.setPaddingLength(3);
    incrementer.afterPropertiesSet();

    assertEquals(0, incrementer.nextIntValue());
    assertEquals(1, incrementer.nextLongValue());
    assertEquals("002", incrementer.nextStringValue());
    assertEquals(3, incrementer.nextIntValue());
View Full Code Here

Examples of org.springframework.jdbc.support.incrementer.MySQLMaxValueIncrementer.afterPropertiesSet()

    incrementer.setDataSource(ds);
    incrementer.setIncrementerName("myseq");
    incrementer.setColumnName("seq");
    incrementer.setCacheSize(2);
    incrementer.setPaddingLength(1);
    incrementer.afterPropertiesSet();

    assertEquals(1, incrementer.nextIntValue());
    assertEquals(2, incrementer.nextLongValue());
    assertEquals("3", incrementer.nextStringValue());
    assertEquals(4, incrementer.nextLongValue());
View Full Code Here

Examples of org.springframework.jdbc.support.incrementer.OracleSequenceMaxValueIncrementer.afterPropertiesSet()

    OracleSequenceMaxValueIncrementer incrementer = new OracleSequenceMaxValueIncrementer();
    incrementer.setDataSource(ds);
    incrementer.setIncrementerName("myseq");
    incrementer.setPaddingLength(2);
    incrementer.afterPropertiesSet();

    assertEquals(10, incrementer.nextLongValue());
    assertEquals("12", incrementer.nextStringValue());

    dsControl.verify();
View Full Code Here

Examples of org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer.afterPropertiesSet()

    PostgreSQLSequenceMaxValueIncrementer incrementer = new PostgreSQLSequenceMaxValueIncrementer();
    incrementer.setDataSource(ds);
    incrementer.setIncrementerName("myseq");
    incrementer.setPaddingLength(5);
    incrementer.afterPropertiesSet();

    assertEquals("00010", incrementer.nextStringValue());
    assertEquals(12, incrementer.nextIntValue());

    dsControl.verify();
View Full Code Here

Examples of org.springframework.jms.connection.JmsTransactionManager.afterPropertiesSet()

    /**
     * Factory method to create a default transaction manager if one is not specified
     */
    protected PlatformTransactionManager createTransactionManager() {
        JmsTransactionManager answer = new JmsTransactionManager(getConnectionFactory());
        answer.afterPropertiesSet();
        return answer;
    }

    @Override
    protected ConnectionFactory createConnectionFactory() {
View Full Code Here

Examples of org.springframework.jms.core.JmsTemplate.afterPropertiesSet()

        container.start();

        JmsTemplate jmsTemplate = new JmsTemplate();
        jmsTemplate.setConnectionFactory(new PooledConnectionFactory(connectionFactory));
        jmsTemplate.setPubSubDomain(true);
        jmsTemplate.afterPropertiesSet();
        jmsTemplate.convertAndSend("destinationTopic", "<hello>world</hello>");
        receiver.getMessageList().assertMessagesReceived(1);
        Thread.sleep(500);
    }
View Full Code Here

Examples of org.springframework.jms.listener.AbstractMessageListenerContainer.afterPropertiesSet()

    //-------------------------------------------------------------------------

    @Override
    protected void doStart() throws Exception {
        AbstractMessageListenerContainer container = getListenerContainer();
        container.afterPropertiesSet();
    }

    @Override
    protected void doStop() throws Exception {
        if (listenerContainer != null) {
View Full Code Here

Examples of org.springframework.jms.listener.DefaultMessageListenerContainer.afterPropertiesSet()

    profile.setExecutionManager(manager);
    manager.addResultCollector(profile.getJobId(), collector);
   
    // Initialize Adapter and Container
    adapter.setDelegate(collector);
    container.afterPropertiesSet();
  }

  /**
   * {@inheritDoc}
   * <p>
 
View Full Code Here

Examples of org.springframework.jms.remoting.JmsInvokerProxyFactoryBean.afterPropertiesSet()

    // Create Proxy Factory Instance
    JmsInvokerProxyFactoryBean proxyFactory = new JmsInvokerProxyFactoryBean();
    proxyFactory.setConnectionFactory(cf);
    proxyFactory.setQueueName(queueName);
    proxyFactory.setServiceInterface(serviceClass);
    proxyFactory.afterPropertiesSet();

    // Return Proxy
    return (T) proxyFactory.getObject();
  }
View Full Code Here

Examples of org.springframework.jms.remoting.JmsInvokerServiceExporter.afterPropertiesSet()

    // Export Service
    JmsInvokerServiceExporter exporter = new JmsInvokerServiceExporter();
    exporter.setServiceInterface(serviceClass);
    exporter.setService(service);
    exporter.afterPropertiesSet();

    // Set up MessageListenerContainer
    DefaultMessageListenerContainer container = new DefaultMessageListenerContainer();
    container.setConnectionFactory(cf);
    container.setDestination(queue);
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.