Crystal orientation dependence of the critical current density in a-axis- and c-axis-oriented MgB2 films