ATS-467 : T-Engine logs fill up with ActiveMQ errors when used in ACS Community edition

- instantiate JMS beans only when 'activemq.url' property is set
- fix integration tests
This commit is contained in:
CezarLeahu
2019-07-05 11:39:39 +03:00
committed by GitHub
parent 052e4adc12
commit be48c8e7a9
7 changed files with 13 additions and 10 deletions

View File

@@ -38,6 +38,7 @@ import org.alfresco.transformer.messaging.TransformReplySender;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.http.HttpStatus;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.jms.support.converter.MessageConversionException;
@@ -55,6 +56,7 @@ import java.util.Optional;
* created on 18/12/2018
*/
@Component
@ConditionalOnProperty(name="activemq.url")
public class QueueTransformService
{
private static final Logger logger = LoggerFactory.getLogger(QueueTransformService.class);

View File

@@ -26,12 +26,8 @@
*/
package org.alfresco.transformer;
import static org.alfresco.transform.client.model.Mimetype.MIMETYPE_OPENXML_WORDPROCESSING;
import static org.alfresco.transform.client.model.Mimetype.MIMETYPE_PDF;
import static org.junit.Assert.assertEquals;
import java.util.UUID;
import javax.jms.Queue;
import org.alfresco.transform.client.model.TransformReply;
@@ -49,7 +45,7 @@ import org.springframework.test.context.junit4.SpringRunner;
* created on 15/01/2019
*/
@RunWith(SpringRunner.class)
@SpringBootTest
@SpringBootTest(properties = {"activemq.url=nio://localhost:61616"})
public abstract class AbstractQueueTransformServiceIT
{
@Autowired