I'm developing a JSP DynPage using JCA to access RFMs in R/3. The JSP DynPage model is basically: doInitialization
then iterate through doProcessBeforeOutput, doProcessBeforeInput, and react to any event processing triggered by JSP. And, use a bean to store any persistent data.
My question is this as it relates to JCA: for a high volume environment, is it better to acquire a ConnectorService, ConnectionProperties, Client, etc. during doInitialization and store them in a bean for reuse, or acquire them each time ( in doProcessBeforeOutput for example)?
All the examples I've seen thus far perform the latter, but I would like to know if this is the recommended approach. I haven't been able to locate any documentation which describes the overhead associated with JCA session management.
Thanks.
Mark