OK, I've got two Tomcat webapps. Each with it's own OJB.properties and repository xml files defining two different mappings and two different connection descriptors.
Ojb libraries are in common/lib to allow sharing among webapps. Everything was working file until I added the second webapp. Now, observing the logs, it seems the first webapp is getting the broker corresponding to the connection-descriptor in the second one. In both apps, I do PersistenceBroker.defaultBrokerInstance() to obtain the brokers. I tried giving each connection-descriptor a unique jcd-alias, but to no avail. Actually, that's how I discovered what the problem is. How do I tell Ojb to reference the connection-descriptor defined for a specific webapp? This seems like a classloading issue. Perhaps, there is a place in the Ojb code without a needed Thread.getContextClassLoader() call? Please help. I'm running out of time debugging Ojb issues. Michael
