a bug?

marc


-----Original Message-----
From: akim Khadrouche [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 04, 2000 6:24 AM
To: [EMAIL PROTECTED]
Subject: Load-balancing: ejbLoad not being called on BMP beans


Hello Marc,

I'm testing load-balancing with an Apache as http server working with 2
JBoss/Tomcat servers. It works fine but I've got a pb dealing with
ejbload.

ejbLoad and ejbStore are called after a bean activation (see below first
getDetail method call) but for the other access on the same bean (no
ejbActivate call), only ejbStore is called at the end of the business
method with no database synchronization (ejbLoad) before.

I tryed  the 3 commit options (A,B and C). No differences (I precise
that the business method is with a required transaction attribute).

The problem is that my 2 Jboss connect to the same datasource (via
Minerva) and after an update with the first jboss, the second one does
not synchronize data.

In fact for a 'read' business method I would like only an ejbLoad +
getDetail with no ejbStore after. But I think it's an ejb spec pb.

Any idea??

Thanks
Akim.

Following Jboss trace.

...
... first call
[TheTopic] TX_REQUIRED for getDetail
[TheTopic] begin tx
[TheTopic] TopicEJB:ejbActivate
[TheTopic] TopicEJB:ejbLoad                            << OK
[TheTopic] TopicEJB:ejbLoad getPK=ED5/kmelia 0
[TheTopic] WAPrimaryKey(WAPrimaryKey pk): pk=ED5/kmelia 0
[TheTopic] WAContext setPrefix with:ED5/kmelia!
[TheTopic] TopicEJB:ejbLoad ADAO.getPK=ED5/kmelia 0
[TheTopic] getDBConnection try connect java:comp/env/KmeliaV3...
[TheTopic] ejbLoad: have connection
[TheTopic] ADAO:load pk=ED5/kmelia 0
[TheTopic] ADAO:select pk=ED5/kmelia 0
[TheTopic] select: ADAO.toString()=0|null|null|null|null|null|null
[TheTopic] select: ADAO.toString()=0|null|null|null|null|null|null
[TheTopic] ADAO queryString select is: SELECT id, name, description,
keywords,
owner, path, fatherid  FROM ED5topics WHERE id = '0'
[TheTopic] selec ok:
[TheTopic] ADAO found: ED5/kmelia 0 searching for children...
[TheTopic] ADAO found: ED5/kmelia 0 children!
[TheTopic] ejbLoad: ADAO.load OK
[TheTopic] Tx is tx:Xid:1
[TheTopic] TopicEJB.getDetail:ED5/kmelia 0
[TheTopic] commit tx 1
[TheTopic] beforeCompletion called
[TheTopic] TopicEJB:ejbStore pk=ED5/kmelia 0  << OK
[TheTopic] WAPrimaryKey(WAPrimaryKey pk): pk=ED5/kmelia 0
[TheTopic] WAContext setPrefix with:ED5/kmelia!
[TheTopic] getDBConnection try connect java:comp/env/KmeliaV3...
[TheTopic] ADAO:store pk=ED5/kmelia 0
[TheTopic] ADAO:update pk=ED5/kmelia 0
[TheTopic] update: ADAO.toString()=0|ROOT|entreprise|root|/|0|Ak
[TheTopic] queryString is: UPDATE ED5topics SET name =
'ROOT',description = 'ent
reprise',keywords = 'root',path = '/',fatherId = '0',owner = 'Ak' WHERE
id = '0'

[TheTopic] afterCompletion called
...
... second Call
[TheTopic] TX_REQUIRED for getDetail
[TheTopic] begin tx
[TheTopic] TopicPK:equalsED5/kmelia 0      << I don't know why PK.equals
is called twice by the container????
[TheTopic] TopicPK:equals return TRUE
[TheTopic] TopicPK:equalsED5/kmelia 0
[TheTopic] TopicPK:equals return TRUE     << but no ejbLoad here.
[TheTopic] Tx is tx:Xid:3
[TheTopic] TopicEJB.getDetail:ED5/kmelia 0
[TheTopic] commit tx 3
[TheTopic] beforeCompletion called
[TheTopic] TopicEJB:ejbStore pk=ED5/kmelia 0
[TheTopic] WAPrimaryKey(WAPrimaryKey pk): pk=ED5/kmelia 0
[TheTopic] WAContext setPrefix with:ED5/kmelia!
[TheTopic] getDBConnection try connect java:comp/env/KmeliaV3...
[TheTopic] ADAO:store pk=ED5/kmelia 0
[TheTopic] ADAO:update pk=ED5/kmelia 0
[TheTopic] update: ADAO.toString()=0|ROOT|entreprise|root|/|0|Ak
[TheTopic] queryString is: UPDATE ED5topics SET name =
'ROOT',description = 'ent
reprise',keywords = 'root',path = '/',fatherId = '0',owner = 'Ak' WHERE
id = '0'

[TheTopic] afterCompletion called





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to