This one time, at band camp, Barley said:

B>In my application, I need to marshall the same type of object to two
B>different sets of tables. I do this over two separate server requests, and I
B>create a separate JDO object each time. My plan was to have two mapping
B>files, and two configuration files, each with a different set of tables and
B>properties to marshall.
B>
B>The problem is that in the second request, using a newly created JDO that I
B>call setConfiguration on and point to an entirely different config file, it
B>still uses the mapping and configuration from the first JDO object created.
B>
B>I saw a post from Bruce Snyder addressing a similar issue in this thread:
B>
B>http://hypermail.linklord.com/castor-dev/2003/Dec/2156.html
B>
B>But I am unable to configure more than one <database/> element in my config
B>file because if you have more than one root element, it is not a well-formed
B>XML file. Is there any way to switch to a different mapping/config after
B>loading one in JDO?

Gregg,

This is very dependent upon the version of Castor that you're using.
While creating this example for Emir, I discovered a bug that must
be fixed before this funtionality will be supported again. This bug
exists in version 0.9.5.3 and CVS. If you're using a version previous
to 0.9.5.3, I'd be happy to send you the example. But if you're
using this version, the bug must be fixed before it will work again.

My apologies for not following up on the list with this. We're
actually in the process of fixing this problem in CVS.

Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to