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]
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
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 *,
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
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
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:
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]
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
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
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
*
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
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
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
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
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
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:
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}));
//
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
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
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
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]
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
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:
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
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
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
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
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.
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
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:
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
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:
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
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
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
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:
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
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
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
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
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
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:
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
*
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?
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,
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
*
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 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]
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:
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
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
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
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
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.
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
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
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 --
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
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
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
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
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
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
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
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
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
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
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...
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:
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
[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.
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
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
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
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
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),
[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
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
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 =
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
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
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
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.
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
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
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
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
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
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
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
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
!
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
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
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
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.
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
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
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.
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
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 - 100 of 403 matches
Mail list logo