• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CachedRowSet execute query problem

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
I am having a strange problem with a class that extends the CachedRowSet class. After performing an execute(Connection connection) the connection is closed. I need to use this connection again later in the code. This connection only gets closed when I run this code on my machine, but not when I run it on another machine at my office so I think it is probably some kind of configuration problem.
Anyone ever experience this type of problem?
Thanks for any info.
The code:
public MarkInfo() throws SQLException
{
setCommand(QUERY);
}

public boolean load(Connection con, String id) throws SQLException
{
// Fetch connection and prepare statement for execution
setString(1, id);
// Execute query
execute(con);
After this execute line, the connection is closed.
 
reply
    Bookmark Topic Watch Topic
  • New Topic