29 Temmuz 2020 Çarşamba

ActiveMQ PooledConnectionFactory Sınıfı

Örnek
Şöyle yaparız
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory();
cf.setBrokerURL("tcp://localhost:61616");
cf.setUser("artemis");
cf.setPassword("artemis");

//Create connection pool using connection factory
PooledConnectionFactory pooledConnectionFactory = new PooledConnectionFactory();
pooledConnectionFactory.setMaxConnections(2);
pooledConnectionFactory.setConnectionFactory(cf);

Hiç yorum yok:

Yorum Gönder