A Simple How To:
The first thing we need to do is to create an application within your twitter account, grant it access and generate authentication tokens (although, the consumer tokens will also work and it will be automatically generated upon creating the application).
1) Create an Application in your twitter account: Go To > Settings > Applications > Developers > “here”. You must login with your twitter account (or the account that you will use in your API).
2) Create your application: Enter required fields.
3) A consumer keys will be given to you. if you’re only looking to read status updates, this is sufficient enough for your needs.
For this example, I’m using Eclipse IDE.
1) Create a New Java Project and include the Twitter4j Library (download it here).
2) Create a class and check the code below:
And the Actual Twitter Feed:
Download the code :p
Java Platform, Enterprise Edition is a widely used platform for enterprise server programming in the Java programming language.
This book covers exciting recipes on securing, tuning and extending enterprise applications using a Java EE 6 implementation.The book starts with the essential changes in Java EE 6. Then they will dive into the implementation of some of the new features of the JPA 2.0 specification, and look at implementing auditing for relational data stores.They will then look into how they can enable security for their software system using Java EE built-in features as well as using the well-known Spring Security framework. They will then look at recipes on testing various Java EE technologies including JPA, EJB, JSF, and Web services.Next they will explore various ways to extend a Java EE environment with the use of additional dynamic languages as well as frameworks.At the end of the book, they will cover managing enterprise application deployment and configuration, and recipes that will help you debug problems and enhance the performance of your applications.