Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final Logger logger = LogManager.getLogger(ScheduledQueryRunnable.class);
- @Autowired
- SendScheduledRequestService sendScheduledRequestService;
- public void run() {
- String endpointUri = this.getEndpoint().getUri();
- byte[] body = new byte[0];
- try {
- body = this.getBody().getBytes(1, (int) this.getBody().length());
- } catch (SQLException e) {
- logger.error(e.getMessage());
- }
- String contentType = this.getContentType();
- sendScheduledRequestService.sendSheduledRequest(endpointUri, body, contentType);
- logger.info("сообщение отправлено");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement