• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checked exception in stateful?

 
sree_kands
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
Here, I have encountered these two problems.
1.what does an ejb container do with a statefull session on a checked exception?
2. When does a servlet container pool a servlet class?
Please let me know...
Regards
Kands
 
Nicky Moelholm
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sree_kands:
Hi:
Here, I have encountered these two problems.
1.what does an ejb container do with a statefull session on a checked exception?
2. When does a servlet container pool a servlet class?
Please let me know...
Regards
Kands

Hi,
1. The same as with any other EJB. It doesn't roll back the transaction.
2. You specify it using the vendors tool (or configuration files). There is no specific time for that.
Regards
 
guowei zhang
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think when you make a servlet implement a
singleThreadModel interface, container will
pool the servlet instances, you don't need
to care about synchronization issue at the
cost of performance, which is not the case
when stateless Session Bean do pooling,
the pool boost performance and btw,the pool
size of stateless Session bean is specified in the vender specific configuration
file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic