One cannot use commit directly in side the body of a trigger. A little tweak would help one achieve it.
Way One: Have an autonomos block of code in the trigger body and use the commit statement inside it.
Way Two: Call a stored procedure from the trigger body and let the stored procedure have the commit statement in it.
Hope this gives you a way out.
With thanks
Mahesh Konatham