Title: Message
That works, but it's synchronous. You may want to use a MessageDrivenBean instead, for asynchronous execution. Collecting result information from asynchronous execution could be troublesome, so you should think about it carefully(or explain the case better).
 
HTH,
 
Juan Pablo Lorandi
Chief Software Architect
Code Foundry Ltd.

Barberstown, Straffan, Co. Kildare, Ireland.
Tel: +353-1-6012050  Fax: +353-1-6012051
Mobile: +353-86-2157900
www.codefoundry.com
 
Disclaimer:
 
Opinions expressed are entirely personal and bear no relevance to opinions held by my employer.
Code Foundry Ltd.'s opinion is that I should get back to work.
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]] On Behalf Of CharanKumar
Sent: Thursday, November 14, 2002 11:26 AM
To: [EMAIL PROTECTED]
Subject: Re: Calling a bean from another bean independent of each other

I guess, with finally block in the used bean should not affect the primary bean.  May be people can comment on it.
 
Ist bean.
try
{
 
Second bean function call().
Guess Program continues even after exception is thrown by the secondary bean because it is caught there only.  Have to check but no sure of this.
 
}
catch ()
{
 
}
 
Second bean...
try
{
 
}
Catch ()
{
  Exception is caught.
}
finally
{
  After the exception it comes here.
}
----- Original Message -----
From: deepak
Sent: Thursday, November 14, 2002 4:52 PM
Subject: Re: Calling a bean from another bean independent of each other

I guess u missed the second part of the question:
 
Any exception thrown by any bean should not affect the other beans execution.?
How do I ensure this??
 
Cheers,
 
Deepak
----- Original Message -----
To: deepak
Sent: Thursday, November 14, 2002 4:34 PM
Subject: Re: Calling a bean from another bean independent of each other

Simple...
Just give a lookup and get the reference create the object of it and use the method of that bean....
 
-Charan
----- Original Message -----
From: deepak
Sent: Thursday, November 14, 2002 3:52 PM
Subject: Calling a bean from another bean independent of each other

Hi
 
How can I call a method on a bean from another bean with the restriction that they perform independently of each other. Any exception thrown by any bean should not affect the other beans execution.?
 
Deepak

*********************************************************
Disclaimer

This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com


*********************************************************
Disclaimer

This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

Reply via email to