• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

getting multiple connection in one method problem and poll parameters

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have webSphere 6.0 and oracle 10g, I use webSphere connection pool with min pool size:4 and max poll size 5

I call the following method in init method of my init servlet of application:

When I shutdown and start the server from start menu, statements 0 to 4 successfully executed, statement 3 rolledback successfully and getting connection of statement 5 throws TimeoutException and in finally block statements 0, 1, 2, 4
commited successfully and values inserted to table. and it is that I expected.

But when I stop and start the application (not server) I see different behavior
statement 0 to 7 executed and statement 3 rolledback and finally all connection commited, but 4 to 7 values inserted to db and timeout exception not occured, and it seems that one connection in hole process is used and rolled back of 3th statement cause rollback of all previous statements

Can any one explain me the reason of this difference
thanks a lot
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!