June 2018
Intermediate to advanced
408 pages
11h 23m
English
To run this application, we will use the RabbitTemplate.convertAndSend() method to send the message. This method also converts custom Java objects to AMQP messages and is sent to direct exchange. The following BankAccount class is created as a custom class to populate the message properties:
public class BankAccount { private int accountId; private String accountType; public BankAccount(int accountId, String accountType) { this.accountId = accountId; this.accountType = accountType; } public int getAccountId() { return accountId; } public String getAccountType() { return accountType; } @Override public String toString() { return "BankAccount{" + "Account Id=" + accountId + ", Account Type='" + accountType + '\'' ...Read now
Unlock full access