In general XML only makes sense for transfers between different systems or media. Using XML for internal interfaces could incur quite a large performance hit for encoding/decoding. If you have enough shared context to pass in-memory beans (or any other
Java objects) directly, then
you should carry on doing that.
If you already have to serialize your beans to get them between VMs or between machines, then the case is a lot less clear cut. Using beans is probably faster, using XML is probably more flexible in terms of plugging in non-Java components to your system.
Look at one of the many XML-RPC proposals (
SOAP, SML-RPC etc.) for examples of passing simple data types. Any search engine should be able to find references.