• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2ee,java Q's

 
Mahesh Pinnamaneni
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai dudes,
hope these Q's r clear and ans were appreciated.
plz answer these Q's and clear my mind.
1) Why do we need both Home and Remote Interfaces for a client to contact.Why can't we combine methods of Remote Interface into Home Interface.
2)Why does Stateless Session bean not store its state even though it has ejbActivate and ejbPassivate ?
3)If my browser does not support Cookie,and my server sends a cookie instance What will happen ?
4)What is the capacity the doGet can send to the server ?
5)Is there any tool in java that can create reports ?

Thanks alot for spending ur valuable time with me.

regards,
Mahesh P
 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Both stateless session and stateful session bean implements sessionbean interface which in turn extends enterprisebean interface.That interface has
ejbActivate and ejbPassivate so we have to write those methods even for stateful session beans.A requirement for implmenting interface
Thanks
kundan
 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there is a tool JReport available for report
 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>What is the capacity the doGet can send to the server ?
Well as such there is no such limit on sending the data in doGet from the server side.but limit is set by the browser it's like 255 characters or 256 characters.

>Why does Stateless Session bean not store its state even though it has ejbActivate and ejbPassivate ?
ejbactivate and ejbPassivate are callback methods,which are called by container,only in the case of Stateful Bean,We don't call these manually in our code.Incase of stateless bean these method are not having much Significant .


Regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic