Showing posts from August, 2013

5 Things a Java Developer Should Consider

1. Create an application using a NoSQL Data store and connect it with Java If you have yet not understood the NoSQL databases its the best time. Lots of choices on the NOSQL side, may be MongoDB or Hadoop can be a starting point. We can create applications using Spring Data or the native Java adapters to connect to the Data Store. 2. Get the first app on Java PaaS on Cloud and ask your 5 friends to use it. You have many platforms available including Openshift backed by JBoss and Redhat , CouldFoundry backed by Spring source and VMware. Cloud is the future of application deployments and Software as service gaining more popularity. From a developer point of view nothing really changes apart from the configurations and deployment. 3. What really is Software Design? Read the GOF Design Pattern catalog and Search your project for the usage of it. If you are not using them check if you have similar patters. If you have a Java enterprise application you can check for Java EE patterns. Take a

Schedule Tasks in Spring 3 : @Scheduled

Spring provides excellent support for scheduling jobs based on different implementations. (eg: cron). This scheduling is possible with use of @Scheduled annotation. According to spring documentation: Spring 3.0 also adds annotation support for both task scheduling and asynchronous method execution. The @Scheduled annotation can be added to a method along with trigger metadata. In this post, I will show the means to use this feature in 4 different ways. @Scheduled annotation This annotation is used for task scheduling. The trigger information needs to be provided along with this annotation. You can use the properties fixedDelay/fixedRate/cron to provide the triggering information. fixedRate  makes Spring run the task on periodic intervals even if the last invocation may be still running. fixedDelay  specifically controls the next execution time when the last execution finishes. cron  is a feature originating from Unix cron utility and has various options based on your r