Scott, I've attached the test case and the schema file (Sql Server 2000).
To recap the problem I see is: BarLocal bar = barHome.create(); FooLocal foo = fooHome.create(bar); foo.getBar(); // This works fine bar.getFoos(); // This returns an empty collection If I insert a finder call after the creates then the test works correctly - bar.getFoos returns a collection containing one element (foo). This is because the finder forces a sync with the database. The code should build easily enough (uses ant build scripts), anything you need to modify should be in cmrtest-config.xml. The testcase builds 2 files to deploy: CmrTest/build/ejb/target/cmrtest-ejb.jar - which contains the entities & session. CmrTest/build/service/jboss3/target/cmrtest-service-jboss3.sar - This is a mbean service (it was faster than writing a cactus testcase) used to run the test case. Deploy the cmrtest-ejb.jar. Then deploy the cmrtest-service-jboss3.sar. Go to the JMX console and start the service (it's listed as "service=cmrtest"). The service has two test methods, "testWithFinder" and "testWithoutFinder". The test cases should have the same output - and for Alex's setup they do. However for me the testWithoutFinder case always fails - it gets an empty collection back. I'm going to try this on a clean setup but it would be great if others could test this. thanks, gavin > -----Original Message----- > From: Scott M Stark [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 30, 2003 4:26 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] CMR Problem in 3.2.2RC2 > > > Post instructions for the testcase so others can try it out. > > -- > xxxxxxxxxxxxxxxxxxxxxxxx > Scott Stark > Chief Technology Officer > JBoss Group, LLC > xxxxxxxxxxxxxxxxxxxxxxxx > > Gavin Matthews wrote: > > > Alex, > > Damn wierd - this test case fails everytime for me. This > most likely means > > it's an environmental issue, a config problem or some > really dumb user > > error. Do you know of any config issue that could cause my problem? > > > > I'm running against the released 3.2.2RC2 Jetty code base. > Did you test > > against RC2 or the tip of the branch - have there been any > post-RC2 checkins > > that could possibly affect this behaviour? > > > > Also to rule out any JDBC driver weirdness I've tried it > with the Sprinta > > driver (our in-house default) and also the microsoft MSSQL > JDBC driver. The > > behaviour is the same for both. Which driver did you use > for the test? > > > > Which version of the JDK are you using (I'm using > JDK_1.4.1_01), could it > > cause this issue? > > > > I'd really appreciate any pointers on possible config > settings that could > > possibly cause the behaviour I'm seeing. For now I'm going > to move this > > setup to a clean machine and start over (just to rule out > any environmental > > issues), and I'll let you know how it goes. > > > > thanks, > > gavin > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet _072303_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
CmrTest.zip
Description: Binary data
testSchema.sql
Description: Binary data