@ankelee
I was able to get a simple example that tweeted to my account a direct message (TwitterHeaders.DM_TARGET_USER_ID) using the twitter outbound-update-channel-adapter. You can use IN_REPLY_TO_STATUS_ID header to reply to specific tweets.
Here is the config:
HTML Code:
<twitter:twitter-connection id="tc"
access-token="${twitter.oauth.accessToken}"
access-token-secret="${twitter.oauth.accessTokenSecret}"
consumer-key="${twitter.oauth.consumerKey}"
consumer-secret="${twitter.oauth.consumerSecret}"/>
<channel id="out"/>
<twitter:outbound-update-channel-adapter twitter-connection="tc" channel="out"/>
<context:property-placeholder location="classpath:META-INF/props/twitter.properties" ignore-unresolvable="true"/>
Here is the test:
Code:
@Value("#{out}") private MessageChannel channel;
@Test
public void shouldTweet() {
MessagingTemplate messagingTemplate = new MessagingTemplate();
MessageBuilder<String> mb = MessageBuilder.withPayload("tweet tweet from my spring app :)").setHeader(TwitterHeaders.DM_TARGET_USER_ID, "@twitterUser");
Message<String> m = mb.build();
messagingTemplate.send(this.channel, m);
}
This is just a simple test, you can have it much prettier using a message gateway 
I'm still working on reading tweets.....
Nick.