Hi,
I have a problem while using OpenEJB. I have a stateless session bean in which i have following method:
method() {
Collection a = entitybeanA.getAllbyCapacity();
while (a.next()) {
print (entitybeanA)a;
}
Collection b entitybeanB.getAllbyCapacity();
while(b.next() {
print (entitybeanB)b;
}
}
While printing a works fine, printing b gives class cast exception. Why? Is it the problem of container?
Thanks
Discussions
EJB programming & troubleshooting: Calling multiple entity beans in one session bean methods
-
Calling multiple entity beans in one session bean methods (2 messages)
- Posted by: Bidyut Pattanayak
- Posted on: September 23 2003 19:16 EDT
Threaded Messages (2)
- Calling multiple entity beans in one session bean methods by Ian Mitchell on September 24 2003 11:55 EDT
- Calling multiple entity beans in one session bean methods by Bidyut Pattanayak on September 24 2003 12:35 EDT
-
Calling multiple entity beans in one session bean methods[ Go to top ]
- Posted by: Ian Mitchell
- Posted on: September 24 2003 11:55 EDT
- in response to Bidyut Pattanayak
Looks like you're missing an equals assignment after Collection b. -
Calling multiple entity beans in one session bean methods[ Go to top ]
- Posted by: Bidyut Pattanayak
- Posted on: September 24 2003 12:35 EDT
- in response to Ian Mitchell
Thanks. We found the problem. The missing equal was a type on the message board. The problem was with using Tomcat Ejbfactory to access ejb.