Title / Description
Code // Producer will look like // cacheSessionSize is fixed for better performance // connectionFactory will be vendor specific private Component produceJmsComponent(String nbConsumers, ConnectionFactory connectionFactory) { CachingConnectionFactory cachingConnectionFactory = new CachingConnectionFactory(connectionFactory); cachingConnectionFactory.setSessionCacheSize(Integer.parseInt(nbConsumers)); return JmsComponent.jmsComponent(cachingConnectionFactory); }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code