Hi all,
"Narinder Singh" wrote:
Hi
I need to call methods of a
stateless (???)
Session Bean from another bean.
...
Might be, you don't need the called Session Bean at all.
Not every class on the server side is some sort of bean,
in fact most of them are normal classes providing services
??
You CANNOT, in general, call your beans by instantiating their
implementation class instance and calling methods on it. You'd have to
provide many features of the container for the instance. E.g. if you
instantiate a CMP "bean" that way, you'd have to provide persistence and so
forth.
On Tue, 13 Feb 2001, Narinder Singh wrote:
Hi
I need to call methods of a Session Bean from another bean.
I was previously using the following method for this.
Context jndiContext = new InitialContext();
InterestHome interestHome = (InterestHome
)jndiContext.lookup("InterestBean");