Lets say your properties file name is "messages.properties", in that case you need to have something similar to following in your applicationContext.xml file.
Make sure that your properties file is in the class path.
In your controller class, auto-wire the messagesource object
@Autowired
private MessageSource messageSource;
To compare the transaction type id you can have code similar to below:
if(provider.trim().equals("TXT_CCO")){
String transactionTypeId=messageSource.getMessage("TXT_CCO", null, Locale.ENGLISH).trim();
}