Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

stateless session ejb JNDI cache  RSS feed

 
Steve Grant
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
I have a stateless session ejb called VFSFacadeBean which calls VFSIOService class .This class does the writing of data to hard disk. This VFSFacadeBEan is called by RFSFacadeBean which is again a stateless session bean. This VFSFacadeBEan can also be called through a JSP. Sir my question is can this VFSFacadeBEan lookup can be done in the "init" method of jsp and the same home can be used by jsp service method for variuos requests .Is this method right of reusing stateless session bean homes by clients and will this improve performance.
thanks,
Siddharth K
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that can be done, and yes, it improves performance by avoiding looking up the home interface again and again and again...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!