I thought I had a possible death for James, but not so. The first death record for this James Riley said he died August 1, 1911, at City Hospital, Boston, age 36. cause of death: hemorrhage and shock following traumatic amputation of both legs by being run over by train, accidental.
birthplace: Ireland
occupation: oiler
parents: James Riley and Ellen Griffin, both born in Ireland
buried: St Joseph's Cemetery.
https://www.familysearch.org/ark:/61903/3:1:S3HY-6SJ3-SD9?i=1707&cc=1463156But after further looking, I found the city's record of that man's death which had further information that wasn't copied to the state's record. It isn't him. The informant is likely his wife. And he worked for the railroad, not the Metropolitan Transit Authority, which ran the trolleys.
It gives his birthplace as Co. Cork.
other additional information:
home address: 38 Marshfield St, Roxbury
white, male, married, born 1875
worked for the Boston and Albany RR
informant: Bridget Riley
https://www.familysearch.org/ark:/61903/1:1:Q2Q2-8W5Z--------------
here are a couple of James Rileys boarding with people in Boston. The first is interesting because the lodger listed ahead of him is named Derrigan. (clutching at straws), but she was born in Massachusetts.
1940 at 637 Dudley Street, Roxbury, age 67, a painter
https://www.familysearch.org/ark:/61903/1:1:K4VM-4Y71930 Wayfayer's Lodge, 30 Hawkins Street, a construction laborer, age 48
https://www.familysearch.org/ark:/61903/1:1:XQ5R-JRS1940 Tewksbury State Hospital, Tewksbury Massachusetts
age 64, no occupation
https://www.familysearch.org/ark:/61903/1:1:K4FY-29X