RE: [JBoss-user] Persisting arrays using CMP in Entity EJBs

2004-09-23 Thread Alexey Loubyansky
It is certainly possible. Try with defaults and if it doesn't work try different mappings and read the JBossCMP wikis. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allan Kamau Sent: Wednesday, September 22, 2004 2:31 PM To: [EMAIL PROTECTED]

RE: [JBoss-user] Problem with cascade-delete

2004-07-10 Thread Alexey Loubyansky
It maybe because of complex relationships. You would need to post deployment descriptors and describe relationships among real instances. But could you try 3.2.5 first? and batch-cascade-delete? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maykel

RE: [JBoss-user] Ordering CMR results - best practice ?

2004-06-15 Thread Alexey Loubyansky
No, there is not. You should order them yourself. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Richarz Sent: Monday, June 14, 2004 1:52 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Ordering CMR results - best practice ? Hello *,

RE: [JBoss-user] Dirty read with commit option B on JBoss 3.2.0

2004-06-03 Thread Alexey Loubyansky
Did the second transaction found the instance with on-find read-ahead? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maxim Mikhelman Sent: Thursday, June 03, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Dirty read with commit

RE: [JBoss-user] Dirty read with commit option B on JBoss 3.2.0

2004-06-03 Thread Alexey Loubyansky
You need to post the deployment descriptors, logs with SQL statements and relevant details. Please, try our forums. Thanks. alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maxim Mikhelman Sent: Thursday, June 03, 2004 2:15 PM To: JBoss List

RE: [JBoss-user] error compiling ejbql (dynamicQL): EJB-QL statement '';

2004-05-10 Thread Alexey Loubyansky
Looks like for some reason it doesn't think that it is dynamic. It does work for me with DR4. If you put some query in the ejb-ql will it work as dynamic? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?? ? Sent: Sunday, May 09, 2004 12:22 PM To:

RE: [JBoss-user] unknown-pk won't work...

2004-04-03 Thread Alexey Loubyansky
Is this generated by JBossCMP for MySql? I would guess that in fact it is for Hypersonic. In this case you should set pk-constraint to false. Because, Hypersonic does not allow IDENTITY and explicit primary key constraint at the same time. -Original Message- From: [EMAIL PROTECTED]

RE: [JBoss-user] [EJB/JBoss] EJB QL - jboss 3.2.3 -why i can't acess to father id?

2004-03-29 Thread Alexey Loubyansky
User lowercased first characters for field names. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurent MARQUEZ Sent: Monday, March 29, 2004 12:56 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] [EJB/JBoss] EJB QL - jboss 3.2.3 -why i can't

RE: [JBoss-user] problem with finder findAll

