Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse and HSQL1.7.1

 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I don't have the code with me, but something for me unexplainable happened on my Eclipse 3.1_M4.
Was playing with ibatis SQLMaps.
Mapped against a local/file based HSQL DB.
Did just map 1 pojo (User) to one Table.
I wrote the ibatis-hsql-maps-client code in the main method.
(openSession, startTransaction, commit, endTransaction, etc).
Invoked a simple select which returned a user bean through sqlMaps.

I consider myself carefull guy when its about closing external ressources like connections, etc. (at the end of try and closing in catch, also).
When I was running the class in eclipse it did not stop. I had to manually push the red button to stop it.

Might sound funny and difficult to follow.
Little time and the code is on standalone desktop at home.
Any ideas?

thanks axel
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was it creating a connection pool under the hood maybe in a separate thread that didn't die?
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might have though I haven't configured a connection pool explicitly in the globel mapping file. Am yet starting with ibatis sqlMaps.
I will take an eye on what info I get out of eclipse.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic