The insertion of a J tube is typically done through a surgical procedure called a jejunostomy. This can be performed either as an open surgery or using minimally invasive techniques like laparoscopy or endoscopy. The procedure involves creating a small incision in the abdominal wall and threading the tube into the jejunum. The tube is then secured in place to prevent dislodgment.