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

Contents of a TreeMap not updated

 
Raj roy
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am new to jboss. We have an application running on Jboss.

in the application we fetch records from database, put the data in a bean and store those beans in a Treemap.
So when a new row is added to the table we expect an object corresponding to the row would be created and put in the treemap. But this does not happen.

There is no problem with the database. all the data are committed properly.

We don't get the object until we restart the Jboss server. So the new objects added to the tree map does not reflect until the server is restarted.

What could be the possible reasons for the same??.....bit confused..never observed such behavior..
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the relevant code which does that?
 
Raj roy
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we have tree map TreeMap<K,Y> where K is the primary key of the row and V is an bean(containing String variables for each columns in the row).

the code goes like this

execute the query


the above while loop is inside a method lets say.. retriveData()

So whenever a new row is added to the table and then I execute the retriveData() method the bean corresponding row is not added to the treemap.

When I restart the server the new row data is being reflected.
 
Raj roy
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any inputs on this please?
 
Raj roy
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one suggest something on these...please?? I am not able to solve this yet.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic