Connect JavaEE Application to MySQL Database on GoDaddy Shared Linux Hosting Server

I was trying to find some example to connect MySQL database with my Java Shared Hosting Plan on GoDaddy.com but I could not. Well, I don’t want to say that GoDaddy has the best plan for hosting Java application. I still can not figure out how to use JSTL, custom url-pattens in the web.xml and forward requests from a servlet to JSP page. Also, we have to put http://<domain_name>/servlet/<servlet_name> to access servlet. But, here is simple working example to show you database connection from hosting to MySQL server on GoDaddy Shared Hosting.

Take a look at the example at link : GoDaddyJavaMySQL

DBConnector.java

GoDaddyJavaMySQL.java

web.xml

Insertion Sort

I was free today and trying to write small code for sorting algorithms. Below code is for the Insertion Sort. I think that it is very easy to understand and if you debug then you can see how algorithm works. I wish that it is helpful.

Download File: InsertionSort

Read more at http://en.wikipedia.org/wiki/Insertion_sort

Wow, JavaOS!!!

I’ve often wondered how realistic it was to imagine a JVM without an OS. There have been attempts to create a full-Java OS. I discovered today that there is a project at Sun that takes the virtual approach. Instead of trying to create a full-blown Java OS, the Maxwell Project aims at creating a JVM that can run directly as a guest under a hypervisor without the need for a guest OS. From Olivier’s Blog.