Hi,
I don't know whether you are still interested, but...
I guess the ejbRemove was called becuase of the tx timeout setting (which is
about 3 sec, can be customized). This is because the calls between seperatly
packaged ejbs will go through RMI whereas calls to ejbs in one package are
optimized inVM calls thus much faster! I would always package all the stuff
that belongs to one application together (using jar/war/ear) if not for
anything else for the sake of easy distribution.
hth,
Burkhard
----- Original Message -----
From: "makapur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 3:24 AM
Subject: [JBoss-user] Transaction problem


Hi,

The scenario is like this.

1. Jsp will call session bean(Manager) to insert number of records.
2. The session bean(Manager) starts the transaction. And calls the Entity
bean/s in loop.
3. The Session bean(Manager)commits the transaction.

I have packaged session bean and all entity beans separately. That is one
jar for session bean and one for entity bean and deployed in the same
application server. Here started my problem.

The problem is even though entity bean/s calling loop is not finished its
iterations the method ejbRemove of sessionBean is called and the session
Bean is destroyed.(within 2-3 secs)

Note : None of the Exceptions is thrown and also the return value is not
coming.

Now I saw the CD bean example here session bean and entity bean are packaged
together.
I did the same and surprisingly ITS WORKING FINE.

I am using JBOSS-2.4.4 on NT2000 server, SQL 2000, Microsoft driver for
JDBC.

My questions are

    1. IS IT REALLY NECESSARY TO PACKAGE THE SESSION AND ENTITY BEANS WHICH
SHARE THE TRANSACTIONS.
        OR
    2. I MISSED OUT ANY SETTINGS FOR WHEN THE BEANS ARE PACKAGED SEPARATELY,
IF SO WHAT IS THAT SETTING I HAVE TO DO?

If any body had same experience, I welcome the same.

Thanks in advance.

regards
Rajakumar.






-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to