service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/command/DataAgentApiImpl.java
private void sendMessage(final DataAgentWorkOrder workOrder) {

		switch (workOrder.getTarget()) {
		case MODEL_EXTERNAL_RIKSDAGEN:
			for (final RiksdagenDataSources datasource :RiksdagenDataSources.values()) {
				jmsSender.send(riksdagenApiDestination, datasource);
			}
			break;
		case MODEL_EXTERNAL_WORLDBANK:
			for (final WorldBankDataSources datasource :WorldBankDataSources.values()) {
				jmsSender.send(worldBankApiDestination, datasource);
			}
			break;
		default:
			break;
		}
	}
private void sendMessage(final DataAgentWorkOrder workOrder) {

		switch (workOrder.getTarget()) {
		case MODEL_EXTERNAL_RIKSDAGEN:
			for (final RiksdagenDataSources datasource :RiksdagenDataSources.values()) {
				jmsSender.send(riksdagenApiDestination, datasource);
			}
			break;
		case MODEL_EXTERNAL_WORLDBANK:
			for (final WorldBankDataSources datasource :WorldBankDataSources.values()) {
				jmsSender.send(worldBankApiDestination, datasource);
			}
			break;
		default:
			break;
		}
	}
private void sendMessage ( final DataAgentWorkOrder workOrder ) { switch ( workOrder . getTarget ( ) ) { case MODEL_EXTERNAL_RIKSDAGEN : for ( final RiksdagenDataSources datasource : RiksdagenDataSources . values ( ) ) { jmsSender . send ( riksdagenApiDestination , datasource ) ; } break ; case MODEL_EXTERNAL_WORLDBANK : for ( final WorldBankDataSources datasource : WorldBankDataSources . values ( ) ) { jmsSender . send ( worldBankApiDestination , datasource ) ; } break ; default : break ; } }
Send message.

@param workOrder
the work order
Send message .