RE: [JBoss-user] cmr bug in 3.2.4RC1?

2004-03-22 Thread Heinz-Dieter Conradi
On Fri, 19 Mar 2004, Alexey Loubyansky wrote: > This XDoclet results in 1:m with relation table mapping (on my machine). you are of course right - i have even written it in the (elided) javadoc of this method ;-) > And it is in fact broken at the moment. > True m:n works fine for me. > Fixed

RE: [JBoss-user] cmr bug in 3.2.4RC1?

2004-03-19 Thread Alexey Loubyansky
> This XDoclet results in 1:m with relation table mapping (on > my machine). > And it is in fact broken at the moment. Fixed in 3.2.4RC2 and 4.0.0DR4. --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by

RE: [JBoss-user] cmr bug in 3.2.4RC1?

2004-03-19 Thread Alexey Loubyansky
remove.table}" */ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Heinz-Dieter Conradi > Sent: Thursday, March 18, 2004 11:22 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] cmr bug in 3.2.4RC1? > > wh

[JBoss-user] cmr bug in 3.2.4RC1?

2004-03-18 Thread Heinz-Dieter Conradi
when updating form jboss-3.2.3 to jboss-3.2.4RC1 i noticed that one of my JUnit tests failed. the test is about a m-n relation which is managed by a relation table. looking at the debugging output it appears that after the setter method for the set no insert method is called. this is what was i

[JBoss-user] [CMR] NullPointerException when compiling EJB-QL query (many-to-one unidirectional relationship)

2004-02-10 Thread ll
I have a unidirectional many-to-one relationship between FleaEJB (many) and DogEJB (one). At least I think that's correct: each flea can refer to only one dog, but many fleas can refer to the same dog. I want to find all fleas that refer to a given dog, but I get a NullPointerException from

RE: [JBoss-user] CMR fields and sorting?

2004-01-05 Thread Alexey Loubyansky
There is no way at the moment to tell JBoss to sort CMR collections. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Poppe, Troy > Sent: Monday, December 29, 2003 11:03 PM > To: Jboss User (E-mail) > Subject: [JBoss-user] C

RE: [JBoss-user] CMR fields and sorting?

