This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IntegrationFlows | |
.from(jmsInboundChannelAdapter()) | |
.channel(inboundChannel()) | |
.get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jms.messageDriverChannelAdapter(jmsFactory) | |
.configureListenerContainer(defaultMessageListenerContainerJmsListenerContainerSpec -> | |
defaultMessageListenerContainerJmsListenerContainerSpec.sessionTransacted(true)) | |
.destination(QUEUE1) | |
.get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IntegrationFlows | |
.from(inboundChannel()) | |
.transform(...) | |
.filter(...) | |
.channel(subscribableChannel()) | |
.get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IntegrationFlows | |
.from(subscribableChannel()) | |
.handle(Jms.outboundAdapter(jmsFactory).destination(QUEUE2)) | |
.get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IntegrationFlows | |
.from(subscribableChannel()) | |
.handle(Jms.outboundAdapter(jmsTemplate).destination(QUEUE2)) | |
.get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EntityServiceImp implements EntityService { | |
private EntityRepository repository; | |
private ImageService imageService; | |
@Override | |
public void update(String id, UpdateData updateData) { | |
Entity entity = repository.find(id); | |
entity.setDescription(updateData.getDescription()); | |
entity.setTitle(updateData.getTitle()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EntityServiceImpl implements EntityService { | |
private EntityRepository repository; | |
private ImageService imageService; | |
@Override | |
public void update(String id, UpdateData updateData) { | |
Entity entity = repository.find(id); | |
entity.setDescription(updateData.getDescription()); | |
entity.setTitle(updateData.getTitle()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EntityServiceImpl implements EntityService { | |
private EntityRepository repository; | |
private ImageService imageService; | |
@Override | |
public void update(String id, UpdateData updateData) { | |
Entity entity = repository.find(id); | |
ImageEntity image = imageService.getImage(updateData.getImageUrl()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EntityServiceImpl implements EntityService { | |
private EntityRepository repository; | |
private ImageService imageService; | |
private EntityObservers entityObservers; | |
@Override | |
public void update(String id, UpdateData updateData) { | |
Entity entity = repository.find(id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InMemoryMongo { | |
private static final String DATA_PATH = "./target/elasticsearch"; | |
private Node node; | |
private Client client; | |
public InMemoryMongo() { | |
} | |
public InMemoryMongo start() { |
OlderNewer