It should bolt in once you swap the input shaft from your 231 to the 241OR. You will also need to swap the front output yoke with one from the 231.
You will also need to modify the rear output of the 241OR to match your current setup, may mean swapping the mainshaft between the two cases and the output housing. I haven't had a 241OR apart but a lot of the parts are interchangeable between the two.
Front output yoke will be easy, but you may want to modify your YJ's rear driveshaft to mate with what is currently on the back of the 241OR.