use of nl.nn.adapterframework.jndi.JndiConnectionFactoryFactory in project iaf by ibissource.
the class BrowseQueue method getBrowseQueue.
@GET
@RolesAllowed({ "IbisObserver", "IbisDataAdmin", "IbisAdmin", "IbisTester" })
@Path("jms")
@Produces(MediaType.APPLICATION_JSON)
public Response getBrowseQueue() throws ApiException {
Map<String, Object> returnMap = new HashMap<String, Object>();
JndiConnectionFactoryFactory connectionFactoryFactory = getIbisContext().getBean("connectionFactoryFactory", JndiConnectionFactoryFactory.class);
Set<String> connectionFactories = new LinkedHashSet<String>();
// connection factories used in configured jmsSenders etc.
connectionFactories.addAll(connectionFactoryFactory.getConnectionFactoryNames());
// configured jms realm
connectionFactories.addAll(JmsRealmFactory.getInstance().getConnectionFactoryNames());
if (connectionFactories.size() == 0)
connectionFactories.add("no connection factories found");
returnMap.put("connectionFactories", connectionFactories);
return Response.status(Response.Status.OK).entity(returnMap).build();
}
Aggregations