/** * With ActiveMQ we were passing the full JNDI name, e.g., java:/topic/HawkularInventoryChanges, to * Session.createTopic (or Session.createQueue). Using the full JNDI name/path does not work with Artemis. */ private String getDestinationName(Endpoint endpoint) { int start = endpoint.getName().lastIndexOf('/') + 1; return endpoint.getName().substring(start); }
if (endpoint.getType() == Endpoint.Type.QUEUE) { if (endpoint.isTemporary()) { dest = session.createTemporaryQueue(); } else { if (endpoint.isTemporary()) { dest = session.createTemporaryTopic(); } else {
@Override public String toString() { if (isTemporary()) { return "{" + type.name() + "}$TEMPORARY$"; } else { return "{" + type.name() + "}" + name; } }
if (endpoint.getType() == Endpoint.Type.QUEUE) { if (endpoint.isTemporary()) { dest = session.createTemporaryQueue(); } else { if (endpoint.isTemporary()) { dest = session.createTemporaryTopic(); } else {
@Override public String toString() { if (isTemporary()) { return "{" + type.name() + "}$TEMPORARY$"; } else { return "{" + type.name() + "}" + name; } }
/** * With ActiveMQ we were passing the full JNDI name, e.g., java:/topic/HawkularInventoryChanges, to * Session.createTopic (or Session.createQueue). Using the full JNDI name/path does not work with Artemis. */ private String getDestinationName(Endpoint endpoint) { int start = endpoint.getName().lastIndexOf('/') + 1; return endpoint.getName().substring(start); }