I would like to pass as a parameter to my .jrxml an arbitrary object of my domain, e.g a Person.
InputStream reportFile = MyPage.this.getClass().getResource
Yes, it is possible exactly the way you explained. Just make sure you have the correct classpath when compiling the jrxml and be careful with the case - either lowercase (person) or uppercase (PERSON) in all places.
person
PERSON