BC4J in OC4J Best Practice
What is the best way to deploy BC4J to OC4J?
Option 1:
Deploy the BC4J libraries either manually or via the bc4j2oc4j.bat script to OC4J root lib
Option 2:
Deploy the BC4J runtime libraries with each application deployed under OC4J
Currently I use Option 1 because I only have to add the BC4J files once, I get consistency across all deployed apps and it uses less memory(?). The drawback is that all the apps will share the library and you MUST have pesistence turned on and functioning. It looks like each time an app hits the BC4J lib, the persistence mechanism persists the current app's data, and then switches to the new app. I presume this happens everytime one app competes with another app for BC4J.
I have also seen BC4J deployed with every application. This presumably would give every app it's own BC4J runtime and therefore avoid any conflicts. Would it also mean better peformance assuming the box has plenty of memory? Or is is slower than Option 1?
Anyone else have any comments or additions? I just wnat to understand the best way, if there is one, to deploy BC4J to OC4J.
Thx,
Eric