• Post Reply Bookmark Topic Watch Topic
  • New Topic

Require a right suggestion r. w. architecture

 
roshan ingole
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Tech Gurus,
Here I required a right views from you, I explained my problem as follows ....
Suppose in my web based 3 tier application I have nearly 150 servlets and DataBase. My both, application and database reside on same server. So suppose at a single time there are nearly 500 to 600 simultaneous request comes and each request have to perform any database operation.....so which will be correct way to handle this senario,
1. Keeping all servlets in a same container and with servlet
Context create a database connection, which have a access to
all servlets.
2. Or create a connection pool.
3. Or can I make it in such a way that I keep my some servlets
in another container and some in another i.e. distributed.
But again problem related with that suppose I have to perform
a database operation then I have to pass session object to
the appserv i.e second container which have a connection with
database or either there is a some method to share servlet
contaxt between to servlet container?
If you find any better way rather than this mentioned above please kindly and openly suggest it.
-Roshan
 
roshan ingole
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I think that Java Gurus don't have a answer of my question?
-Roshan
 
Joe Pardi
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would imagine that it should be perfectly okay to leave all the servlets within the same container and look for a servlet container that supports connection pooling. JRun offers this feature.
 
roshan ingole
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Friend I forget to tell that we are using Tomcat engine with Apache server. And I am not much more aware of Tomcat.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!