The center had sponsored Troop 15 since 1951. But the 12 Boy Scouts and 42 Cub Scouts are being evicted today, another casualty of the Boy Scouts of America’s ban on gay leaders and members, the Supreme Court’s upholding of that policy and the recommendation by Reform Jewish leaders that families and sponsoring institutions protest the discrimination by withdrawing.

The scouts were not fazed by the move once they knew they had a new sponsor, Post 142 of the Jewish War Veterans, and a new meeting place, a local Orthodox synagogue. They would miss the pool and the gym at the J.C.C. They worried there would not be enough storage space at their new home. Packing up was dull, sweaty work. But their scoutmaster, David Rand, rewarded them with pizza.

”They know why we were kicked out — because of politics,” Mr. Rand said. He earnestly assured the boys that ”we have nothing to do with national policy.”

Then, after a long pause, he waffled: ”Well, we do, but we don’t.”

That stammered contradiction is common among scoutmasters in his position, Mr. Rand said. He must choose his words carefully. If he says nothing about the national policy, he betrays his conscience. If he says too much, Troop 15 could be disbanded.

”I personally feel it’s discriminatory and we don’t discriminate,” he said. ”But don’t quote me on that. No, O.K., go ahead.”

There are 10 Boy Scout troops in Stamford but this is the only one with Jewish sponsorship. Its alumni include Senator Joseph I. Lieberman and it accommodates religiously observant children by holding outings on Sunday, rather than on the Jewish Sabbath, serving kosher food and making a boy in a skullcap feel just as comfortable as one in a Yankee cap.

But children of all faiths and backgrounds are welcome. The current membership includes two in parochial school, Ivey Speight Jr. and Ryan Smith; David Ratner attends a Jewish day school. One boy’s father is a lawyer. Another’s works in the kitchen at a Red Lobster restaurant.

Many of the families said they shopped for a troop that felt comfortable. Ivey, for instance, a Catholic boy of mixed race, tried out three before settling on Troop 15.

”David accepts them, no matter what,” said Margaret Speight, as four of the boys and their scoutmaster crowded around her son’s bed at Yale-New Haven Children’s Hospital earlier this week, paying him a visit just hours after hip surgery.

Their visit began with an hour-long car ride with Mr. Rand, at the end of his day’s work.

The trip was interrupted by several bathroom stops and one bout of car sickness. The queasy scout got to ride in the front seat on the way home. There were many predictable vomiting jokes. Mr. Rand said he would use his dirty Jeep instead of this fancier car next time they went anywhere.

Ivey, 11, was groggy and asking for more pain medication when Ryan, David, Harrison Green, Greg Morris and Mr. Rand arrived. The boys, ranging in age from 10 to 12, had brought their friend a T-shirt from a recent rafting trip, a stuffed animal and news of the Mets’ latest loss.

At Ivey’s bedside, the boys reminisced about the past year. They talked about camping in the outfield after a minor league baseball game in Bridgeport, skiing at Butternut Mountain in Massachusetts, and touring the local police department and getting fingerprinted.

But they also remembered planting indigenous species at a nature center on Earth Day, putting flags on the graves of Jewish war veterans, and raising money to buy the fire department thermal imaging cameras.

Next year, they said with excitement, they would camp out with scouts throughout the region at Liberty Science Park in New Jersey and also test video games for the Consumers Union.

They begged Mr. Rand for more rafting and ski trips. The second-year scoutmaster smiled a goofy smile. They had clearly made his day.

The decision to revoke Troop 15’s charter came suddenly, or so it seemed to outsiders, at a J.C.C. board meeting on June 12.

But Mr. Rand said he was not surprised, given the flight of other schools, churches and charities that had been longtime supporters or sponsors of scout troops.

”Our motto is to be prepared,” Mr. Rand said. ”So I’d been working on this for quite a while, just in case.”

Mr. Rand, 52, is a recruiter for a computer company and a former member of Troop 15. He got involved again when a friend — a single mother — asked him to accompany her son to a meeting because it was a ”guy thing.”

Mr. Rand, who was single at the time, has since married. When he became scoutmaster of Troop 15, his wife took over the Webelos, the last stop before Cub Scouts ”bridge up” and become Boy Scouts.

Within days of the J.C.C. vote, Mr. Rand had found a new sponsor, Post 142, which officially took over today. Then he found a new location for meetings, Congregation Agudath Shalom, whose rabbi, Mark Dratch, said he had learned ”ethical lessons, leadership skills, responsibility and decency” as an Eagle Scout in Philadelphia.

The state commander of the Jewish War Veterans, Kurt Zimbler, a Marine sergeant in Korea from 1952 to 1955, said his organization opposed the national Boy Scout policy but was satisfied that ”locally they don’t discriminate.”

Rabbi Dratch was more circumspect, as Orthodox Judaism interprets the Bible and Torah in a more literal way than the Reform wing.

”I have to be careful and balance our sensitivity toward discrimination with the biblical injunction against homosexuality,” the rabbi said, worrying about the fate of gay adolescents who have high rates of depression, substance abuse and suicide. ”But this program is too valuable to lose. To make sexual identity a litmus test disturbs me. It is not relevant and I would hope the Boy Scouts get beyond this.”

At the J.C.C., the chief executive officer, Gary Lipman, described the board’s deliberations as agonizing.

It is, he said, ”a shame that the Boy Scouts of America have put institutions in this position.”

But, Mr. Lipman concluded, the national policy ”is inconsistent and ultimately irreconcilable with what the center stands for.”

At Ivey’s bedside, his mother, the comptroller at a manufacturing plant and a Brownie leader at the J.C.C., clucked her disgust with the whole topic. ”To the kids, it’s really ridiculous,” Mrs. Speight said.

Visiting hours were over. The boys had to be pried away from the fascinating bedside monitors charting Ivey’s respiration and heart rate. Mr. Rand sent them all to the bathroom, ”just in case.”

At the door, the scoutmaster promised Ivey’s parents another visit. ”If I can do anything,” Mr. Rand said.

”You did a lot already,” Mrs. Speight answered, as Ivey waved goodnight.

Photo: David Rand, right, leader of Boy Scout Troop 15, took four members to visit fellow member Ivey Speight Jr., 11, after Ivey’s hip surgery. A national ban on gay scouts led the troops sponsor to withdraw its support. (Krista Joy Niles/The New York Times)