Your problem indeed points to an inconsistency in Cayenne in using
bootstrapped ClassLoader - DataContext uses it, while ObjectId does
not. I just fixed this and uploaded a patched 1.0.* version to
preview.tar.gz . Let me know if this works for you.
Still there is something strange with your environment, and I can't
really tell what it is without having access to it. So is this a
standalone app, or a J2EE container?
> In my configuration I use the PoolManager, to set up the connection
> because the user of my app should be able to define them.
This part is likely not related to the problems above.
> I do not found a
> better way and so I hope it is the right one. And in my configuratin
> session has there own DataContext. Here my configuration:
Your code for changing connection info look OK too me. It will work as
long as you know the implications - namely, that the DataSource you are
configuring in the code is *shared* by all users who obtain their
DataContexts via the same instance of DataDomain.
This archive was generated by hypermail 2.0.0 : Wed Feb 11 2004 - 13:37:50 EST