How to use and retain Twitter4J OAuth access token

I  was stuck in a problem that how to re use access token, once user has authenticated by Twitter (on call back URL). I got it working. There was problem in my understanding about request token vs access token. When user first time comes on call backed URL. I take request token and token secret from session and prepare the access token. Here the place where I was confused.

• • •

Got two books on Google App Engine for Java

Recently I got two books on Google App Engine for Java. Programming Google App Engine by Oreilly and Beginning Google App Engine by Apress. There is less material and comprehensive online tutorials available on this. So its better that you read book on it. I started reading Oreilly’s book. I completed some of the basic components so quickly by given code examples in the book. Its always a good start on some new technology, if you have books in your pocket.

• • •

Determine whether application is running on local server or App Engine

If you are working on developing some application on Google App Engine. You may come up with such situation to switch your production code with your local dev code. Following is my solution for this problem. I have initialized a servlet from web.xml. That set appropriate value in a static boolean. I will use this boolean in whole of my application. I used getServletContext().getServerInfo().

• • •

Domain is not working without www prefix in GAE

The current issue I am working on is to make my naked domain http://mydomain.com to redirect to http://www.mydomain.com in Google App Engine. With www prefix I have configured my domain. But my naked domain is not working. I just found on Google support site that they are no more supporting naked URLs for their app engine.

• • •