I am not sure if I got the question right,but incase,you have a Machine A with Java Web Server( from where you want to execute your java code) and Machine B with CE installed( where your reports are placed and ,need to be invoked from) ;then deploy the Java code through which you call your reports on to the Java Server machine.
If you have gone through my code : Report.java
Here is the piece of the code :
b.setReportName("http://ServerName:80/reportname.rpt");//Please set the Report Name path acc. to the Virtual Folder created by you on the IIS
here,ServerName needs to be replaced by the the name/IP address of the server machine where the CE is installed & reports/virtual path to reports are saved.
80 : Port number here is set to 80.You will have to change it to the one used by your Web Server.
Pooja M.,
http://home.attbi.com/~pooja.mohan