Hi Asad

Is there any error thrown by the Second bean
And can you tell which beans are you using Stateful or stateless

Regards
Hemant



                    Asadullah Khan
                    <asadkhan@CMCLTD.       To:     [EMAIL PROTECTED]
                    COM>                    cc:
                    Sent by: A              Subject:     database updates
                    mailing list for
                    Enterprise
                    JavaBeans
                    development
                    <EJB-INTEREST@JAV
                    A.SUN.COM>


                    08/20/02 04:33 PM
                    Please respond to
                    Asadullah Khan






Hi all,
    I have a code, which runs fine in jsp, and in java client, but when I
write the code in session bean, I am not getting the desired output.I am
using Jboss 2.2

Actually my code is something like this.

I call a session bean (sb1) to do some processing, after
processing it calls a entity bean and updates the status (say Active) in
the database.

Then I call a second session bean(sb2), which looks for the status(Active)
in the database,and
does processing according to the status.

when I call the above beans (sb1 & sb2) in a jsp,
sb2 is able to correctly get the updated status and do processing well.

but when I call the beans in a session bean,
though sb1 is able to call the entity bean and update the status,
when sb2 is accessing the database,It is not able to get the status data
from result set, though result set is not null.
any help over this would be greatly appreciated.

regards
Asad



-----------------------Disclaimer------------------------

The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.

We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message.  We cannot accept liability for any loss or
damage caused by software viruses.

------------------------Disclaimer------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to