Hi Everyone:

I hava a distributed system which consists of a Tomcat as web tier and a Jboss server hosts SLSB- Stateless Session EJB (making database connection etc). Tomcat and Jboss server resides on separated java virtual machines. We are forced to use RMI as communication protocol between Tomcat and Jboss.

A manager of this project asked me to write some codes let a Plain Old Java Object in Tomcat container to retrieve a PDF file (as big as 2MB) from Jboss application server’s directory.

I didn’t think this is applicable through remote RMI -Stateless EJB method implementing remote home interface. My understanding of EJB is built on RMI. Through RMI, there is limited amount data can be serialized and transferred among virtual machines.

It might still be doable through native RMI level programming with a mark/reset FileImputStream.

Or I need to chop the PDF into a few small size object, then reassemble them into one file in Tomcat container


But that is not a trivial job, plus I am not allowed to alert Tomcat source code and jboss source code.

How can I convince the manager that his idea is not applicable? Or do your guys have solution for this scenario or suggestion for me?