2004-03-19 Thread Alexey Loubyansky
It means the none of home interfacescontains findAll. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of benoitSent: Wednesday, March 17, 2004 6:37 PMTo: [EMAIL PROTECTED]Subject: [JBoss-user] problem with finder findAll Hi all, Im trying to insert

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. True m:n works fine for me. Here is an example of unidirectional m:n /** * @ejb.interface-method * @ejb.relation *name=B-C *role-name=B-has-Cs *

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] [Persistence CMP/JBoss] - Re: Problem : CMR field cannot be null

2004-02-13 Thread Alexey Loubyansky
Title: [JBoss-user] [Persistence & CMP/JBoss] - Re: Problem : CMR field cannot be null A field is either a CMP or CMR, not both. CMP fields can be mapped to foreign key columns. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rod MacphersonSent: Friday, February 13, 2004

RE: [JBoss-user] primary key: auto-increment

2004-02-05 Thread Alexey Loubyansky
Is there any way to have incremental primary keys without the explicit usage of sequences? If yes, how? What do you mean by implicit use of sequences? What can I win with a unknown-pk declaration? There is a paragraph in the spec about it called Special case Unknown primary keys. Is there

RE: [JBoss-user] primary key: auto-increment

2004-02-05 Thread Alexey Loubyansky
What do you mean by implicit use of sequences? Is it possible to have an incremental primary key without the usage of sequences? !-- uses key generator to fetch the next key value -- entity-command name=key-generator

RE: [JBoss-user] JBossCPM problems ..

2004-02-04 Thread Alexey Loubyansky
yes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rafal Kedziorski Sent: Wednesday, February 04, 2004 6:20 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBossCPM problems .. hi, I've posted from 2004-01-21 to today three bugs in

RE: [JBoss-user] Are inner joins possible?

2004-02-02 Thread Alexey Loubyansky
Yes, it is possible. Check this http://www.mail-archive.com/[EMAIL PROTECTED]/msg3 9568.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steffen Gransow Sent: Thursday, January 29, 2004 6:21 PM To: [EMAIL PROTECTED] Sourceforge. Net Subject:

RE: [JBoss-user] Problem when query contains international characters

2004-01-28 Thread Alexey Loubyansky
It works fine for me with statically encoded russian text and passed in as a parameter. String name = XXX; // some russian text log.debug(avoka: + home.findByName(name)); log.debug(avoka: + home.select(SELECT OBJECT(o) FROM A AS o WHERE o.name=?1, new Object[]{name})); //

RE: [JBoss-user] ejb-ql problem

2004-01-27 Thread Alexey Loubyansky
Not yet. The spec does not allow to select more than one field. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 5:31 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] ejb-ql problem Hi all, I´m

RE: [JBoss-user] IS (NOT) EMPTY EJBQL supported in JBoss for mysql ?

2004-01-23 Thread Alexey Loubyansky
This is fixed now in JBoss-3.2.4RC1. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephane Nicoll Sent: Friday, January 23, 2004 12:47 PM To: JBoss user (E-mail) Subject: [JBoss-user] IS (NOT) EMPTY EJBQL supported in JBoss for

RE: [JBoss-user] Commit Option A and ejbCreate

2004-01-22 Thread Alexey Loubyansky
Please, submit a bug report and I will look at it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neal Sanche Sent: Thursday, January 22, 2004 12:56 AM To: jboss-user Subject: [JBoss-user] Commit Option A and ejbCreate Hi All, I have

RE: [JBoss-user] information regarding locking policies

2004-01-22 Thread Alexey Loubyansky
In Instance Per Transaction container each transaction gets its own cache of instances, i.e. each one get its own copy of persistent data. And, thus, allows different transactions to access the same persistence data at the same time. -Original Message- From: [EMAIL PROTECTED]

RE: [JBoss-user] How to configure locking mechanism for EnityBeans - optimistic vs pessimistic? In the entire JBoss system?

2004-01-17 Thread Alexey Loubyansky
No, at the moment OL is condfigured per entity. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sasidharan, Manoj Sent: Saturday, January 17, 2004 2:00 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] How to configure locking mechanism for

RE: [JBoss-user] How to configure locking mechanism for EnityBeans- optimistic vs pessimistic? In the entire JBoss system?

2004-01-17 Thread Alexey Loubyansky
No, it does not depend on the container configuration anymore (AFAIR since 3.2.2). You could configure OL with pessimistic locking. It does not make sense unless in a cluster. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Brock Sent:

RE: [JBoss-user] JBoss 3.2.3 commit option B or C a lot slower than JBoss 3.2.1

2004-01-17 Thread Alexey Loubyansky
If we didn't check any dirty flag you would not be able to update the data. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boulatian, MisakSent: Saturday, January 17, 2004 2:38 AMTo: [EMAIL PROTECTED]Subject: RE: [JBoss-user] JBoss 3.2.3 commit option B or

RE: [JBoss-user] How to configure locking mechanism for EnityBean s - optimistic vs pessimistic?

2004-01-17 Thread Alexey Loubyansky
The OL and its tests where completely rewritten in 3.2.2. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter LuttrellSent: Saturday, January 17, 2004 2:55 AMTo: [EMAIL PROTECTED]Subject: Re: [JBoss-user] How to configure locking mechanism for EnityBean s

RE: [JBoss-user] Help with JBossQL

2004-01-16 Thread Alexey Loubyansky
It was introduced in 3.2.2. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis Sent: Friday, January 16, 2004 5:32 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Help with JBossQL I have implemented a dynamic query using xdoclet as

RE: [JBoss-user] EnityBeans: Optimistic Locking Help

2004-01-16 Thread Alexey Loubyansky
It is called detachment, i.e. an instance that represents persistent data is read in one transaction, detached from it and then attached to another (updating) transaction. It is not possible in CMP. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [JBoss-user] Knowing when a CMP bean is modified

2004-01-16 Thread Alexey Loubyansky
Lastlycould I ask if u know of a non jboss specific way to know when a CMP Bean is modified?? The spec does not define it, so, the answer is no.

RE: [JBoss-user] CMP: error with cascade delete

2004-01-16 Thread Alexey Loubyansky
It works for me with 3.2.4RC1. I belive my testcase would work for me in 3.2.3 too. Could you provide me with your testcase? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Panagiotis Korros Sent: Friday, January 16, 2004 1:27 PM To: [EMAIL

RE: [JBoss-user] JBoss 3.2.3 commit option B or C a lot slower than JBoss 3.2.1

2004-01-16 Thread Alexey Loubyansky
Why don't you try to run CMP2.0 version of your app on 3.2.1 and see whether it's true. What your experience shows is that CMP1.1 app is faster than CMP2.0. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boulatian, MisakSent: Friday, January 16, 2004 10:22 PMTo:

RE: [JBoss-user] JBoss clustering with commit option B or C too slow

2004-01-15 Thread Alexey Loubyansky
You could use commit option A with optimistic locking. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boulatian, MisakSent: Wednesday, January 14, 2004 7:48 PMTo: [EMAIL PROTECTED]Subject: [JBoss-user] JBoss clustering with commit option B or C too slow

RE: [JBoss-user] Help with JBossQL

2004-01-15 Thread Alexey Loubyansky
JBossQL supports MAX function in SELECT that takes a CMP field as an agrument. Hence, you should use ejbSelect. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis Sent: Wednesday, January 14, 2004 3:56 PM To: [EMAIL PROTECTED] Subject:

RE: [JBoss-user] Problems with deployment of EJB's in Jboss 3.2.3

2004-01-15 Thread Alexey Loubyansky
Did you modify standardjbossXXX.xml files in the conf dir? Make sure entity-command name=default/ is in standardjbosscmp-jdbc.xml -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Lund Sent: Wednesday, January 14, 2004 5:10 PM To: [EMAIL

RE: [JBoss-user] JbossQL SUM (was: [jboss4 and EJB2.1 ejb-ql?])

2004-01-15 Thread Alexey Loubyansky
enlighten me please? It should have been simple... -D --__--__-- Subject: RE: [JBoss-user] RE: jboss4 and EJB2.1 ejb-ql? Date: Mon, 12 Jan 2004 16:25:24 -0600 From: Alexey Loubyansky [EMAIL PROTECTED] You answered the question yourself. ejb.select - method level, jboss.query - class

RE: [JBoss-user] Knowing when a CMP bean is modified

2004-01-15 Thread Alexey Loubyansky
There is an optimistic locking strategy that could be what you are intersted in. It is configured in jbosscmp-jdbc.xml optimistic-locking timestamp-column/ field-nameversion/field-name column-nameol_timestamp/column-name jdbc-typeTIMESTAMP/jdbc-type sql-typeDATETIME/sql-type

RE: [JBoss-user] Defining Load groups with xdoclet

2004-01-12 Thread Alexey Loubyansky
There is * @jboss.load-group name=basic On the class level it declares the load group. On the field level you actually specify which fields comprise the group. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan.O'[EMAIL PROTECTED] Sent:

RE: [JBoss-user] RE: jboss4 and EJB2.1 ejb-ql?

2004-01-12 Thread Alexey Loubyansky
of Jboss. TIA!! -D Subject: RE: [JBoss-user] jboss4 and EJB2.1 ejb-ql? Date: Thu, 8 Jan 2004 09:03:55 -0600 From: Alexey Loubyansky [EMAIL PROTECTED] Check these change notes. EJB2.1 is not yet supported but you can do it in JBossQL in 3.2 and HEAD. [ 794199 ] Functions in SELECT clause

RE: AW: [JBoss-user] JBoss 3.2.4 and Oracle9i: SQLException: Invalid conversion requested

2004-01-09 Thread Alexey Loubyansky
As I understand, this is Oracle's new feature that is not backward compatible and resulted in a bug in JBossCMP default type mapping that is fixed now. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of shubhu muttaSent: Friday, January 09, 2004 5:47 AMTo: [EMAIL

RE: [JBoss-user] jboss4 and EJB2.1 ejb-ql?

2004-01-08 Thread Alexey Loubyansky
Check these change notes. EJB2.1 is not yet supported but you can do it in JBossQL in 3.2 and HEAD. [ 794199 ] Functions in SELECT clause http://sourceforge.net/tracker/?func=detailaid=794199group_id=22866at id=381174 [ 815115 ] JBossQL: SUM, AVG, MAX, MIN

RE: [JBoss-user] 1:1 Unidirectional (Aggregate) Relationship Prob lem

2004-01-06 Thread Alexey Loubyansky
it to A. If it references A's primary key, it is a mapping issue. It should work. Does this now make sense? -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 1:56 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] 1:1 Unidirectional (Aggregate

RE: [JBoss-user] key auto-increment in Jboss3.2.2 and MySql

2004-01-06 Thread Alexey Loubyansky
Nothing should be changed in ejb-jar.xml. This is set up in jbosscmp-jdbc.xml. The following field will be auto-incremented: cmp-field field-namemyId/field-name /auto-increment /cmp-field Also the entity which has auto-incremented primary key should specify an entity-command that

RE: [JBoss-user] 1:1 Unidirectional (Aggregate) Relationship Prob lem

2004-01-06 Thread Alexey Loubyansky
The spec does not disallow it and there is a chance that it will be supported in future releases. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hanson, Matthew Sent: Tuesday, January 06, 2004 3:12 PM To: '[EMAIL PROTECTED]' Subject: RE:

RE: [JBoss-user] 1:1 Unidirectional (Aggregate) Relationship Problem

2004-01-05 Thread Alexey Loubyansky
Here is an example for 1:1 unidirectional relationship from B to A: In B: /** * @ejb.relation *name=A-B *role-name=B-has-A *target-ejb=A *target-role-name=A-belongsto-B *target-multiple=false * @jboss.relation *related-pk-field=id *

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] CMR fields and sorting?

RE: [JBoss-user] java.util.Date with Jboss3.2.3

2004-01-05 Thread Alexey Loubyansky
To fix what exactly? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren Hartford Sent: Wednesday, December 24, 2003 7:52 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] java.util.Date with Jboss3.2.3 Hey all, Using CMP and JBoss3.2.3,

RE: [JBoss-user] 1:1 Unidirectional (Aggregate) Relationship Problem

2003-12-30 Thread Alexey Loubyansky
Here is an example for 1:1 unidirectional relationship from B to A: In B: /** * @ejb.relation *name=A-B *role-name=B-has-A *target-ejb=A *target-role-name=A-belongsto-B *target-multiple=false * @jboss.relation *related-pk-field=id *

RE: [JBoss-user] Cannot access EJB with multiple CMR columns

2003-12-24 Thread Alexey Loubyansky
So what is causing the SQLException? Incorrect SQL? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rod Macpherson Sent: Wednesday, December 24, 2003 12:34 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Cannot access EJB with multiple CMR

[JBoss-user] RE: finding a may of getting max value in cmp

2003-12-24 Thread Alexey Loubyansky
JBoss' user mailing list is jboss-user at lists dot sourceforge dot net, not alex at jboss dot org. JBoss-3.2.2 does support MAX() function but in JBossQL, not EJB-QL. And you must use ejbSelect instead of finders. -Original Message- From: netanel weinberg [mailto:[EMAIL PROTECTED]

RE: [JBoss-user] 1:1 Unidirectional (Aggregate) Relationship Problem

2003-12-23 Thread Alexey Loubyansky
It should work fine as it does for me. What JBoss version are you using? Do you have a testcase? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hanson, Matthew Sent: Tuesday, December 23, 2003 5:00 PM To: '[EMAIL PROTECTED]' Subject:

RE: [JBoss-user] 1:1 Unidirectional (Aggregate) Relationship Problem

2003-12-23 Thread Alexey Loubyansky
Because you mapped the foreign key to the primary key field with this: * @jboss.target-relation fk-column=recipe_grain_id * related-pk-field=recipeGrainId Just removed it. --- This SF.net email is sponsored by: IBM Linux

RE: [JBoss-user] JBoss 3.2.4 and Oracle9i: SQLException: Invalid conversion requested

2003-12-23 Thread Alexey Loubyansky
So it means ps.setObject(index, value, jdbcType) does not work with this driver. It is definitely not JBoss' fault. To be sure, you could try the previous JBoss with the new Oracle. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Frank Langelage

Re: [JBoss-user] problem with deploying EJB CMPs

2003-12-21 Thread Alexey Loubyansky
Can you package the failing bean separately and send it to me directly? netanel weinberg wrote: i'm getting that error on deploying: I'm trying to use my EJB CMP and getting this error: ... Depends On Me: org.jboss.deployment.DeploymentException: Couldn't create entity command: ; - nested

Re: [JBoss-user] how to implement inheritance between CMPs

2003-12-18 Thread Alexey Loubyansky
This is the problem on your side, probably. Can you check it with your admins? Also, there are some searchable archives on the net, for example, mail-archive.com. My answer was that there is no element in neither ejb-jar.xml nor jbossXXX.xml that configures inheritance. Your question for me

Re: [JBoss-user] Jboss 3.2.2/EJB-QL with = or =?

2003-12-18 Thread Alexey Loubyansky
Sometimes, there is. Depends on the query. Darren Hartford wrote: Hey all, Is there any reason why Jboss 3.2.2 throws an exception when an EJB-QL statement contains '=' or '='? -D --- This SF.net email is sponsored by: IBM Linux Tutorials.

Re: [JBoss-user] problem with deploying EJB CMPs

2003-12-18 Thread Alexey Loubyansky
and i'm using JBOSS 3.2.2 - Original Message - From: Alexey Loubyansky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 12:00 PM Subject: Re: [JBoss-user] problem with deploying EJB CMPs Have you changed the default entity-command in standardjbosscmp-jdbc.xml

Re: [JBoss-user] Jboss 3.2.2/EJB-QL with = or =?

2003-12-18 Thread Alexey Loubyansky
EJBQL does not allow =/=, for example, for strings, dates. This all works in JBossQL. Darren Hartford wrote: Hey all, Is there any reason why Jboss 3.2.2 throws an exception when an EJB-QL statement contains '=' or '='? -D --- This SF.net

Re: [JBoss-user] MSSQL auto increment command

2003-12-17 Thread Alexey Loubyansky
Is mssql-fetch-key not there? Ramrakhiani, Vikas wrote: Hi, I am looking for class which implements auto increment of PK in MSSQL. I saw that such a class is specified for MySql in standardjbosscmp-jdbc.xml :- !-- this command requires auto-increment element for unknown-pk --

Re: [JBoss-user] problem with deploying EJB CMPs

2003-12-17 Thread Alexey Loubyansky
Have you changed the default entity-command in standardjbosscmp-jdbc.xml or in jbosscmp-jdbc.xml? What JBoss version are you using? netanel weinberg wrote: I'm deploying my jar file with some EJB CMPs and one session bean and getting an error in my last EJB CMP deploying i'm deploying in the

Re: [JBoss-user] MSSQL auto increment command

2003-12-17 Thread Alexey Loubyansky
What is your JBoss version? There is no mssql command in 3.2.0; In 3.2.1 I can see org.jboss.ejb.plugins.cmp.jdbc.mssql.JDBCMsSQLCreateCommand.java but it is not in standardjbosscmp-jdbc.xml. Here are the comments for it: /** * JDBCMsSQLCreateCommand executes an codeINSERT INTO/code SQL

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

Re: [JBoss-user] JBoss 3.2.4 ...

2003-12-15 Thread Alexey Loubyansky
Pozhalusto! Rafal Kedziorski wrote: Privjet Alexey, it's working. thx. Rafal --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn

Re: [JBoss-user] Re: blob field in cmp

2003-12-15 Thread Alexey Loubyansky
in jaws.xml: nameDB2/name mapping java-typejava.lang.Object/java-type jdbc-typeJAVA_OBJECT/jdbc-type sql-typeBLOB(2000)/sql-type /mapping Need I modify it? Regards, Forge Message: 8 Date: Fri, 12 Dec 2003 14:09:04 +0200 From: Alexey Loubyansky

Re: [JBoss-user] problem with EJB-QL

2003-12-15 Thread Alexey Loubyansky
EJBQL is introduced in CMP2.0. It means it won't work with 1.1. jboss.xml and jbosscmp-jdbc.xml are optional. The number of parameters are not limited. netanel weinberg wrote: Hi! my application is deployed w/o any errors. my dtd is : ?xml version=1.0? !DOCTYPE ejb-jar PUBLIC -//Sun

Re: [JBoss-user] Does jboss support cmp inherit?

2003-12-15 Thread Alexey Loubyansky
First of all, what do you mean by iheritance in CMP? forge wrote: Hello, I have three entity beans, UserEB, AdvancedUserEB and AnonymouseUserEB. Both AdvancedUserEB and AnonymouseUserEB inherit from UserEB. I created them in WAS5 and they ran well. Don't they run in JBoss? What is the

Re: [JBoss-user] question about ejb-ql

2003-12-15 Thread Alexey Loubyansky
You can but it is not required. netanel weinberg wrote: When im creating a CMP EJB with ejb-ql, should i define the ejb and/or the ejb-ql methods in the JBOSS's xml files too except for the ejb-jar.xml file? --- This SF.net email is sponsored

Re: [JBoss-user] problem with ejb-ql

2003-12-15 Thread Alexey Loubyansky
Why don't you try with !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd; ? netanel weinberg wrote: I don't know what do about my problem with my ejb-ql finder method! it giving me back a collection

Re: [JBoss-user] problem with ejb-ql

2003-12-15 Thread Alexey Loubyansky
Yes, since you're going to use CMP2.0 netanel weinberg wrote: should i transfer all my classes and set/get methods to be abstract? - Original Message - From: Alexey Loubyansky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 15, 2003 4:38 PM Subject: Re: [JBoss-user

Re: [JBoss-user] problem with ejb-ql

2003-12-15 Thread Alexey Loubyansky
http://java.sun.com/dtd/ejb-jar_2_0.dtd http://java.sun.com/products/ejb/docs.html netanel weinberg wrote: is there any spec. of something like that of ejb-jar.xml for cmp 2.0 so i can look on 'cause i've tried once and JBOSS gave alot of erros about the JDBC factory and something...

[JBoss-user] Re: blob field in cmp

2003-12-15 Thread Alexey Loubyansky
I thought you used jboss.xml. Do you use CMP1.1? What is the exception? PS: please, keep it on jboss-user forge wrote: Hello, Alex I couldn't find jboss in server/default/conf directory, but there is a standardjboss.xml. And I found the following lines in it:

Re: [JBoss-user] Re: Does jboss support cmp inherit?

2003-12-15 Thread Alexey Loubyansky
I can't understand what you are trying to achieve. But there is nothing in ejb-jar.xml that configures inheritance. forge wrote: Thanks. Alex I only don't know how to configure ejb-jar.xml to implement inherit. Can you give me a sample? Regards, Forge

Re: [JBoss-user] automatic primary key generation for CMP entityBeans?

2003-12-13 Thread Alexey Loubyansky
[EMAIL PROTECTED] wrote: The generator I have in mind will increment the values. Where do you plan to store the values? Database? In the interfaces, I cant see some init(startValue) method or something similar. This method should be there and should be called on initializing the generator.

Re: [JBoss-user] RE: How to implement version control using Value Object Pattern in CMP 2.0

2003-12-13 Thread Alexey Loubyansky
Boulatian, Misak wrote: Hi, We have a big problem using EJB 2.0 with jboss. We use Updatable Value Object Pattern (currently, Transfer Object Pattern). This means we have individual get and set methods in entity bean's remote interface and also have setData methods to make changes in entity

Re: [JBoss-user] Sorting Entities

2003-12-13 Thread Alexey Loubyansky
You can fetch entities in a specific order using JBossQL and ORDER BY clause. If you want to merge collections of entities, then you could use java.util.Comparator. Gary S. Cuozzo wrote: I'm interested in sorting a collection of entities that are retrieved using multiple finders. Any

Re: [JBoss-user] Optimistic Locking Across Requests

2003-12-12 Thread Alexey Loubyansky
You could use stateful session bean for beginning/committing transactions and optimistic locking in entity beans. The possible problem is the transaction timeouts. Probably, you would like to use Instance Per Transaction container for this setup. Alternatively, you have to use value objects are

Re: [JBoss-user] problem with EJB-QL

2003-12-12 Thread Alexey Loubyansky
First of all, get your application deployed w/o errors. Perhaps, the DDs do not match their DTDs. What are the stacktraces? netanel weinberg wrote: Hello! i have a web application i built using EJB and i'm trying to make an ejb-ql according to two parameters: query query-method

Re: [JBoss-user] blob field in cmp

2003-12-12 Thread Alexey Loubyansky
It's absolutely ok. You just need to configure the mapping, i.e. jdbc-type and sql-type. Do you specify both yourself or use the defaults? forge wrote: Hello, One of my tables has a blob type column, and I created a byte[] type field in my CMP to map it. But when calling home.create(id),

Re: [JBoss-user] automatic primary key generation for CMP entityBeans?

2003-12-12 Thread Alexey Loubyansky
[EMAIL PROTECTED] wrote: I have seen the UUIDKeyGeneratorFactory, where can I find information about how to write my own factory ? You need to implement two interfaces: org.jboss.ejb.plugins.keygenerator.KeyGeneratorFactory and org.jboss.ejb.plugins.keygenerator.KeyGenerator. Check the

Re: [JBoss-user] finder and two cmr-fields on same table problem

2003-12-12 Thread Alexey Loubyansky
Works for me. How do you configure the relationships? Do you have a testcase? Heinz-Dieter Conradi wrote: hi all, i have just encountered the following problem, and i just don't know if i am doing something really stupid or if i have run into a limitation of the spec/jboss... i have an entity

Re: [JBoss-user] JBoss 3.2.4 ...

2003-12-12 Thread Alexey Loubyansky
I fixed it in Branch_3_2. Now the row-locking-template is used instead of hardcoded FOR UPDATE OF. Please, help me test it, so that you won't be disappointed with the next release. Thanks. Rafal Kedziorski wrote: hi, At 14:49 12.12.2003, you wrote: Sorry, this is my fault. row-locking =

Re: [JBoss-user] JBoss 3.2.4 ...

2003-12-12 Thread Alexey Loubyansky
The fix is already committed. Rafal Kedziorski wrote: At 17:21 12.12.2003, Alexey Loubyansky wrote: Ok. There is one more bug in this regard. It does not work with an empty WHERE clause. I am fixing it. .. o.k. than monday

Re: [JBoss-user] JBoss 3.2.4 ...

2003-12-12 Thread Alexey Loubyansky
Rafal Kedziorski wrote: At 17:30 12.12.2003, Alexey Loubyansky wrote: Yes, I have. I try on monday update or new check out. It's absolutely ok. I will test myself also. There is an issue with ORDER BY. Currently, it is added at the end of the statement, while, at least for MySql it should

Re: [JBoss-user] Commit type question

2003-12-11 Thread Alexey Loubyansky
If a bean/method has a read-only true in jboss.xml it is not participating in synchronizaion when the tx commits and remains in the cache. This issue was reported recently and it seems to me Adrian fixed it. AFAIK, the instance will be evicted from the cache unless it configured option A. The

Re: [JBoss-user] Commit type question

2003-12-11 Thread Alexey Loubyansky
Sorry, editted version of my response... If a bean/method has a read-only true in jboss.xml it is not associated with the transaction and is not participating in synchronizaion when the tx commits and remains in the cache. This issue was reported recently and it seems to me Adrian fixed it.

Re: [JBoss-user] Commit type question

2003-12-11 Thread Alexey Loubyansky
currently using JBoss 3.2.2. Or do I have to configure my beans in some other way in jboss.xml? Thanks, Harm de Laat Informatiefabriek The Netherlands Alexey Loubyansky [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 12/11/2003 02:28 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED

Re: [JBoss-user] automatic primary key generation for CMP entityBeans ?

2003-12-11 Thread Alexey Loubyansky
select max() is not safe. Look at standardjbosscmp-jdbc.xml file for entity-commands for avaliable key generations. [EMAIL PROTECTED] wrote: Hello, everyone I have a Entity Bean with a String as PK. The String consists of the characters [0-9]and[A-Z]. My approach is to get the latest key from

Re: [JBoss-user] database schema error

2003-12-08 Thread Alexey Loubyansky
This is a known issue. No way, at the moment. forge wrote: Hello, everyone I developed a J2EE project by jbuilder9 + jboss 3.2.2, The deployment has succeeded but when I tested, it reported SQL: DB2ADMIN.user undefined name error. The user table has been created but its schema name is

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-07 Thread Alexey Loubyansky
Unfortunately, you can't use this kind of key generation with insert-after-ejb-post-create. [ 784322 ] INSERT after ejbPostCreate http://sourceforge.net/tracker/?func=detailaid=784322group_id=22866atid=381174 By the spec (and current implementation), the primary key should be set in ejbCreate

Re: [JBoss-user] cmp primary key fields

2003-12-04 Thread Alexey Loubyansky
The same way as non primary key fields. Jeremy Rempel wrote: Hi, In jbosscmp-jdbc.xml how do I map primary key fields to a certain database field? I can map the regular fields easily. Thanks, Jeremy --- This SF.net email is sponsored by: IBM

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-04 Thread Alexey Loubyansky
Key generation commands in 3.2.1 are different from those in 3.2.2. In 3.2.2 you should have auto-increment/ for generated fields. Could check whether key generation work for you w/o mapping foreign key fields to the primary key fields? Hanson, Matthew wrote: Hi Just another FYI on the null

Re: [JBoss-user] Beans not cached using A and read-only

2003-12-03 Thread Alexey Loubyansky
Yes, keep the custom container and just try a simple test. Alwyn Schoeman wrote: On Tue, Dec 02, 2003 at 10:02:58PM +0200, Alexey Loubyansky wrote: Sorry, I was inattentive. Of course, it should work w/o read-only in jbosscmp-jdbc.xml. Can you check whether commit option A works at all for you

Re: [JBoss-user] Oracle error

2003-12-03 Thread Alexey Loubyansky
AFAICT, it is either a driver problem or there is a bind variable in the statement which is a reserved word. Could you try with another driver? [EMAIL PROTECTED] wrote: Hi all, I have a CMP entity bean that access to oracle 9i database. When I do the lookup it has no problem, but when I

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Alexey Loubyansky
! Regards, Matt Hanson -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 3:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys By the spec, you may not establish relationships in ejbCreate

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Alexey Loubyansky
The auto incremented/generated field should have auto-increment/ in jbosscmp-jdbc.xml --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Alexey Loubyansky
Is the column in the database was created with IDENTITY attribute? Hanson, Matthew wrote: Hi-- Well, I added the auto-increment tag to jbosscmp-jdbc.xml, and the null primary key exception is still thrown: --- This SF.net email is sponsored

Re: [JBoss-user] Foreign key issues when upgrading to JBoss 3.2.3RC1 (from 3.2.2RC 3)

2003-12-03 Thread Alexey Loubyansky
There was a bug in foreign key handling. When the relationship was modified on one side while the other side was not yet loaded, then when this other side was loaded from the database (already outdated) foreign keys where not properly handled. Perhaps, this could affect your application.

Re: [JBoss-user] Beans not cached using A and read-only

2003-12-02 Thread Alexey Loubyansky
Try with read-only=true in jbosscmp-jdbc.xml. Alwyn Schoeman wrote: Hi, I am using 3.2.2. When I look at the database logs I can see that the database is queried for each access to the Bean. Also the console shows no entries in the cache. I am accessing the Bean from a servlet. Also the bean

Re: [JBoss-user] Beans not cached using A and read-only

2003-12-02 Thread Alexey Loubyansky
Sorry, I was inattentive. Of course, it should work w/o read-only in jbosscmp-jdbc.xml. Can you check whether commit option A works at all for you? Just a simple example. If so, under what config options it breaks? Thanks. Alwyn Schoeman wrote: On Tue, Dec 02, 2003 at 10:11:27AM +0200, Alexey

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-02 Thread Alexey Loubyansky
By the spec, you may not establish relationships in ejbCreate but may in ejbPostCreate. By default, INSERT is done after ejbCreate but before ejbPostCreate. You can use insert-after-ejb-post-create to delay INSERT until after ejbPostCreate but this feature is available, AFAIR, since 3.2.2.

Re: [JBoss-user] JBoss 3.2.3

2003-12-01 Thread Alexey Loubyansky
Could you please increase the log level to trace for this same case? category name=org.jboss.ejb.plugins.cmp priority value=TRACE class=org.jboss.logging.XLevel/ /category Thank you. Rafal Kedziorski wrote: hi, I downloaded the new JBoss 3.2.3 version. We are waiting for the Jetty

Re: [JBoss-user] JBoss 3.2.3

2003-12-01 Thread Alexey Loubyansky
Unfortunately, I still can't reproduce it. Could you please provide me with the DDs and instructions to reproduce this? Thank you. Rafal Kedziorski wrote: At 12:28 01.12.2003, Alexey Loubyansky wrote: Could you please increase the log level to trace for this same case? category name

  1   2   3   4   5   >