now java stored procedures are written in java as the name suggests, therefore they exists on client side. SQL stored procedures exist on the server. I know of advantages in having sql stored procedures:- One that i can think of is reduced network overheads because you only have to send the parameters instead of the whole sql statement.
But i cannot think of any use of having java stored procedures over sql stored procedure . Could someone please help me on this ?