Cache settings apply to stateful session beans and entity beans. Pool settings apply stateless session beans, MDBs and entity beans.
There are two granularities of specifying them: per bean (in sun-ejb-jar.xml), or per server instance/cluster (in the console or using asadmin). In the latter case you can set separate values for MDBs, but not for stateless, stateful and entity beans.
If you don't use entity beans, then basically you can specify separate values for each. (Note that stateful session beans are not pooled).
I don't think cache size can be specified in bytes.
[Message sent by forum member 'dkoper' (dkoper)]
http://forums.java.net/jive/thread.jspa?messageID=255981