Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJBObject * Serializable

 
Cory Wilkerson
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good morning!
I have a web-app in VM "X" talking to an EJB container that lives in VM "Y". This web-app currently utilizes VM Y, grabbing references via JNDI, perfoming some business functions, etc. That said, we have a few java classes with member references (in the web-app) to objects (ejbs) residing in VM Y.
My questions is: If I want to serialize one of my classes in VM X containing a reference to an ejb residing in VM Y -- will my ejb have to explicitly implement serializable? And if so -- do I implement the interface in both the remote intfc & bean implementation?
Thanks!
Cory
 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your web app will be talking to a local stub of your remote EJB, not the EJB itself. So the EJB is not passed through RMI-IIOP...
But, in your case, your parameters and return values have to be defined as serializable...
Just my thoughts
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!