Advertisement
Guest User

Untitled

a guest
Nov 30th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. PropertyResourceBundle prop = CommonUtils.getInstance().getProperties();
  2. String serverUrl = prop.getString("spring.activemq.server-url");
  3. String userName = prop.getString("spring.activemq.user");
  4. String password = prop.getString("spring.activemq.password");
  5.  
  6. String url = serverUrl + "/api/message?destination=queue:
  7.  
  8. RestClient client = new RestClient(userName, password);
  9. String activeMQResponse = client.get(url);
  10. System.out.println(activeMQResponse);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement