Well, Ki-Adi-Mundi followed the Cerean custom of polygamous marriage, taking a bond wife, Shea, and four honor wives while he was a Jedi and now he is on the Jedi Council. So I guess the Jedi don't like marrage, but it can be done.
This is the link for the information on Ki-Adi-Mundi:
http://www.starwars.com/databank/character/kiadimundi/eu.html
Yup, that Mundi stuff isn't canon.
We don't have it for CERTAIN that marriage gets you thrown out, though Anakin being a Padawan makes the situation very diodgy.
Still, what DOES get you thrown out the ORder? Qui-Gon never was, even though he did not follow th code. Yet Obi-Wan seemed to think that Anakin putting Padme's importance over the mission was grounds for expulsion. Hmmm...
The jedi Coucil, a group of angry generals, it is not. Qui Gon, a master he was thus smaller the chances of him being expelled are. Anakin, instead......the councillors aware they are that his powers arogant they made him. Still, capable of many great things he is. But endangering the mission and risking Obi's life, acceptable, it is not.