You need to explain more in details as what you tried to do. Otherwise we may waste time on suggestions you did try. This also enable to see us if you made any mistakes.
PS: What did you gain by installing MySQL through WAMP. I see it as waste, since you are using Java therefore you will not use PHP and use of Apache HTTP server is questionable since Tomcat (Jetty, JBoss) is satisfactory in most cases
I didn't asked it because I didn't know it, but because there are number of ways to do it (by configuring database, programmatically from code) and I wanted to know how OP decided to solve it it. Next time please read whole thread...
hey calm down guys :) firstly sorry for not mentioning the sol. i thought i mentioned it but unfortunately i mentioned it in the other thread secondly till now i didn't know where the problem was i installed odbc mysql connector and it seems like magic and every thing went perfect without any other extra database specifications(using mysql database not wamp server)