in chatterbox-twitter/chatterbox-twitter-impl/src/main/java/org/apache/tomee/chatterbox/twitter/adapter/TwitterResourceAdapter.java [226:241]
public void start(final BootstrapContext bootstrapContext) throws ResourceAdapterInternalException {
LOGGER.info("Starting " + this);
client = new TwitterStreamingClient(this, consumerKey, consumerSecret, accessToken, accessTokenSecret);
twitter = new TwitterFactory().getInstance();
twitter.setOAuthConsumer(consumerKey, consumerSecret);
twitter.setOAuthAccessToken(new AccessToken(accessToken, accessTokenSecret));
try {
client.run();
} catch (InterruptedException | ControlStreamException | IOException e) {
e.printStackTrace();
}
}