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

Network is unreachable  RSS feed

 
Cristian Popovici
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

I have a standalone application tha gathers some data and loads it into the database. The application is running on a pc that changes its IP from hour to hour. After the ip is changed all my jdbc requests are giving a



Any ideas?

Thanks.
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you create a connection pool or keep a connection across the IP change? My gut feeling is that the connection is not valid after the IP change for whatever reason (session with db is invalid, underlaying network socket closed and so on). If this is not an interactive program you could probably get away with creating the connection each time you update the data. You could also talk to your network administrator and try to convince him that you need a static ip address.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!