2004-01-05 Thread Rod Macpherson
Collection to sort them using the natural order or your own comparator. -Original Message- From: Poppe, Troy [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:03 PM To: Jboss User (E-mail) Subject: [JBoss-user] CMR fields and sorting? I am using XDoclet to generate EJBs that have

[JBoss-user] CMR fields and sorting?

2003-12-29 Thread Poppe, Troy
I am using XDoclet to generate EJBs that have some CMR fields. I'm using the XDoclet VO's as well. I'm curious if anyone knows of a way to sort the CMR field given some Comparator class. Not sure if there is a way to do this with JBoss during the construction of the EJB object, or with XDoclet,

Re: [JBoss-user] CMR/CMP question

2003-12-17 Thread Alexey Loubyansky
This should work. Gary S. Cuozzo wrote: I have a many-many CMR (table mapped of course) between 2 entities and would like to add some extra information that further describes the relationship. I was thinking of just adding the desired fields to the table that maps the CMR and creating a CMP entit

[JBoss-user] CMR/CMP question

2003-12-17 Thread Gary S. Cuozzo
I have a many-many CMR (table mapped of course) between 2 entities and would like to add some extra information that further describes the relationship. I was thinking of just adding the desired fields to the table that maps the CMR and creating a CMP entity to get/set the fields. In the applicat

RE: [JBoss-user] CMR problems -- Newbie

2003-11-08 Thread Stephane Nicoll
[mailto:[EMAIL PROTECTED] Sent: Fri 11/7/2003 23:47 To: [EMAIL PROTECTED] Cc: Subject:[JBoss-user] CMR problems -- Newbie I am trying to get started with EJB on JBoss, particularly creating container-managed EJBs. I am using JBoss 3.2.2 and MySQL on the backend. I have two simple

[JBoss-user] CMR problems -- Newbie

2003-11-07 Thread Steven Nakhla
I am trying to get started with EJB on JBoss, particularly creating container-managed EJBs.  I am using JBoss 3.2.2 and MySQL on the backend.  I have two simple beans, Employee and Address.  I would like to establish a CMR between the two so that an Employee bean can call the function setAddress(Ad

Re: [JBoss-user] cmr question

2003-09-30 Thread Alexey Loubyansky
If you are going to use foreign key on entityA, then entityB can have many entityA (and you need to use @jboss.relation). If you really want entityA to have many entityB (according to CMR get/set), foreign key should be on the entityB side. alex Ed Storm wrote: Sorry if this question seems a b

[JBoss-user] cmr question

2003-09-29 Thread Ed Storm
Sorry if this question seems a bit silly. I am having trouble setting a cmr between two entities in the way I would like. This is what I am looking at: EntityA Pk-field: entityAID, an int. And other data fields EntityB:ata Pk-field: entityBId an int Pk-field: seque

[JBoss-user] CMR with 1-N with relation-table problem

2003-09-05 Thread Joachim \(PROGS\)
I have a CMR relation defined as follows (using xdoclet) /** * @ejb.interface-method * @ejb.relation * name="WeightGroup-Weight" * role-name="WeightGroup-Weight-table" * target-ejb="DMWeightEJB" * target-role-name="WeightGroup-Weight-field"

Re: [JBoss-user] CMR with Xdoclet and Jboss

2003-09-03 Thread harm
ategoryLocal getCategory(); /** * @ejb.interface-method * @param category */ public abstract void setCategory(CategoryLocal category); With this example you should be able to achieve what you desire. Good luck! Cheers, Harm de Laat Informatiefabriek The Netherlands "Darren Hartfor

[JBoss-user] CMR with Xdoclet and Jboss

2003-09-02 Thread Darren Hartford
Hey all, 3 days latertime to ask the list :P I have an existing 1:N table relationship between table Case and Schedule. Now, the pk for Case is 'caseId' and for Schedule it is 'caseId_scheduleIncrement' (created from two other fields 'caseId_fk' and 'scheduleIncrement', old process that must

Re: [JBoss-user] CMR create fails for many side

2003-08-14 Thread Alexey Loubyansky
Hello Matthew, you defined two primary keys for each entity: one is unknown and the other one is "known". You can't do it. Get rid of one of them. To let the "known" key be generated just mark it as auto-increment. Note, entity-command declaration is needed in both cases. alex Monday, August 11,

[JBoss-user] CMR create fails for many side

2003-08-14 Thread Hanson, Matthew
Hi, jboss 3.2.1 CMP2.0 with integrated hsqldb and code generation by xdoclet 1.2b3-dev I am having some trouble writing a many side entity bean within CMR to my datasource (hsqldb). I use xdoclet to generate much of the source and deployment descriptors. I am able to create the one side, which

Re: [JBoss-user] CMR remove results in UPDATE? (which fails because of NOT NULL c onstraint)

2003-08-02 Thread Alexey Loubyansky
Hello Troy, by default, JBoss follows the spec strictly. By the spec, before entity instance is removed physically, all the relationships the instance participates in must be destroyed. You can treat it differently. But there are two things: destroying relationships in object model and in the data

[JBoss-user] CMR remove results in UPDATE? (which fails because of NOT NULLc onstraint)

2003-08-01 Thread Poppe, Troy
Hello, I have defined a bi-directional one-to-many CMR between two EJBs, PerformancePlan and AssignedPerformanceElement. In my database, the FK field (PerformancePlanID) in AssignedPerformanceElement is defined as NOT NULLable. In my code, I am trying to remove an AssignedPerformanceElement fro

RE: Re[6]: [JBoss-user] CMR Problem in 3.2.2RC2

2003-08-01 Thread Gavin Matthews
, 2003 5:02 AM To: '[EMAIL PROTECTED]' Subject: Re[6]: [JBoss-user] CMR Problem in 3.2.2RC2 Hello Gavin, my setup: OS: Win2000 JDK: Sun 1.3.1_05/1.4.1_02 JBoss: 3.2.2RC2/RC3 JDBC: Microsoft SQL Server 2000 Driver for JDBC Service Pack 1 Version 2.2.0029 December 2002

Re[6]: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-31 Thread Alexey Loubyansky
M> gavin >> -Original Message- >> From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, July 30, 2003 4:35 AM >> To: '[EMAIL PROTECTED]' >> Subject: Re[4]: [JBoss-user] CMR Problem in 3.2.2RC2 >> >> >> Hello Gav

RE: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-30 Thread Gavin Matthews
tt 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. > > -- > > Scott

Re: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-30 Thread Scott M Stark
Post instructions for the testcase so others can try it out. -- Scott Stark Chief Technology Officer JBoss Group, LLC Gavin Matthews wrote: Alex, Damn wierd - this test case fails everytime for me. This most likely means it's an environmental iss

RE: Re[4]: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-30 Thread Gavin Matthews
only > GM> difference is that in the middle of testWithFinder a > finder is called which > GM> causes a db sync. testWithFinder behaves as expected > testWithoutFinder is > GM> the bug I'm seeing. > > GM> Let me know if I can provide anything other info or if > you

Re[4]: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-30 Thread Alexey Loubyansky
testWithFinder behaves as expected testWithoutFinder is GM> the bug I'm seeing. GM> Let me know if I can provide anything other info or if you've problems with GM> the test case. GM> gavin >> -Original Message----- >> From: Alexey Loubyansky [mailto:[EMAIL

RE: Re[2]: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-29 Thread Gavin Matthews
nal Message- > From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 12:23 AM > To: '[EMAIL PROTECTED]' > Subject: Re[2]: [JBoss-user] CMR Problem in 3.2.2RC2 > > > Hello Gavin, > > can you provide a testcase? Previously, you

Re[2]: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-29 Thread Alexey Loubyansky
> gavin >> -Original Message- >> From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] >> Sent: Friday, July 25, 2003 4:30 AM >> To: Gavin Matthews >> Subject: Re: [JBoss-user] CMR Problem in 3.2.2RC2 >> >> >> Hello Gavin, >> >

RE: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-28 Thread Gavin Matthews
, 2003 4:30 AM > To: Gavin Matthews > Subject: Re: [JBoss-user] CMR Problem in 3.2.2RC2 > > > Hello Gavin, > > I am sorry, it works for me! I used your source files, MS SQL Server > 2000 and your testSchema.sql. > > Anyway, I have some remarks. You are using unknown p

RE: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-28 Thread Gavin Matthews
AM > To: Gavin Matthews > Subject: Re: [JBoss-user] CMR Problem in 3.2.2RC2 > > > Hello Gavin, > > I am sorry, it works for me! I used your source files, MS SQL Server > 2000 and your testSchema.sql. > > Anyway, I have some remarks. You are using unknown pk with name id,

Re: [JBoss-user] CMR Problem in 3.2.2RC2

2003-07-25 Thread Alexey Loubyansky
Hello Gavin, I am sorry, it works for me! I used your source files, MS SQL Server 2000 and your testSchema.sql. Anyway, I have some remarks. You are using unknown pk with name id, while there is a CMP field id. You should not do it. If you want a "known" pk and use a pk generation command, then j

[JBoss-user] CMR Problem in 3.2.2RC2

2003-07-24 Thread Gavin Matthews
Hi, I posted this to the group a couple of weeks ago when trying to get 3.2.2RC1 working. Alex had a look at it and figured it was fixed for RC2. As RC2 was only a couple of weeks away I decided it'd be easier for me to wait for RC2 than build it, my mistake, I've just grabbed RC2 - it's still the

RE: [JBoss-user] CMR, cascade-delete & not-null

2003-07-12 Thread Gavin Matthews
, 2003 2:38 AM > To: Gavin Matthews > Subject: Re: [JBoss-user] CMR, cascade-delete & not-null > > > Hello Gavin, > > you need to set sync-on-commit-only to true. > > > Custom container > true > > alex > > Saturday, Jul

Re: [JBoss-user] CMR, cascade-delete & not-null

2003-07-12 Thread Alexey Loubyansky
Hello Gavin, you need to set sync-on-commit-only to true. Custom container true alex Saturday, July 12, 2003, 12:42:47 AM, Gavin Matthews wrote: GM> Hi, GM> I have a database table which has a not-null foreign key. At the moment I GM> can't get cascade-delete to work

[JBoss-user] CMR, cascade-delete & not-null

2003-07-11 Thread Gavin Matthews
Hi, I have a database table which has a not-null foreign key. At the moment I can't get cascade-delete to work with not-null foreign keys, JBoss is trying to update the foreign key to null. I'm using JBoss 3.2.2RC1 and I just want to confirm if this is the expected behaviour or a bug? Would it b

Re: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mappedto primary key columns ...

2003-07-07 Thread Christofer Dutz
Alexey Loubyansky wrote: Hello Chris, I just enabled overriding PK with FK if they are equal. ENJOY!!! ;) YOU ARE MY HERO ... I'll try it as soon as possible :) Thanx, chris alex Monday, July 07, 2003, 4:15:30 PM, Christofer Dutz wrote: CD> Alexey Loubyansky wrote:

Re[2]: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mapped to primary key columns ...

2003-07-07 Thread Alexey Loubyansky
Hello Chris, I just enabled overriding PK with FK if they are equal. ENJOY!!! ;) alex Monday, July 07, 2003, 4:15:30 PM, Christofer Dutz wrote: CD> Alexey Loubyansky wrote: >>Hello Christofer, >> >>Monday, July 07, 2003, 11:58:43 AM, Christofer Dutz wrote: >> >>CD> Hi, >> >>CD> I am getting t

Re[2]: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mapped to primary key columns ...

2003-07-07 Thread Alexey Loubyansky
Ok, thanks. I'll do it soon and let you know. alex Monday, July 07, 2003, 4:15:30 PM, Christofer Dutz wrote: CD> Alexey Loubyansky wrote: >>Hello Christofer, >> >>Monday, July 07, 2003, 11:58:43 AM, Christofer Dutz wrote: >> >>CD> Hi, >> >>CD> I am getting these errors when mirgrating the SPECj

Re: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mappedto primary key columns ...

2003-07-07 Thread Christofer Dutz
Alexey Loubyansky wrote: Hello Christofer, Monday, July 07, 2003, 11:58:43 AM, Christofer Dutz wrote: CD> Hi, CD> I am getting these errors when mirgrating the SPECjAppServer from BeaWeblogic to CD> JBoss. I wrote a message about this problem a few months ago. Someone told me CD> that he opened

Re: [JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mapped to primary key columns ...

2003-07-07 Thread Alexey Loubyansky
Hello Christofer, Monday, July 07, 2003, 11:58:43 AM, Christofer Dutz wrote: CD> Hi, CD> I am getting these errors when mirgrating the SPECjAppServer from BeaWeblogic to CD> JBoss. I wrote a message about this problem a few months ago. Someone told me CD> that he opened a bug-report and I had a

[JBoss-user] CMR filed XYZ has _ALL_ foreign kex fields mapped to primary key columns ...

2003-07-07 Thread Christofer Dutz
Hi, I am getting these errors when mirgrating the SPECjAppServer from BeaWeblogic to JBoss. I wrote a message about this problem a few months ago. Someone told me that he opened a bug-report and I had a look at it. Unfortunately nothing has changed. JBoss still complaines (JBoss-3.2.2RC1) about

[JBoss-user] CMR Problem in 3.2.2?

2003-07-03 Thread Gavin Matthews
Hi, I posted yesterday and last week about a problem I was having with CMR when I upgraded from 3.2.0 to 3.2.2. I've done more investigation and I don't think my previous mails were entirely accurate (or very clear) so let me start over. The Problem: I'm experiencing NPE in our app because the

Re: [JBoss-user] CMR relationship not being created........sometimes

2003-06-28 Thread Alexey Loubyansky
Hello Gavin, please, provide more info (code snippets) on how the code from UI differs from testcases. I'll look at it. Thanks, alex Saturday, June 28, 2003, 6:57:23 AM, Gavin Matthews wrote: GM> All, GM> This is a long shot and pretty sparse on detail but just incase someones GM> come across

[JBoss-user] CMR relationship not being created........sometimes

2003-06-27 Thread Gavin Matthews
All, This is a long shot and pretty sparse on detail but just incase someones come across this before I'm upgrading from 3.2.0 to 3.2.2RC1 but I'm now seeing a strange CMR problem where by the foreign-key is not getting populated (sometimes). A quick description of the senario, this is a ma

Re: [JBoss-user] CMR Problem (Solved)

2003-06-26 Thread Jason Calabrese
I solved the problem. I just had to add target-multiple="yes" to the XDoclet @ejb.relation tag for the 1:1 relation. /** * @ejb.relation * name="object-has-valueClass" * role-name="object-role" * target-ejb="Con

Re: [JBoss-user] CMR exception (bug?)

2003-06-26 Thread Louis Leung
Also, the database schema and mapping in jbosscmp-jdbc.xml are congruent. I've included both the sql for the database schema and the jbosscmp-jdbc.xml. Louis Leung wrote: > I'm trying to run PurchaseOrder with 2 Local Enitities PurchaseOrder & LineItems, > with a 1:N relationship between the

Re[2]: [JBoss-user] CMR Problem

2003-06-26 Thread Alexey Loubyansky
Please, provide a stacktrace for javax.ejb.EJBException: Data contains multiple values, but this cmr field is single valued And also make sure you are not assigning Collection to a single valued CMR field and the query loading the CMR field returns only one row. alex Thursday, June 26, 2003, 5:5

Re: [JBoss-user] CMR Problem

2003-06-26 Thread Jason Calabrese
Alexey, Thanks for the suggestion, but it didn't solve the problem. Any other ideas? Jason On Wednesday 25 June 2003 11:19 pm, Alexey Loubyansky wrote: > Hello Jason, > > try to remove cascade-delete for one-to-one. By the spec, it is > allowed only for many side. > > alex > > Thursday, June 26

Re: [JBoss-user] CMR Problem

2003-06-25 Thread Alexey Loubyansky
Hello Jason, try to remove cascade-delete for one-to-one. By the spec, it is allowed only for many side. alex Thursday, June 26, 2003, 8:33:08 AM, Jason Calabrese wrote: JC> I'm having a weird CMR problem with 3.2.0. JC> I have a bean that a has 2 CMR fields that both target the same bean with

[JBoss-user] CMR Problem

2003-06-25 Thread Jason Calabrese
I'm having a weird CMR problem with 3.2.0. I have a bean that a has 2 CMR fields that both target the same bean with different pk's. One of the CMR fields is a 1:1 relation and the other is the single side of a 1:M relation. The CMR fields can be read fine, but cause problems for ejbCreate. T

Re: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Louis Leung
I'm trying to run PurchaseOrder with 2 Local Enitities PurchaseOrder & LineItems, with a 1:N relationship between them. LineItem Entity has a CMP field (masterOrder_orderId) which is part of primary key and is also maps the masterOrder relationship with PurchaseOrder. Alexey Loubyansky wrote:

Re[2]: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Alexey Loubyansky
Hello Louis, you mean foreign key field mapped to primary key? yes, it is supported. Make sure the database schema and mapping in jbosscmp-jdbc.xml are congruent. alex Wednesday, June 25, 2003, 8:48:42 PM, Louis Leung wrote: LL> Thanks Alex for your help. The tables are not created by JBossCMP

Re: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Louis Leung
Thanks Alex for your help. The tables are not created by JBossCMP. The strange thing is this exception only occurs when the primary key is composed of a foreign key. Would you know if this is supported in JBoss ? Alexey Loubyansky wrote: > Hello Louis, > > the exception is thrown from crea

Re: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Alexey Loubyansky
Hello Louis, the exception is thrown from create method. It is the result of checking whether the instance already exists. It selects primary key columns. Not foreign key. Does JBossCMP create tables in the db? Check the primary key configuration. alex Wednesday, June 25, 2003, 2:26:32 AM, Louis

[JBoss-user] CMR exception (bug?)

2003-06-24 Thread Louis Leung
Hi all, My application has a 1 to many CMR (i.e. one being a purchase order , and many being line items). I don't think i've specified the column mapping for this relationship wrong. JBoss should be firing "Select MASTERORDER ..." sql when retreiving info about this relation. But instead, it f

RE: [JBoss-user] CMR+EJBQL finder generates invalid SQL

2003-06-10 Thread Martin Vilcans
8 AM > To: Martin Vilcans > Subject: Re: [JBoss-user] CMR+EJBQL finder generates invalid SQL > > > Hello Martin, > > please, submit a bug report on it with all this info. > If you could also provide a testcase that reproduces this problem that > would be great. > >

Re: [JBoss-user] CMR and caching

2003-06-06 Thread Lawrence Mount
My experience is that using commit option A or D and cmr speeds up these processes significantly once the caching kicks in. Rafal Kedziorski wrote: > hi, > > at this time we are not using CMR and I have a small question. whe have > this three tables: > > tree structure: > > CREATE TABLE "category_

[JBoss-user] CMR and caching

2003-06-06 Thread Rafal Kedziorski
hi, at this time we are not using CMR and I have a small question. whe have this three tables: tree structure: CREATE TABLE "category_tree" ( "category_tree_id" BIGINT NOT NULL, -- (PK) "parent_id"BIGINT, "mandant_id" BIGINT NOT NULL, -- (FK) "position"

RE: [JBoss-user] CMR+EJBQL finder generates invalid SQL

2003-06-05 Thread Mark.Gargan
GangsterEJB organization *** -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexey Loubyansky Sent: 05 June 2003 09:48 To: Martin Vilcans Subject: Re: [JBoss-us

Re: [JBoss-user] CMR+EJBQL finder generates invalid SQL

2003-06-05 Thread Alexey Loubyansky
Hello Martin, please, submit a bug report on it with all this info. If you could also provide a testcase that reproduces this problem that would be great. Thank you, alex Wednesday, June 04, 2003, 6:21:49 PM, Martin Vilcans wrote: MV> I'm trying to create an entity bean (Score) that has a CMR r

[JBoss-user] CMR+EJBQL finder generates invalid SQL

2003-06-05 Thread Martin Vilcans
I'm trying to create an entity bean (Score) that has a CMR relation to another bean (Celebrity), where one Celebrity can have many scores (1:M). Also, the Score bean has a finder with the signature Collection findByDay(int week, int day). JBoss' implementation of this method creates invalid SQL, as

Re: [JBoss-user] CMR keeps using java:/DefaultDS?

2003-04-04 Thread Alex Loubyansky
Hello Billy, it should be fixed in current CVS version for all branches. alex Friday, April 04, 2003, 10:56:39 PM, you wrote: BR> Hi All, BR> I have an Entity EJB deployed to JBoss-3.0.6 that has a single CMR BR> field. In my jbosscmp-jdbc.xml file, I have the datasource and BR> datasource-

Re: [JBoss-user] CMR keeps using java:/DefaultDS?

2003-04-04 Thread Richard Stack
Have you put oracle-ds.xml (version 3.2) or oracle-service.xml (previous versions) in your deploy directory? Have you altered your conf\login-conf.xml file? Richard Billy Rutledge wrote: > > Hi All, > > I have an Entity EJB deployed to JBoss-3.0.6 that has a single CMR > field. In my jbosscmp

[JBoss-user] CMR keeps using java:/DefaultDS?

2003-04-04 Thread Billy Rutledge
Hi All, I have an Entity EJB deployed to JBoss-3.0.6 that has a single CMR field. In my jbosscmp-jdbc.xml file, I have the datasource and datasource-mapping attribs set to use a datasource named "java:/OracleDS". Here are the relevant sections: ... java:/OracleDS Oracle9i

Re: [JBoss-user] CMR Error under load

2003-04-04 Thread Stephen Coy
It's now checked in to Branch_3_2. ./build.sh -Dtest=org.jboss.test.cmp2.cmrstress.CMRStressTestCase one-test Disregard my earlier comment about the getters on the child bean. Steve Coy On Friday, April 4, 2003, at 02:00 AM, Dain Sundstrom wrote: What is the name of the test case and are you

Re: [JBoss-user] CMR Error under load

2003-04-04 Thread Andrew May
Unfortunately without the read-only tags our application performs too slowly to be usable under load. We use the CMP Entities for authentication to our site, where every user gets the guest identity, and many different users may share the same institutional identity. So if there's a lot of authe

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Stephen Coy
Sourceforge CVS was very slow last night, so I did not get much done. I don't know about a solution, but I will try and diagnose it. At the moment, it looks like there is a problem if the child bean's getters are marked read-only, even if the parent bean's are not. Anyway, hopefully (if the sou

Re: [JBoss-user] CMR question: r-table-mapping, with existing tables

2003-04-03 Thread Bill Curtis
Hi Alex. Thanks for the info. In case anyone else runs into a problem like this: I have created a view which selects from the mapping and data tables, to create a more natural mapping (parent oid to child oid). My now uses this view. The CM relationship works fine. I'm slightly concerned abou

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Dain Sundstrom
What is the name of the test case and are you working on a solution? -dain On Thursday, April 3, 2003, at 04:22 AM, Stephen Coy wrote: I'll add the testcase to Branch_3_0 as well. We've never experienced this problem, but have only operated under 3.0.2, 3.0.4 and 3.0.6. Our application (over)

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Dain Sundstrom
I think the message is remove the read-only tags and you will not get the errors. -dain On Thursday, April 3, 2003, at 03:03 AM, Andrew May wrote: My test case fails on 3.0.3 so it's not just a problem with 3.2.0. So for us that means we can't go live with either :( - unless we can find a sui

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Stephen Coy
I'll add the testcase to Branch_3_0 as well. We've never experienced this problem, but have only operated under 3.0.2, 3.0.4 and 3.0.6. Our application (over)uses lots of CMR and we use those read-only tags everywhere too. Steve Coy On Thursday, April 3, 2003, at 07:03 PM, Andrew May wrote:

Re: [JBoss-user] CMR Error under load

2003-04-03 Thread Andrew May
My test case fails on 3.0.3 so it's not just a problem with 3.2.0. So for us that means we can't go live with either :( - unless we can find a suitable workaround. Andrew Stephen Coy wrote: At the moment, we have a regression failure from 3.0.x to 3.2.0, because it "works" fine there. I say it

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
At the moment, we have a regression failure from 3.0.x to 3.2.0, because it "works" fine there. I say it "works" because it doesn't fail, which is not the same thing as behaving correctly. So, we need to decide what the appropriate behaviour will be for 3.2 and make it work properly. I will

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Dain Sundstrom
I doubt that a CMR will work with the read-only flag. The problem is a read-only specifically does not associate the transaction with the invocation and does not enlist the entity in the tx synchronization. A CMR collection is dependent on a transaction and having tx synchronization. I b

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
Ah ha! It needs those "read-only" tags in jboss.xml in order to fail. Previously, I had explicitly specified that "getChildren" was read-only. It needs to be "get*". My test is failing now. Steve Coy On Thursday, April 3, 2003, at 01:30 AM, Andrew May wrote: I've tried to do a bit of inves

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
I can't get this test to fail on my Mac with either Hypersonic or Oracle. This is with "Release ID: JBoss [WonderLand] 3.2.0RC5 (build: CVSTag=Branch_3_2 date=200303312311)". Tomorrow night I'll move it onto my linux box and see what happens. It needs a little cleaning up before I check it in

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Andrew May
I've tried to do a bit of investigation of my own. I'm still trying to get my head around the code, but this is what I think is going on. The exception: java.lang.IllegalStateException: The iterator of a CMR collection may only be used within the transction in which it was created at o

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
This is outside the CMP spec, so legality does not enter into it. What is more interesting is what "read-only" means in the context of a CMR getter that returns a Collection. My test program happily lets me update the returned collection even when the getter is marked read-only. Steve Coy On

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Davide Pozza
Hi, On my application (under JBOSS 3.2RC5) I have the same problem and I've found that happens only when the CMR getter methods (from which I obtain the iterators...) are set as "read-only" on jboss.xml. So, in my opinion, the main question is: Is it legal to set a CMR getter method as read-only

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
I'm currently incorporating the essence of your test case into the formal JBoss 3.2 test suite. With luck, I'll get it in this evening. And you're right btw, there's nothing wrong with your test case spec wise. Steve Coy On Wednesday, April 2, 2003, at 07:35 PM, Andrew May wrote: OK, from th

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Stephen Coy
[ jboss-Bugs-705542 ] Errorenous IllegalStateException on CMR-Collection Steve Coy On Wednesday, April 2, 2003, at 07:35 PM, Andrew May wrote: Earlier in the thread Alex wrote that I'm not alone in complaining about this. Is there an existing bug report for this problem that I should add the

Re: [JBoss-user] CMR Error under load

2003-04-02 Thread Andrew May
OK, from the EJB 2.0 spec: 10.3.10.1 Restrictions on remote interfaces The following restrictions apply to the remote interface of an entity bean with container-managed persistence. • The Bean Provider must not expose the get and set methods for container-managed relationship fields or the persi

Re: [JBoss-user] CMR question: r-table-mapping, with existing tables

2003-04-01 Thread Alex Loubyansky
Hello Bill, Tuesday, April 01, 2003, 2:18:37 AM, Bill Curtis wrote: BC> hello... BC> I have an existing table, A, which has a 1..* relationship with itself. BC> This relationship makes us of an existing mapping table, B. BC> I have inherited these tables, and unfortunately cannot alter them.

Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Andrew May
calls the test method. Simone - Original Message - From: "Simone Milani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 1:25 PM Subject: Re: Re[2]: [JBoss-user] CMR Error under load As of yesterday 10 PM GMT. Simone - Original Message -

Re: Re[2]: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
t; <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 1:25 PM Subject: Re: Re[2]: [JBoss-user] CMR Error under load > As of yesterday 10 PM GMT. > > > Simone > - Original Message - > From: "Alex Loubyansky" <[EMAIL PROTECTED]> &

Re: Re[2]: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
As of yesterday 10 PM GMT. Simone - Original Message - From: "Alex Loubyansky" <[EMAIL PROTECTED]> To: "Simone Milani" <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 9:47 AM Subject: Re[2]: [JBoss-user] CMR Error under load > with fresh 3.2.0RC5 fr

Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Andrew May
I've just built RC5 from CVS and I still get the CMR problem. Release ID: JBoss [WonderLand] 3.2.0RC5 (build: CVSTag=Branch_3_2 date=200304010938) Alex Loubyansky wrote: with fresh 3.2.0RC5 from CVS? alex --- This SF.net email is sponsore

Re[2]: [JBoss-user] CMR Error under load

2003-04-01 Thread Alex Loubyansky
OTECTED]> SM> Sent: Tuesday, April 01, 2003 8:40 AM SM> Subject: Re: [JBoss-user] CMR Error under load >> Simone, >> >> I manually inserted a couple of records. e.g.: >> >> INSERT INTO Parent VALUES ('test1'); >> INSERT INTO Child (id, name, va

Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Simone Milani
Hi Andrew, I had the error as well Simone - Original Message - From: "Andrew May" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 8:40 AM Subject: Re: [JBoss-user] CMR Error under load > Simone, > > I manually in

Re: [JBoss-user] CMR Error under load

2003-04-01 Thread Andrew May
rom CVS. Andrew Simone Milani wrote: Hi Andrew, I am trying your test, do you have a script to populate the tables and the parameters for the CMRTestClass? Thanks Simone - Original Message - From: "Andrew May" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monda

Re: [JBoss-user] CMR Error under load

2003-03-31 Thread Simone Milani
Hi Andrew, I am trying your test, do you have a script to populate the tables and the parameters for the CMRTestClass? Thanks Simone - Original Message - From: "Andrew May" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 2:46 PM Subject

[JBoss-user] CMR question: r-table-mapping, with existing tables

2003-03-31 Thread Bill Curtis
hello... I have an existing table, A, which has a 1..* relationship with itself. This relationship makes us of an existing mapping table, B. I have inherited these tables, and unfortunately cannot alter them. Table A has a meaningless PK, called "oid". Table A also has a unique, meaningful col

RE: [JBoss-user] CMR Error under load

2003-03-31 Thread Bill Burke
6 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] CMR Error under load > > > I don't see a RC5 release on sourceforge, so I assume this means > I have to build it from > CVS. I'll give that a go, but as I've never tried it before it > could take me a

RE: Re[2]: [JBoss-user] CMR uses the default datasource in stead of the one specifically specified for the CMP 2.0 EJB entity beans concerned

2003-03-31 Thread Jboss Percy
I will try it, thanks for the information Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Loubyansky Sent: maandag 31 maart 2003 15:02 To: Jboss Percy Subject: Re[2]: [JBoss-user] CMR uses the default datasource in stead of the one

RE: [JBoss-user] CMR uses the default datasource in stead of the one specifically specified for the CMP 2.0 EJB entity beans concerned

2003-03-31 Thread Allan Kamau
release? Is > that build or do I have > to retrieve the sources and build > My own version from a merge? > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Alex > Loubyansky > Sent: maandag 31 maart 2003 13:40 &

Re: [JBoss-user] CMR Error under load

2003-03-31 Thread Andrew May
I don't see a RC5 release on sourceforge, so I assume this means I have to build it from CVS. I'll give that a go, but as I've never tried it before it could take me a while (never actually used CVS I confess) - still it's something I ought to be able to do. If anyone has a chance to run my test

Re[2]: [JBoss-user] CMR Error under load

2003-03-31 Thread Alex Loubyansky
Could you, please, try it on JBoss-3.2.0RC5 which is the current version. I have a testcase that failed in my old 3.2 and passes in current 3.2.0RC5. Please, try it. alex Monday, March 31, 2003, 12:37:32 PM, Andrew May wrote: AM> OK, here's a test case that recreates the problem for me. AM> I'

Re[2]: [JBoss-user] CMR uses the default datasource in stead of the one specifically specified for the CMP 2.0 EJB entity beans concerned

2003-03-31 Thread Alex Loubyansky
on from a merge? JP> -Original Message- JP> From: [EMAIL PROTECTED] JP> [mailto:[EMAIL PROTECTED] On Behalf Of Alex JP> Loubyansky JP> Sent: maandag 31 maart 2003 13:40 JP> To: Jboss Percy JP> Subject: Re: [JBoss-user] CMR uses the default datasource in stead of JP&g

RE: [JBoss-user] CMR uses the default datasource in stead of the one specifically specified for the CMP 2.0 EJB entity beans concerned

2003-03-31 Thread Jboss Percy
merge? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Loubyansky Sent: maandag 31 maart 2003 13:40 To: Jboss Percy Subject: Re: [JBoss-user] CMR uses the default datasource in stead of the one specifically specified for the CMP 2.0 EJB entity beans

  1   2   3   >