We studied the physical properties of two Kondo-lattice compounds, CeRu$_2$As$_2$ and CeIr$_2$As$_2$, by a combination of electric transport, magnetic and thermodynamic measurements. They are of ThCr$_2$Si$_2$-type and CaBe$_2$Ge$_2$-type crystalline structures, respectively. CeRu$_2$As$_2$ shows localized long-range antiferromagnetic ordering below $T_N$=4.3 K, with a moderate electronic Sommerfeld coefficient $gamma_0$=35 mJ/mol$cdot$K$^2$. A field-induced metamagnetic transition is observed near 2 T below $T_N$. Magnetic susceptibility measurements on aligned CeRu$_2$As$_2$ powders suggest that it has an easy axis and that the cerium moments align uniaxially along $mathbf{c}$ axis. In contrast, CeIr$_2$As$_2$ is a magnetically nonordered heavy-fermion metal with enhanced $gamma_0$$>$300 mJ/mol$cdot$K$^2$. The initial onset Kondo temperatures of the two compounds are respectively 6 K and 30 K. We discuss the role of the crystal structure to the strength of Kondo coupling. This work provides two new dense Kondo-lattice materials for further investigations on electronic correlation, quantum criticality and heavy-electron effects.