Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PropertyResourceBundle prop = CommonUtils.getInstance().getProperties();
- String serverUrl = prop.getString("spring.activemq.server-url");
- String userName = prop.getString("spring.activemq.user");
- String password = prop.getString("spring.activemq.password");
- String url = serverUrl + "/api/message?destination=queue:
- RestClient client = new RestClient(userName, password);
- String activeMQResponse = client.get(url);
- System.out.println(activeMQResponse);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement