• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to know Stateless or stateful?

 
Rashid Mah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In my application from stub on client side i want to know whether the ejb is
stateful or stateless.

I used getMetaData() frunction from home reference and then was able to know
whether bean is stateless or stateful. It works perfectly on Weblogic 10.x.

But now i tried to do the same thing on websphere version of my client application and i got always the exception

***********************************************************************
java.rmi.MarshalException
org.omg.CORBA.MARSHAL: javax.ejb.EJBMeta is not serializable nor externalizable.
**********************************************************************

Why the above call to getEjbMetaData() works on weblogic but not on websphere. Double standard?
 
Jair Rillo Junior
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure exactly, but I think the spec doesn't tell the default behavior for that class, hence, each Application Server implement it as far as they want. If you're curious, look at the Spec documentation and try to figure out that behavior.
 
Rashid Mah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any other way to know from stub that whether bean is stateless or stateful? It is important for me to work onward.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!