This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Casting Problem in Stateful Session Beans(urgent please) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Casting Problem in Stateful Session Beans(urgent please)" Watch "Casting Problem in Stateful Session Beans(urgent please)" New topic
Author

Casting Problem in Stateful Session Beans(urgent please)

apurva mehta
Ranch Hand

Joined: Nov 21, 2001
Posts: 35
I am doing a project in which I use a stateful bean in which i have a method which stores a remote reference of a stateless bean in a vector & then i used to iterate it by using java.util.Iterator class. But when i run my application i get an error that
Could not cast iterator of class pdim.SearchProdsSLBean to java.io.Serializable.
where pdim.SearchProdsSLBean is my stateful bean.

Earlier i used this same method in stateless bean & it worked very fine.But since now we use stateful beans I think that their is some problem with storing the state of Iterator.
should i insert any code in ejbPassivate() & ejb Activate()method ??
(I tried by removing iterator object in ejbPassivate() but it didnt help).
Please any one can help me regarding this.
thanx in advance.
regards
Apurva
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Casting Problem in Stateful Session Beans(urgent please)
 
It's not a secret anymore!