Friday, January 17, 2014

Install intel ssd on Hp Envy 15 (2013)

Boot backups wont work.

Had to use Acronis(Intel Drive Migration Tool) to copy drives, then just installed and booted my original windows and files.



Best Java Enterprise Scheduler (Quartz) with auto-start and stop on deployment

The best Java Enterprise scheduler I've used so far is quartz.

Its very proper and comes with all the needed class modules. And definitely have seen it being used professionally to extremes.


How to



Note* - Use log4j classes

Auto Start Stop

This is done by adding custom lines to ContextListener. By simply deploying and undeploying packages quartz can be start and stopped.

public class Config implements ServletContextListener {

    public void contextInitialized(ServletContextEvent event) {
        ***Code to initialize quartz thread pool***
    }

    public void contextDestroyed(ServletContextEvent event) {
        ***Code to stop quartz thread pool***

    }

}
and register it as a <listener> in web.xml.
<listener>
    <listener-class>com.example.Config</listener-class>
</listener>

Short Away Note Update

 Im sorry to have been busy, going back to university for my masters.

Was supposed to start at ANU for semester 2,2013 but got pushed back to semester 1, 2014

I've been working temporarily at another company in php and been taking rest and free lancing . Hope to  get back to Java soon.


Meanwhile I'll post all the cool stuff I've worked on recently well in this past year

Raad

Glassfish ActiveMQ integration (Asynchronous services)

Why?


If you have applications/services that are constantly being hit at a high rate by external sources, its best to use message queuing to balance the load between resources. The defalt Glass-fish listener can handle a tps of  1000/200,0 but with MQ it can be increased to 100000 tps or so and the load can be distributed among the resources.

Resources

Java dude has the best outline. How ever I would suggest to read a few of them to implement ActiveMQ Successfully


Java dude (part 1) - http://javadude.wordpress.com/2011/07/21/glassfish-v3-1-running-embedded-activemq-for-jms-part-1/
*note the parts 2 & 3 are also on his site.

Other Great Resources

After this create EJB resources's to handle the jobs and add them to your MQ. Google and ActiveMQ site and forum discussions will be your best help on this.