I found a thread named 'Execute an sql script in jdbc' it was very much useful to me. However i have my routines(ie. stored procedures and functions) also with the backup.sql file.
This is the link which i looked for:
But i have to execute my script along with my stored procedure script also,
Please help me how to handle the condition with routines within the sql script.