154155156157158159160161162163164
final QueueAdmin queue = AdminFactory.newQueue(); queue.setName(info.client_id); queue.setClientGroup(info.client_group); ctx.bind(info.client_id, queue); } } /* * Create a connection factory for each client group where there is a queue.
174175176177178179180181182183184
cfAdmin.setBrokerHost(hostName + ":" + port); cfAdmin.setBrokerName(brokerName); cfAdmin.setConnectionClientGroup(clientGroup); cfAdmin.setConnectionClientId("hermes-" + System.currentTimeMillis()); ctx.bind(clientGroup, cfAdmin); } adminClient.destroy(); return ctx;