1. Well EJB specification says Home object which implements Home Interface are factories for EJB objects.So whenever a stub(surrogate for ejb object at client side) is to be created, one has to go through home interface. There's no alternative to it.
2. Stateless session beans span over single method invocation. its state is managed till the method invocation lasts. No concurrent requests are serviced against same method invocation.
Originally posted by Sivaraman Lakshmanan:
hai all,
In programming EJB, we use Home Interface to get an object of Remote Interface and use it. why can't we use the remote interface directly.
In stateless bean normally we will not have the client info. if we need the state of the client we use stateful bean.is it possible to have the state maintained using stateless bean itself.
thanks,
bye,
siva.