Bugs item #504481, was opened at 2002-01-16 08:58
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=504481&group_id=22866
Category: JBossCMP
Group: v2.4 (stable)
Status: Closed
Resolution: Invalid
Priority: 9
Submitted By: Shravan (cskreddy74)
Assigned to: Bill Burke (patriot1burke)
Summary: INSERTING AN ALREADY EXISTING BEAN
Initial Comment:
Hi,
I get this error ehen I am trying to insert the
record into the database form the bean, basically I
deleted the record from the database manually and
tried to insert it from the bean, I read the article
from the previous postings, but could not figure out
how it works......
please have a look at the smalll code of the CMP bean
which is attached as .zip files and help me .....
javax.transaction.TransactionRolledbackException:
INSERTING AN ALREADY EXISTING BEAN, ID = 1; nested
exception is:
java.lang.IllegalStateException: INSERTING AN
ALREADY EXISTING BEAN, ID = 1
Thanks in advance
Shravan
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2002-03-13 09:07
Message:
Logged In: NO
It's correct: deleting manually it shouldn't work.
But it happens to me using the remove() and after a create
() on a BMP entitybean, so all the create/remove is done by
the EJB.
I posted my problem at http://main.jboss.org/thread.jsp?
forum=47&thread=10642
Thanks & regards,
Luigi.
----------------------------------------------------------------------
Comment By: Christian Riege (lqd)
Date: 2002-01-17 07:15
Message:
Logged In: YES
user_id=176671
this is not a bug, CLOSING INVALID. Using commit-option C
does the job.
----------------------------------------------------------------------
Comment By: Bill Burke (patriot1burke)
Date: 2002-01-17 07:04
Message:
Logged In: YES
user_id=176497
I think using commit option 'C' will work. Look in
standardjboss.xml for commit-option it is 'A' by default.
Commit option 'C' will passivate the Entity Bean at the end
of every transaction.
----------------------------------------------------------------------
Comment By: Shravan (cskreddy74)
Date: 2002-01-17 06:38
Message:
Logged In: YES
user_id=260502
hi patriot1burke,
I have a scenario wherein my database is accessed from an
legacy system or from an other no-java application which
is updating hte database constantly and when data is
changed in database how do I make to reflect in the jboss
server automatically... I mean atleast how to reduce teh
cache time or how to disable the caching etc.....
----------------------------------------------------------------------
Comment By: Bill Burke (patriot1burke)
Date: 2002-01-16 12:49
Message:
Logged In: YES
user_id=176497
If you create a bean through EJB, then delete it manually
from the database, then try to create it again you will
fail in this way because JBoss still has the bean in cache.
I'm closing this bug. It is not a bug. You are using it
incorrectly.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=504481&group_id=22866
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development