|
For me it seems as if the container assumes
to close the transaction after create(), what would lead to ejbStore().
Alternatively this can be wanted by JOnAS (what I do not think) or be a bug.
Another point is, that from my point of view, the EJB specs to not tell if a
ejbStore should or may not follow the ejbCreate. In fact, you have no problems
with since, since ejbStore though writes an SQL but does not fix it in stable
memory; this is done on TX.commit onto the used resource. So, not looking at
performance reasons, there is no critical problem. Sure you are right and this
is not fine behaivour. What version of JOnAS are you using? There is version 2.4
in the queue with changed EJB behaviour (caching etc) maybe the problem is gone
there?
|
Original
Message |
processed
by Tobit InfoCenter |
|
Subject: |
Re: Help
reqd on ejbStore() and ejbLoad()..........URGENT (10-Okt-2001
13:11) |
|
From: |
[EMAIL PROTECTED] |
|
To: |
[EMAIL PROTECTED] (and
2 other) |
Hi Markus,
1. We are using TX Required only not TX requires
new.
2. Our problem is that when we call create method
it is first calling ejbCreate() method and followed by
ejbStore().Which is not
acceptable.
3. Note that, in all the above process we are not
calling anywhere our bussiness method.It does not make to sense when i am
inserting some thing to DB .
4. Also we r using BMP and not CMP.
Pls revert back with ur comments
asap.
Thanks n regds,
Rads.
----- Original Message -----
Sent: Wednesday, October 10, 2001 3:28
PM
Subject: Re: Help reqd on ejbStore()
and ejbLoad()..........URGENT
1) Try to use TX=Required but not
TX=RequiresNew.
2) ejbLoad is never called after
ejbStored since it's J2EE's intention to have all logic to be implemented
inside of the application server, so it's unneccessary to have an
automatically called ejbLoad afterwards. If you need this, e. g. to retrieve
autoinc numbers or something from legacy systems, you have to call ejbLoad
yourself, e. g. by using BMP.
|
Original
Message |
processed by Tobit
InfoCenter |
|
Subject: |
Help
reqd on ejbStore() and ejbLoad()..........URGENT (10-Okt-2001
11:53) |
|
From: |
[EMAIL PROTECTED] |
|
To: |
[EMAIL PROTECTED] |
Hi,
We have been facing problems with
unnnecessary calls to ejbStore() while working with Jonas. This is
something undecirable.
The scenario is as below :
While calling create() , a call to
ejbStore() is made by the server on its own, which should not be the
case.However, also ejbStore() is being called without firing the
ejbload(); again creating problems.
Kindly help us out.
Thanks n regds,
RC/S/AS To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
|