Ilya Sorokoumov [
http://community.jboss.org/people/ilya40umov] created the discussion
"Re: Is it possible to attach an object to active stateless session bean"
To view the discussion, visit:
http://community.jboss.org/message/582525#582525
--------------------------------------------------------------
Let me show you a very simple example:
@Stateless
class A {
someMethod() {
...
}
}
@Stateless
class B {
@EJB
private A a;
doTest() {
a.someMethod();This calls someMethod of stateless bean A.
a.someMethod();This MAY call someMethod of another bean A.
a.someMethod();This MAY call someMethod of another bean A.
}
}
So this means that stateless bean does not have any state. So after you called any method
once you definetly won't see this object/bean again.
Please put into my sample what you want to happen and where.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/582525#582525]
Start a new discussion in EJB3 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]