Skip to content

Instantly share code, notes, and snippets.

@rcarneiro
Created October 20, 2011 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcarneiro/1301743 to your computer and use it in GitHub Desktop.
Save rcarneiro/1301743 to your computer and use it in GitHub Desktop.
Some codes
//new code added to the assignment
//Logic that makes an reconnection if occur some fail
final AsyncHttpClient asyncHttpClient = new AsyncHttpClient(
new AsyncHttpClientConfig.Builder()
.addIOExceptionFilter(new ReconnectionIOExceptionFilter()).build());
//Spring
/**
* Starts the Spring Framework and get the bean.
*
* @return an Keywords object
*/
public Keywords getKeywords() {
final AnnotationConfigApplicationContext annConfigAppContext = new AnnotationConfigApplicationContext(
KeywordsConfiguration.class);
final Keywords keywords = annConfigAppContext.getBean("keywords",
Keywords.class);
return keywords;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment