There is Entity Bean's persistenced via JDBC . Each of them has an attribute holding a document. This document can be accessed either via HTTP or Web Services (WS) on an other Application Server (AS) . There is some questions concerning architect: 1. Is it recommended / allowed to write the HTTP or WS client code within the EJB ? If not, what kind of design is recommended ? 2. If both AS's reside within an Intranet (DMZ), shoud be preferred the HTTP solution ?