Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection

 
visu Nekk
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,

I want to create a separate connection object and call it the required servlet classes rather than going for a connection object in each servlet class.Can we do this using javabeans or is there any other method?

Thanx in advance,
Regards,
Visu
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We've discussed this a few times and the conclusion is that it is a bad idea. You should always consider a ConnectionPool.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic