Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to know Stateless or stateful?

 
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?
 
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.
 
    Bookmark Topic Watch Topic
  • New Topic