On finiteness and rigidity of J-holomorphic curves in symplectic three-folds