Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in stateful session bean

apurva mehta
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using stateful session bean , In which i have a method which uses the vector to store the Instance of remote reference (i.e EJBObject) of a container managed entity bean. But my problem is that when i run my program , i check whether the
instance that is stored in the vector is of remote reference(i.e EJBObject) or not, I get the desired output until container issues EJBPassivate() & EJbActivate() methods. After the EJbActivate() is over I once check again check the contents of my Vector but to my disbelief the contents of my vector becomes instance of container generated implementations object rather then desired instance of remote reference, hence this gives me a classCastException.I dont provide any implementation in EJBActivate() & EJBPassivate() being a serialized class i dont need to save it while passivation.I really have no clue why its happening like this???
please help.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic